From: Jouni Malinen Date: Fri, 24 Jun 2016 21:35:17 +0000 (+0300) Subject: OpenSSL: Update to match the modified DH_get0_key() API X-Git-Tag: hostap_2_6~319 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e6804fef93fa0c7e244baa80ee15d1a515ce0976;p=thirdparty%2Fhostap.git OpenSSL: Update to match the modified DH_get0_key() API OpenSSL 1.1.0 (master branch) apparently ended up modifying the API after the beta 2 release that was supposed to complete the work. Mark the variables const to fix the compilation with the modified OpenSSL API. Signed-off-by: Jouni Malinen --- diff --git a/src/crypto/crypto_openssl.c b/src/crypto/crypto_openssl.c index a74681fd7..fde154faf 100644 --- a/src/crypto/crypto_openssl.c +++ b/src/crypto/crypto_openssl.c @@ -653,7 +653,8 @@ err: DH *dh; struct wpabuf *pubkey = NULL, *privkey = NULL; size_t publen, privlen; - BIGNUM *p = NULL, *g, *priv_key = NULL, *pub_key = NULL; + BIGNUM *p = NULL, *g; + const BIGNUM *priv_key = NULL, *pub_key = NULL; *priv = NULL; wpabuf_free(*publ);