FreeBSD Bugzilla – Attachment 167764 Details for
Bug 207745
contrib/wpa Version checks failing with LibreSSL
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
git diff for contrib/wpa
patch-contrib_wpa_src_crypto_tls__openssl.c (text/plain), 1.86 KB, created by
Bernard Spil
on 2016-03-06 13:57:15 UTC
(
hide
)
Description:
git diff for contrib/wpa
Filename:
MIME Type:
Creator:
Bernard Spil
Created:
2016-03-06 13:57:15 UTC
Size:
1.86 KB
patch
obsolete
>diff --git a/contrib/wpa/src/crypto/tls_openssl.c b/contrib/wpa/src/crypto/tls_openssl.c >index 8b7b47b..74f311f 100644 >--- a/contrib/wpa/src/crypto/tls_openssl.c >+++ b/contrib/wpa/src/crypto/tls_openssl.c >@@ -125,7 +125,7 @@ struct tls_connection { > X509 *peer_issuer; > X509 *peer_issuer_issuer; > >-#if OPENSSL_VERSION_NUMBER >= 0x10100000L >+#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER) > unsigned char client_random[SSL3_RANDOM_SIZE]; > unsigned char server_random[SSL3_RANDOM_SIZE]; > #endif >@@ -2229,7 +2229,7 @@ static int tls_parse_pkcs12(struct tls_data *data, SSL *ssl, PKCS12 *p12, > } > > if (certs) { >-#if OPENSSL_VERSION_NUMBER >= 0x10002000L >+#if OPENSSL_VERSION_NUMBER >= 0x10002000L && !defined(LIBRESSL_VERSION_NUMBER) > SSL_clear_chain_certs(ssl); > while ((cert = sk_X509_pop(certs)) != NULL) { > X509_NAME_oneline(X509_get_subject_name(cert), buf, >@@ -2812,7 +2812,7 @@ int tls_connection_get_random(void *ssl_ctx, struct tls_connection *conn, > if (conn == NULL || keys == NULL) > return -1; > ssl = conn->ssl; >-#if OPENSSL_VERSION_NUMBER < 0x10100000L >+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) > if (ssl == NULL || ssl->s3 == NULL || ssl->session == NULL) > return -1; > >@@ -2841,7 +2841,7 @@ int tls_connection_get_random(void *ssl_ctx, struct tls_connection *conn, > #ifndef CONFIG_FIPS > static int openssl_get_keyblock_size(SSL *ssl) > { >-#if OPENSSL_VERSION_NUMBER < 0x10100000L >+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) > const EVP_CIPHER *c; > const EVP_MD *h; > int md_size; >@@ -2911,7 +2911,7 @@ static int openssl_tls_prf(struct tls_connection *conn, > "mode"); > return -1; > #else /* CONFIG_FIPS */ >-#if OPENSSL_VERSION_NUMBER < 0x10100000L >+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) > SSL *ssl; > u8 *rnd; > int ret = -1;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 207745
: 167764