mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-31 09:14:03 -05:00
DPP: Fix X509_ALGOR_get0() use with LibreSSL
At least LibreSSL v2.7.2 indicates support for OpenSSL API 1.1.0, but it does not apparently use const ASN1_OBJECT * with X509_ALGOR_get0(). Use the older non-const version here with LibreSSL to fix compilation. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
dee566d98e
commit
4b603f01de
@ -811,7 +811,7 @@ static int dpp_parse_uri_pk(struct dpp_bootstrap_info *bi, const char *info)
|
||||
const unsigned char *pk;
|
||||
int ppklen;
|
||||
X509_ALGOR *pa;
|
||||
#if OPENSSL_VERSION_NUMBER < 0x10100000L
|
||||
#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
|
||||
ASN1_OBJECT *pa_oid;
|
||||
#else
|
||||
const ASN1_OBJECT *pa_oid;
|
||||
|
Loading…
Reference in New Issue
Block a user