Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 567262 | Differences between
and this patch

Collapse All | Expand All

(-)a/src/crypto/crypto_openssl.c (-4 / +2 lines)
Lines 611-617 void crypto_cipher_deinit(struct crypto_cipher *ctx) Link Here
611
611
612
void * dh5_init(struct wpabuf **priv, struct wpabuf **publ)
612
void * dh5_init(struct wpabuf **priv, struct wpabuf **publ)
613
{
613
{
614
#if OPENSSL_VERSION_NUMBER < 0x10100000L
614
#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
615
	DH *dh;
615
	DH *dh;
616
	struct wpabuf *pubkey = NULL, *privkey = NULL;
616
	struct wpabuf *pubkey = NULL, *privkey = NULL;
617
	size_t publen, privlen;
617
	size_t publen, privlen;
Lines 712-718 err: Link Here
712
712
713
void * dh5_init_fixed(const struct wpabuf *priv, const struct wpabuf *publ)
713
void * dh5_init_fixed(const struct wpabuf *priv, const struct wpabuf *publ)
714
{
714
{
715
#if OPENSSL_VERSION_NUMBER < 0x10100000L
715
#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
716
	DH *dh;
716
	DH *dh;
717
717
718
	dh = DH_new();
718
	dh = DH_new();
719
- 
720
--
721
src/crypto/tls_openssl.c | 6 +++---
719
src/crypto/tls_openssl.c | 6 +++---
722
1 file changed, 3 insertions(+), 3 deletions(-)
720
1 file changed, 3 insertions(+), 3 deletions(-)
(-)a/src/crypto/tls_openssl.c (-5 / +3 lines)
Lines 919-925 void * tls_init(const struct tls_config *conf) Link Here
919
		}
919
		}
920
#endif /* OPENSSL_FIPS */
920
#endif /* OPENSSL_FIPS */
921
#endif /* CONFIG_FIPS */
921
#endif /* CONFIG_FIPS */
922
#if OPENSSL_VERSION_NUMBER < 0x10100000L
922
#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
923
		SSL_load_error_strings();
923
		SSL_load_error_strings();
924
		SSL_library_init();
924
		SSL_library_init();
925
#ifndef OPENSSL_NO_SHA256
925
#ifndef OPENSSL_NO_SHA256
Lines 1043-1049 void tls_deinit(void *ssl_ctx) Link Here
1043
1043
1044
	tls_openssl_ref_count--;
1044
	tls_openssl_ref_count--;
1045
	if (tls_openssl_ref_count == 0) {
1045
	if (tls_openssl_ref_count == 0) {
1046
#if OPENSSL_VERSION_NUMBER < 0x10100000L
1046
#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
1047
#ifndef OPENSSL_NO_ENGINE
1047
#ifndef OPENSSL_NO_ENGINE
1048
		ENGINE_cleanup();
1048
		ENGINE_cleanup();
1049
#endif /* OPENSSL_NO_ENGINE */
1049
#endif /* OPENSSL_NO_ENGINE */
Lines 2334-2340 static int tls_connection_client_cert(struct tls_connection *conn, Link Here
2334
		return 0;
2334
		return 0;
2335
2335
2336
#ifdef PKCS12_FUNCS
2336
#ifdef PKCS12_FUNCS
2337
#if OPENSSL_VERSION_NUMBER < 0x10002000L
2337
#if OPENSSL_VERSION_NUMBER < 0x10002000L || defined(LIBRESSL_VERSION_NUMBER)
2338
	/*
2338
	/*
2339
	 * Clear previously set extra chain certificates, if any, from PKCS#12
2339
	 * Clear previously set extra chain certificates, if any, from PKCS#12
2340
	 * processing in tls_parse_pkcs12() to allow OpenSSL to build a new
2340
	 * processing in tls_parse_pkcs12() to allow OpenSSL to build a new
2341
- 
2342
--
2343
src/crypto/tls_openssl.c | 2 +-
2341
src/crypto/tls_openssl.c | 2 +-
2344
1 file changed, 1 insertion(+), 1 deletion(-)
2342
1 file changed, 1 insertion(+), 1 deletion(-)
(-)a/src/crypto/tls_openssl.c (-2 / +1 lines)
Lines 3976-3982 int tls_connection_set_params(void *tls_ctx, struct tls_connection *conn, Link Here
3976
		engine_id = "pkcs11";
3976
		engine_id = "pkcs11";
3977
3977
3978
#if defined(EAP_FAST) || defined(EAP_FAST_DYNAMIC) || defined(EAP_SERVER_FAST)
3978
#if defined(EAP_FAST) || defined(EAP_FAST_DYNAMIC) || defined(EAP_SERVER_FAST)
3979
#if OPENSSL_VERSION_NUMBER < 0x10100000L
3979
#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
3980
	if (params->flags & TLS_CONN_EAP_FAST) {
3980
	if (params->flags & TLS_CONN_EAP_FAST) {
3981
		wpa_printf(MSG_DEBUG,
3981
		wpa_printf(MSG_DEBUG,
3982
			   "OpenSSL: Use TLSv1_method() for EAP-FAST");
3982
			   "OpenSSL: Use TLSv1_method() for EAP-FAST");
3983
- 

Return to bug 567262