Fix AF prototypes and move then to af.h.

This commit is contained in:
Milan Broz
2016-01-26 16:05:56 +01:00
parent ef966bd261
commit 5fdfc0b54a
5 changed files with 28 additions and 22 deletions

View File

@@ -48,6 +48,9 @@ struct safe_allocation {
int crypt_parse_name_and_mode(const char *s, char *cipher, int *key_nums,
char *cipher_mode)
{
if (!s || !cipher || !cipher_mode)
return -EINVAL;
if (sscanf(s, "%" MAX_CIPHER_LEN_STR "[^-]-%" MAX_CIPHER_LEN_STR "s",
cipher, cipher_mode) == 2) {
if (!strcmp(cipher_mode, "plain"))