diff options
Diffstat (limited to 'test-bigcrypt.c')
-rw-r--r-- | test-bigcrypt.c | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/test-bigcrypt.c b/test-bigcrypt.c deleted file mode 100644 index c434d3e..0000000 --- a/test-bigcrypt.c +++ /dev/null @@ -1,27 +0,0 @@ -#include <string.h> -#include <stdio.h> - -#include "crypt.h" -#include "crypt-obsolete.h" - -compat_symbol_ref (bigcrypt, bigcrypt); - -int -main (void) -{ - char *newpassword = bigcrypt ("1234567890123", "GA"); - - if (strlen (newpassword) != 24) - { - fprintf (stderr, "bigcrypt result was wrong length\n"); - return 1; - } - - if (strcmp (newpassword, crypt ("1234567890123", newpassword)) != 0) - { - fprintf (stderr, "crypt cannot encrypt bigcrypt passwords\n"); - return 1; - } - - return 0; -} |