diff options
author | Stef Walter <stefw@gnome.org> | 2013-01-24 11:34:47 +0100 |
---|---|---|
committer | Stef Walter <stefw@gnome.org> | 2013-02-05 14:54:46 +0100 |
commit | 5147d71466455b3d087b3f3a7472a35e8216c55a (patch) | |
tree | 4b81eee35b7d0ec877a34c4fde06478d700a3960 /common/debug.h | |
parent | 603c7d4eb996f51178ccc9d235597497bbb2c7a4 (diff) | |
download | p11-kit-5147d71466455b3d087b3f3a7472a35e8216c55a.tar.gz |
Add basic trust module
This is based off the roots-store from gnome-keyring and loads
certificates from a root directory and exposes them as PKCS#11
objects.
Diffstat (limited to 'common/debug.h')
-rw-r--r-- | common/debug.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/common/debug.h b/common/debug.h index 2374b6f..ff2af0f 100644 --- a/common/debug.h +++ b/common/debug.h @@ -43,6 +43,7 @@ enum { P11_DEBUG_CONF = 1 << 2, P11_DEBUG_URI = 1 << 3, P11_DEBUG_PROXY = 1 << 4, + P11_DEBUG_TRUST = 1 << 5, }; extern int p11_debug_current_flags; @@ -83,6 +84,16 @@ void p11_debug_precond (const char *format, return v; \ } while (false) +#define warn_if_reached(v) \ + do { \ + p11_debug_precond ("p11-kit: shouldn't be reached at %s\n", __func__); \ + } while (false) + +#define warn_if_fail(x) \ + do { if (!(x)) { \ + p11_debug_precond ("p11-kit: '%s' not true at %s\n", #x, __func__); \ + } } while (false) + #endif /* DEBUG_H */ /* ----------------------------------------------------------------------------- |