00001 /* 00002 * $Id$ 00003 * 00004 * pam_kmux - Linux PAM Module to change passwords simultaneously on multiple databases. 00005 * 00006 * Copyright (C) 2010 Julian Thome 00007 * 00008 * This program is free software; you can redistribute it and/or modify it under the terms of 00009 * the GNU General Public License as published by the Free Software Foundation; 00010 * either version 3 of the License, or (at your option) any later version. 00011 * 00012 * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; 00013 * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00014 * See the GNU General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU General Public License along with this program; 00017 * if not, see <http://www.gnu.org/licenses/>. 00018 */ 00019 00027 #ifndef __HASHIFY_H 00028 #define __HASHIFY_H 00029 #include "pam_kmux_options.h" 00030 00031 #include <security/pam_ext.h> 00032 #include <stdarg.h> 00033 00045 const char *password_encrypt(const char *pass, const char *salt, const modopt_t *options); 00046 00047 /* encrypt funtions */ 00048 00056 const char *encrypt_t9(const char *pass, ...); 00057 00065 const char *encrypt_md5(const char *pass, ...); 00066 00074 const char *encrypt_sha1(const char *pass, ...); 00075 00083 const char *encrypt_clear(const char* pass, ...); 00084 00093 const char *encrypt_t9_md5(const char *pass, ...); 00094 00104 const char *encrypt_crypt(const char *pass, ...); 00105 #endif
1.6.3