[openssl-dev] [openssl.org #4685] [PATCH v2] Add missing prototype for FIPS callback
Dr. Matthias St. Pierre via RT
rt at openssl.org
Mon Sep 26 16:23:45 UTC 2016
The call to FIPS_crypto_set_id_callback() was added in revision a43cfd7bb1fc681d563e,
but there is no prototype for it in <openssl/fips.h>.
---
Moved the function prototype upwards, because declarations can only be placed
at the top of a function in C.
crypto/o_init.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/crypto/o_init.c b/crypto/o_init.c
index 185841e..18bb858 100644
--- a/crypto/o_init.c
+++ b/crypto/o_init.c
@@ -58,6 +58,11 @@
#ifdef OPENSSL_FIPS
# include <openssl/fips.h>
# include <openssl/rand.h>
+
+# ifndef OPENSSL_NO_DEPRECATED
+/* the prototype is missing in <openssl/fips.h> */
+void FIPS_crypto_set_id_callback(unsigned long (*func)(void));
+# endif
#endif
/*
--
2.7.3
--
Ticket here: http://rt.openssl.org/Ticket/Display.html?id=4685
Please log in as guest with password guest if prompted
More information about the openssl-dev
mailing list