Fixed spurious warning about old-style prototype. master
authorThomas Pornin <thomas.pornin@nccgroup.com>
Tue, 21 Feb 2023 00:09:51 +0000 (19:09 -0500)
committerThomas Pornin <thomas.pornin@nccgroup.com>
Tue, 21 Feb 2023 00:09:51 +0000 (19:09 -0500)
inc/bearssl.h
src/rsa/rsa_i62_keygen.c

index 4f4797c..310edb2 100644 (file)
 #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
@@ -167,4 +171,13 @@ typedef struct {
  */
 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
index 8f55c37..992fe97 100644 (file)
@@ -40,7 +40,7 @@ br_rsa_i62_keygen(const br_prng_class **rng,
 
 /* see bearssl_rsa.h */
 br_rsa_keygen
-br_rsa_i62_keygen_get()
+br_rsa_i62_keygen_get(void)
 {
        return &br_rsa_i62_keygen;
 }
@@ -49,7 +49,7 @@ br_rsa_i62_keygen_get()
 
 /* see bearssl_rsa.h */
 br_rsa_keygen
-br_rsa_i62_keygen_get()
+br_rsa_i62_keygen_get(void)
 {
        return 0;
 }