Skip to content

Commit

Permalink
fix build with libressl >= 3.5.0
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
ffontaine committed May 20, 2022
1 parent a1e6311 commit c1cdc40
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions crypto-openssl-10.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,15 @@
* as that of the covered work.
*/

#include <openssl/opensslconf.h>
#include <openssl/hmac.h>

#if !defined(OPENSSL_API_COMPAT)
#if defined(HMAC_cleanup)

#include "crypto.hpp"
#include "key.hpp"
#include "util.hpp"
#include <openssl/aes.h>
#include <openssl/sha.h>
#include <openssl/hmac.h>
#include <openssl/evp.h>
#include <openssl/rand.h>
#include <openssl/err.h>
Expand Down
5 changes: 2 additions & 3 deletions crypto-openssl-11.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,15 @@
* as that of the covered work.
*/

#include <openssl/opensslconf.h>
#include <openssl/hmac.h>

#if defined(OPENSSL_API_COMPAT)
#if !defined(HMAC_cleanup)

#include "crypto.hpp"
#include "key.hpp"
#include "util.hpp"
#include <openssl/aes.h>
#include <openssl/sha.h>
#include <openssl/hmac.h>
#include <openssl/evp.h>
#include <openssl/rand.h>
#include <openssl/err.h>
Expand Down

0 comments on commit c1cdc40

Please sign in to comment.