Main Page | Data Structures | Directories | File List | Data Fields | Globals

error.h

Go to the documentation of this file.
00001 /*
00002  * PKCS #11 PAM Login Module
00003  * Copyright (C) 2003 Mario Strasser <mast@gmx.net>,
00004  *
00005  * This library is free software; you can redistribute it and/or
00006  * modify it under the terms of the GNU Lesser General Public
00007  * License as published by the Free Software Foundation; either
00008  * version 2.1 of the License, or (at your option) any later version.
00009  *
00010  * This library is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013  * Lesser General Public License for more details.
00014  *
00015  * $Id$
00016  */
00017 
00018 #ifndef __ERROR_H_
00019 #define __ERROR_H_
00020 
00021 #include <stdarg.h>
00022 #include <openssl/err.h>
00023 #include <errno.h>
00024 
00026 #define ERROR_BUFFER_SIZE 512 
00027 
00028 #ifndef __ERROR_C_
00029 #define ERROR_EXTERN extern
00030 #else
00031 #define ERROR_EXTERN
00032 #endif
00033 
00039 ERROR_EXTERN void set_error(char *format, ...);
00040 
00045 ERROR_EXTERN const char *get_error();
00046 
00047 #undef ERROR_EXTERN
00048 #endif /* __ERROR_H_ */

Generated on Thu Mar 16 22:52:55 2006 for pam_pkcs11 by  doxygen 1.4.2