projects
/
BearSSL
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6a691e6
)
Added macro that indicates presence of the time callback feature. Also added C++...
author
Thomas Pornin
<thomas.pornin@nccgroup.com>
Wed, 8 Jun 2022 12:15:39 +0000
(08:15 -0400)
committer
Thomas Pornin
<thomas.pornin@nccgroup.com>
Wed, 8 Jun 2022 12:15:39 +0000
(08:15 -0400)
inc/bearssl.h
patch
|
blob
|
history
diff --git
a/inc/bearssl.h
b/inc/bearssl.h
index
4f4797c
..
310edb2
100644
(file)
--- a/
inc/bearssl.h
+++ b/
inc/bearssl.h
@@
-137,6
+137,10
@@
#include "bearssl_x509.h"
#include "bearssl_pem.h"
#include "bearssl_x509.h"
#include "bearssl_pem.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/** \brief Type for a configuration option.
*
* A "configuration option" is a value that is selected when the BearSSL
/** \brief Type for a configuration option.
*
* A "configuration option" is a value that is selected when the BearSSL
@@
-167,4
+171,13
@@
typedef struct {
*/
const br_config_option *br_get_config(void);
*/
const br_config_option *br_get_config(void);
+/* ======================================================================= */
+
+/** \brief Version feature: support for time callback. */
+#define BR_FEATURE_X509_TIME_CALLBACK 1
+
+#ifdef __cplusplus
+}
+#endif
+
#endif
#endif