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 <fontaine.fabrice@gmail.com>
  • Loading branch information
ffontaine committed May 14, 2022
1 parent a1e6311 commit c21cde9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion crypto-openssl-10.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,10 @@
*/

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

#if !defined(OPENSSL_API_COMPAT)
#if !defined(OPENSSL_API_COMPAT) && \
!(defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER >= 0x30500000L)

#include "crypto.hpp"
#include "key.hpp"
Expand Down
4 changes: 3 additions & 1 deletion crypto-openssl-11.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,10 @@
*/

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

#if defined(OPENSSL_API_COMPAT)
#if defined(OPENSSL_API_COMPAT) || \
(defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER >= 0x30500000L)

#include "crypto.hpp"
#include "key.hpp"
Expand Down

0 comments on commit c21cde9

Please sign in to comment.