Skip to content

Commit c1cdc40

Browse files
committed
fix build with libressl >= 3.5.0
Fix the following build failure with libressl >= 3.5.0: crypto-openssl-10.cpp:78:18: error: field 'ctx' has incomplete type 'HMAC_CTX' {aka 'hmac_ctx_st'} 78 | HMAC_CTX ctx; | ^~~ Fixes: - http://autobuild.buildroot.org/results/98747d470c2ad59280934e160d24bd3fdad1503c Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
1 parent a1e6311 commit c1cdc40

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)