pam_pkcs11  0.6.10
Macros | Functions
error.h File Reference
#include <config.h>
#include <stdarg.h>
#include <openssl/err.h>
#include <errno.h>

Go to the source code of this file.

Macros

#define ERROR_BUFFER_SIZE   512
 Default error message buffer size. More...
 
#define ERROR_EXTERN   extern
 

Functions

ERROR_EXTERN void set_error (const char *format,...)
 store an error message into a temporary buffer, in a similar way as sprintf does More...
 
ERROR_EXTERN const char * get_error (void)
 Retrieve error message string from buffer. More...
 

Macro Definition Documentation

#define ERROR_BUFFER_SIZE   512

Default error message buffer size.

Definition at line 33 of file error.h.

#define ERROR_EXTERN   extern

Definition at line 36 of file error.h.

Function Documentation

ERROR_EXTERN const char* get_error ( void  )

Retrieve error message string from buffer.

Returns
Error message
ERROR_EXTERN void set_error ( const char *  format,
  ... 
)

store an error message into a temporary buffer, in a similar way as sprintf does

Parameters
formatString to be stored
...Additional parameters