Skip to content

Commit 1e1a5d6

Browse files
committed
fix build with openssl >= 3.5.0 (AGWA#249)
1 parent 968c924 commit 1e1a5d6

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

crypto-openssl-10.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,15 @@
2828
* as that of the covered work.
2929
*/
3030

31-
#include <openssl/opensslconf.h>
31+
#include <openssl/hmac.h>
3232

33-
#if !defined(OPENSSL_API_COMPAT)
33+
#if defined(HMAC_cleanup)
3434

3535
#include "crypto.hpp"
3636
#include "key.hpp"
3737
#include "util.hpp"
3838
#include <openssl/aes.h>
3939
#include <openssl/sha.h>
40-
#include <openssl/hmac.h>
4140
#include <openssl/evp.h>
4241
#include <openssl/rand.h>
4342
#include <openssl/err.h>

crypto-openssl-11.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,15 @@
2828
* as that of the covered work.
2929
*/
3030

31-
#include <openssl/opensslconf.h>
31+
#include <openssl/hmac.h>
3232

33-
#if defined(OPENSSL_API_COMPAT)
33+
#if !defined(HMAC_cleanup)
3434

3535
#include "crypto.hpp"
3636
#include "key.hpp"
3737
#include "util.hpp"
3838
#include <openssl/aes.h>
3939
#include <openssl/sha.h>
40-
#include <openssl/hmac.h>
4140
#include <openssl/evp.h>
4241
#include <openssl/rand.h>
4342
#include <openssl/err.h>

0 commit comments

Comments
 (0)