pam_pkcs11  0.6.8
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: error.h 358 2008-11-06 14:28:46Z ludovic.rousseau $
00016  */
00017 
00018 #ifndef __ERROR_H_
00019 #define __ERROR_H_
00020 
00021 #ifdef HAVE_CONFIG_H
00022 #include <config.h>
00023 #endif
00024 
00025 #include <config.h>
00026 #include <stdarg.h>
00027 #ifndef HAVE_NSS
00028 #include <openssl/err.h>
00029 #endif
00030 #include <errno.h>
00031 
00033 #define ERROR_BUFFER_SIZE 512
00034 
00035 #ifndef __ERROR_C_
00036 #define ERROR_EXTERN extern
00037 #else
00038 #define ERROR_EXTERN
00039 #endif
00040 
00046 ERROR_EXTERN void set_error(const char *format, ...);
00047 
00052 ERROR_EXTERN const char *get_error(void);
00053 
00054 #undef ERROR_EXTERN
00055 #endif /* __ERROR_H_ */