DPP: Fix build with LibreSSL 2.8.3
Looks like LibreSSL 2.8 pulled in the OpenSSL API change to mark the first argument to X509_ALGOR_get0() const. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
parent
837e36583a
commit
5bcddb9302
1 changed files with 3 additions and 1 deletions
|
@ -813,7 +813,9 @@ 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 || defined(LIBRESSL_VERSION_NUMBER)
|
||||
#if OPENSSL_VERSION_NUMBER < 0x10100000L || \
|
||||
(defined(LIBRESSL_VERSION_NUMBER) && \
|
||||
LIBRESSL_VERSION_NUMBER < 0x20800000L)
|
||||
ASN1_OBJECT *pa_oid;
|
||||
#else
|
||||
const ASN1_OBJECT *pa_oid;
|
||||
|
|
Loading…
Reference in a new issue