diff options
author | Martin Willi <martin@strongswan.org> | 2009-09-16 13:16:00 +0200 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2009-09-16 13:16:00 +0200 |
commit | b538b606da7f4e10ec2a60046c726dc74b6e030f (patch) | |
tree | 94355b0ffaf36536931c730de001a8e44d363590 /src/pki/pki.c | |
parent | 5289249449e0e6792cdbc014ec7bc03a0c179354 (diff) | |
download | strongswan-b538b606da7f4e10ec2a60046c726dc74b6e030f.tar.bz2 strongswan-b538b606da7f4e10ec2a60046c726dc74b6e030f.tar.xz |
Use the default debug hook if possible
Diffstat (limited to 'src/pki/pki.c')
-rw-r--r-- | src/pki/pki.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/pki/pki.c b/src/pki/pki.c index 0642bedc3..0912d5051 100644 --- a/src/pki/pki.c +++ b/src/pki/pki.c @@ -19,27 +19,6 @@ #include <debug.h> /** - * Default debug level - */ -int dbg_level = 1; - -/** - * Logging to stderr with configurable debug level - */ -void dbg_pki(int level, char *fmt, ...) -{ - if (level <= dbg_level) - { - va_list args; - - va_start(args, fmt); - vfprintf(stderr, fmt, args); - fprintf(stderr, "\n"); - va_end(args); - } -} - -/** * Convert a form string to a encoding type */ bool get_form(char *form, key_encoding_type_t *type, bool pub) @@ -101,8 +80,6 @@ hash_algorithm_t get_digest(char *name) */ int main(int argc, char *argv[]) { - dbg = dbg_pki; - atexit(library_deinit); if (!library_init(NULL)) { |