Skip to content

Commit 87f1d0f

Browse files
committed
pocoproject#596: only include openssl/fips.h for OpenSSL versions < 1.0.1
1 parent 6741e90 commit 87f1d0f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Crypto/include/Poco/Crypto/OpenSSLInitializer.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
#include "Poco/Crypto/Crypto.h"
2424
#include "Poco/Mutex.h"
2525
#include <openssl/crypto.h>
26-
#ifdef OPENSSL_FIPS
26+
#include <openssl/opensslv.h>
27+
#if defined(OPENSSL_FIPS) && OPENSSL_VERSION_NUMBER < 0x010001000L
2728
#include <openssl/fips.h>
2829
#endif
2930

0 commit comments

Comments
 (0)