error.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
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