git.iko.soy/typeable/nixpkgs
on master help sign in
wpa_supplicant: 2.5 -> 2.6 (#19913)
commitb86310fccf878825e34530ae17051ad3c209f3bf authorTim Steinbach <NeQuissimus@users.noreply.github.com> dateThu 27 Oct 2016, 07:57 (10 years ago) parentc9204f7
2 files changed+2−72
pkgs/os-specific/linux/wpa_supplicant/default.nix+2−3 pkgs/os-specific/linux/wpa_supplicant/libressl.patch−69
pkgs/os-specific/linux/wpa_supplicant/default.nix+2−3
@@ -4,13 +4,13 @@
44
55with stdenv.lib;
66stdenv.mkDerivation rec {
7− version = "2.5";
7+ version = "2.6";
88
99 name = "wpa_supplicant-${version}";
1010
1111 src = fetchurl {
1212 url = "http://hostap.epitest.fi/releases/${name}.tar.gz";
13− sha256 = "05mkp5bx1c3z7h5biddsv0p49gkrq9ksany3anp4wdiv92p5prfc";
13+ sha256 = "0l0l5gz3d5j9bqjsbjlfcv4w4jwndllp9fmyai4x9kg6qhs6v4xl";
1414 };
1515
1616 # TODO: Patch epoll so that the dbus actually responds
@@ -79,7 +79,6 @@ stdenv.mkDerivation rec {
7979
8080 patches = [
8181 ./build-fix.patch
82− ./libressl.patch
8382 ];
8483
8584 postInstall = ''
pkgs/os-specific/linux/wpa_supplicant/libressl.patchdeleted−69
@@ -1,69 +0,0 @@
1−$OpenBSD: patch-src_crypto_tls_openssl_c,v 1.3 2015/09/29 11:57:54 dcoppa Exp $
2−
3−Compatibility fixes for LibreSSL
4−
5−--- a/src/crypto/tls_openssl.c Sun Sep 27 21:02:05 2015
6−+++ b/src/crypto/tls_openssl.c Mon Sep 28 13:43:46 2015
7−@@ -2229,7 +2229,7 @@ static int tls_parse_pkcs12(struct tls_data *data, SSL
8− }
9−
10− if (certs) {
11−-#if OPENSSL_VERSION_NUMBER >= 0x10002000L
12−+#if OPENSSL_VERSION_NUMBER >= 0x10002000L && !defined(LIBRESSL_VERSION_NUMBER)
13− SSL_clear_chain_certs(ssl);
14− while ((cert = sk_X509_pop(certs)) != NULL) {
15− X509_NAME_oneline(X509_get_subject_name(cert), buf,
16−@@ -2247,7 +2247,7 @@ static int tls_parse_pkcs12(struct tls_data *data, SSL
17− /* Try to continue anyway */
18− }
19− sk_X509_free(certs);
20−-#ifndef OPENSSL_IS_BORINGSSL
21−+#if !defined(OPENSSL_IS_BORINGSSL) && !defined(LIBRESSL_VERSION_NUMBER)
22− res = SSL_build_cert_chain(ssl,
23− SSL_BUILD_CHAIN_FLAG_CHECK |
24− SSL_BUILD_CHAIN_FLAG_IGNORE_ERROR);
25−@@ -2812,7 +2812,7 @@ int tls_connection_get_random(void *ssl_ctx, struct tl
26− if (conn == NULL || keys == NULL)
27− return -1;
28− ssl = conn->ssl;
29−-#if OPENSSL_VERSION_NUMBER < 0x10100000L
30−+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
31− if (ssl == NULL || ssl->s3 == NULL || ssl->session == NULL)
32− return -1;
33−
34−@@ -2841,7 +2841,7 @@ int tls_connection_get_random(void *ssl_ctx, struct tl
35− #ifndef CONFIG_FIPS
36− static int openssl_get_keyblock_size(SSL *ssl)
37− {
38−-#if OPENSSL_VERSION_NUMBER < 0x10100000L
39−+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
40− const EVP_CIPHER *c;
41− const EVP_MD *h;
42− int md_size;
43−@@ -2911,7 +2911,7 @@ static int openssl_tls_prf(struct tls_connection *conn
44− "mode");
45− return -1;
46− #else /* CONFIG_FIPS */
47−-#if OPENSSL_VERSION_NUMBER < 0x10100000L
48−+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
49− SSL *ssl;
50− u8 *rnd;
51− int ret = -1;
52−@@ -3394,7 +3394,7 @@ int tls_connection_set_cipher_list(void *tls_ctx, stru
53−
54− wpa_printf(MSG_DEBUG, "OpenSSL: cipher suites: %s", buf + 1);
55−
56−-#if OPENSSL_VERSION_NUMBER >= 0x10100000L
57−+#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)
58− #if defined(EAP_FAST) || defined(EAP_FAST_DYNAMIC) || defined(EAP_SERVER_FAST)
59− if (os_strstr(buf, ":ADH-")) {
60− /*
61−@@ -3977,7 +3977,7 @@ static int tls_sess_sec_cb(SSL *s, void *secret, int *
62− struct tls_connection *conn = arg;
63− int ret;
64−
65−-#if OPENSSL_VERSION_NUMBER < 0x10100000L
66−+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
67− if (conn == NULL || conn->session_ticket_cb == NULL)
68− return 0;
69−