Introduce crypt_strcmp function (allows NULL).

This commit is contained in:
Ondrej Kozina
2019-07-30 14:38:51 +02:00
parent b79086b3e9
commit b216a6a30e
3 changed files with 15 additions and 14 deletions

View File

@@ -255,6 +255,7 @@ int crypt_serialize_lock(struct crypt_device *cd);
void crypt_serialize_unlock(struct crypt_device *cd);
bool crypt_string_in(const char *str, char **list, size_t list_size);
int crypt_strcmp(const char *a, const char *b);
static inline void *crypt_zalloc(size_t size) { return calloc(1, size); }
#endif /* INTERNAL_H */