Skip to content

Commit

Permalink
src/capture_openssl.h: 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:

capture_openssl.c: In function 'P_hash':
capture_openssl.c:101:18: error: storage size of 'hm' isn't known
  101 |         HMAC_CTX hm;
      |                  ^~

Fixes:
 - http://autobuild.buildroot.org/results/f1e8cdb3ac35a30055ab79d41e6cc038e5339c37

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  • Loading branch information
ffontaine authored and Kaian committed May 2, 2022
1 parent 3e56219 commit 4e1406a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/capture_openssl.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,11 @@
#endif

/* LibreSSL declares OPENSSL_VERSION_NUMBER == 2.0 but does not include most
* changes from OpenSSL >= 1.1 (new functions, macros, deprecations, ...)
* changes from OpenSSL >= 1.1 (new functions, macros, deprecations, ...) until
* version 3.5.0
*/
#if defined(LIBRESSL_VERSION_NUMBER)
#define MODSSL_USE_OPENSSL_PRE_1_1_API (1)
#define MODSSL_USE_OPENSSL_PRE_1_1_API (LIBRESSL_VERSION_NUMBER < 0x30500000L)
#else
#define MODSSL_USE_OPENSSL_PRE_1_1_API (OPENSSL_VERSION_NUMBER < 0x10100000L)
#endif
Expand Down

0 comments on commit 4e1406a

Please sign in to comment.