diff options
Diffstat (limited to 'src/skey/skey.c')
-rw-r--r-- | src/skey/skey.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/skey/skey.c b/src/skey/skey.c index 2517842..fde2d15 100644 --- a/src/skey/skey.c +++ b/src/skey/skey.c @@ -11,11 +11,13 @@ #include "skey.h" #include "btoe.h" -struct skey_hash { +struct skey_hash +{ int (*Keycrunch) (char *, const char *, const char *); void (*Skey) (char *); }; -static struct skey_hash hash_table[] = { +static struct skey_hash hash_table[] = +{ { MD4Keycrunch, MD4SKey }, { MD5Keycrunch, MD5SKey }, { SHA1Keycrunch, SHA1SKey } @@ -26,7 +28,7 @@ char *skey(SKeyAlgorithm algorithm, int seq, const char *seed, const char *passp { char key[SKEY_SIZE]; int i; - g_assert (algorithm < G_N_ELEMENTS (hash_table)); + g_assert (algorithm < G_N_ELEMENTS (hash_table)); if (hash_table[algorithm].Keycrunch(key, seed, passphrase) == -1) return NULL; |