#include <stdlib.h>
#include <string.h>
#include "debug_p11.h"
#include "yubihsm.h"
Go to the source code of this file.
|
void | yh_dbg_init (int dbg, int dinout, int libdbg, const char *debug_file) |
|
◆ yh_dbg_init()
void yh_dbg_init |
( |
int | dbg, |
|
|
int | dinout, |
|
|
int | libdbg, |
|
|
const char * | debug_file ) |
Definition at line 27 of file debug_p11.c.
27 {
32 }
33 if (strcmp(debug_file, "stderr") == 0) {
35 } else if (strcmp(debug_file, "stdout") == 0) {
37 } else {
38 FILE *file = fopen(debug_file, "ab");
39 if (file) {
41 } else {
43 }
44 }
46 if (dbg || getenv("YUBIHSM_PKCS11_DBG")) {
48 }
49 if (dinout || getenv("YUBIHSM_PKCS11_DINOUT")) {
51 }
52 if (libdbg || getenv("YUBIHSM_LIB_DBG")) {
54 }
55}
yh_rc yh_set_verbosity(yh_connector *connector, uint8_t verbosity)
void yh_set_debug_output(yh_connector *connector, FILE *output)
#define YH_VERB_ALL
Debug level all. All previous options enabled.
◆ _YHP11_DBG
◆ _YHP11_DINOUT
◆ _YHP11_OUTPUT
FILE* _YHP11_OUTPUT = NULL |