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 __HELPERS_H 00028 #define __HELPERS_H 00029 00030 #include <stdbool.h> 00031 #include "pam_kmux.h" 00032 #include "pam_kmux_options.h" 00033 00041 char* upper_case(const char *string); 00042 00050 bool result_expected(const char *query); 00051 00059 char* trim(const char *string); 00060 00068 char* i_to_a(int value); 00069 00076 size_t i_to_a_len(int value); 00077 00084 void sec_free(void *p); 00085 #endif
1.6.3