diff options
author | Thorsten Kukuk <kukuk@thkukuk.de> | 2004-09-28 13:48:45 +0000 |
---|---|---|
committer | Thorsten Kukuk <kukuk@thkukuk.de> | 2004-09-28 13:48:45 +0000 |
commit | 6fb01537462a326a139f0c2d975145b26cd54bbe (patch) | |
tree | 5cc76f47e9687823164fa214fb801ce0f37a0766 /modules/pam_unix/bigcrypt_main.c | |
parent | 328d7328e5b4ea8d60164ce874bada2f4f58a201 (diff) | |
download | pam-6fb01537462a326a139f0c2d975145b26cd54bbe.tar.gz pam-6fb01537462a326a139f0c2d975145b26cd54bbe.tar.bz2 pam-6fb01537462a326a139f0c2d975145b26cd54bbe.zip |
Relevant BUGIDs:
Purpose of commit:
Commit summary:
---------------
bugfix:
* Merge patches from Red Hat (Bug 477000 and other - kukuk)
* Fix pam_rhosts option parsing (Bug 922648 - kukuk)
Diffstat (limited to 'modules/pam_unix/bigcrypt_main.c')
-rw-r--r-- | modules/pam_unix/bigcrypt_main.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/modules/pam_unix/bigcrypt_main.c b/modules/pam_unix/bigcrypt_main.c new file mode 100644 index 00000000..70819072 --- /dev/null +++ b/modules/pam_unix/bigcrypt_main.c @@ -0,0 +1,18 @@ +#include <stdio.h> +#include <string.h> + +extern const char *bigcrypt(const char *password, const char *salt); + +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; +} |