From 60fe4501b4194949d3117a937abdfa90d3f138e9 Mon Sep 17 00:00:00 2001 From: Steve Langasek Date: Thu, 16 Jan 2014 00:38:42 +0000 Subject: Import pam_1.1.8.orig.tar.gz [dgit import orig pam_1.1.8.orig.tar.gz] --- modules/pam_unix/bigcrypt_main.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 modules/pam_unix/bigcrypt_main.c (limited to 'modules/pam_unix/bigcrypt_main.c') diff --git a/modules/pam_unix/bigcrypt_main.c b/modules/pam_unix/bigcrypt_main.c new file mode 100644 index 00000000..fab212d9 --- /dev/null +++ b/modules/pam_unix/bigcrypt_main.c @@ -0,0 +1,18 @@ +#include +#include + +#include "bigcrypt.h" + +int +main(int argc, char **argv) +{ + if (argc < 3) { + fprintf(stderr, "Usage: %s password salt\n", + strchr(argv[0], '/') ? + (strchr(argv[0], '/') + 1) : + argv[0]); + return 0; + } + fprintf(stdout, "%s\n", bigcrypt(argv[1], argv[2])); + return 0; +} -- cgit v1.2.3