mirror of
https://github.com/strophe/libstrophe.git
synced 2026-07-27 15:46:22 +00:00
Add support to retrieve the fingerprint of a public key from a cert.
Related-to: https://github.com/profanity-im/profanity/issues/2069 Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
This commit is contained in:
11
src/common.h
11
src/common.h
@@ -29,6 +29,17 @@
|
||||
#include "parser.h"
|
||||
#include "snprintf.h"
|
||||
|
||||
/** Define your own `STROPHE_STATIC_ASSERT` if your compiler doesn't support one
|
||||
* of the below ones or define as noop if your compiler provides no replacement.
|
||||
*/
|
||||
#if !defined(STROPHE_STATIC_ASSERT)
|
||||
#if (__STDC_VERSION__ >= 202000L)
|
||||
#define STROPHE_STATIC_ASSERT(cond, msg) static_assert(cond, msg)
|
||||
#else
|
||||
#define STROPHE_STATIC_ASSERT(cond, msg) _Static_assert(cond, msg)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/** handlers **/
|
||||
#if (__STDC_VERSION__ >= 202000L)
|
||||
typedef void *xmpp_void_handler;
|
||||
|
||||
Reference in New Issue
Block a user