security/aircrack-ng: force use of OpenSSL 1.1 code path to fix build

with opaque HMAC_CTX in upcoming libcrypto bump.
This commit is contained in:
tb 2021-12-04 11:44:41 +00:00
parent 164fffecb2
commit 0919a1aedf
2 changed files with 20 additions and 2 deletions

View File

@ -1,8 +1,8 @@
# $OpenBSD: Makefile,v 1.33 2020/12/27 18:13:18 sthen Exp $
# $OpenBSD: Makefile,v 1.34 2021/12/04 11:44:41 tb Exp $
COMMENT= 802.11 WEP and WPA-PSK keys cracking program
DISTNAME= aircrack-ng-1.5.2
REVISION= 6
REVISION= 7
CATEGORIES= security
HOMEPAGE= https://www.aircrack-ng.org/

View File

@ -0,0 +1,18 @@
$OpenBSD: patch-src_crypto_c,v 1.1 2021/12/04 11:44:42 tb Exp $
Fix build with opaque HMAC_CTX in LibreSSL 3.5. The relevant API has
been available since LibreSSL 2.7.
Index: src/crypto.c
--- src/crypto.c.orig
+++ src/crypto.c
@@ -218,8 +218,7 @@ void calc_mic(struct AP_info * ap,
{
int i;
unsigned char pke[100];
-#if defined(USE_GCRYPT) || OPENSSL_VERSION_NUMBER < 0x10100000L \
- || defined(LIBRESSL_VERSION_NUMBER)
+#if defined(USE_GCRYPT) || OPENSSL_VERSION_NUMBER < 0x10100000L
#define HMAC_USE_NO_PTR
#endif