net-vpn/openvpn: remove unused patch/file.

Closes: https://github.com/gentoo/gentoo/pull/5736
This commit is contained in:
Michael Mair-Keimberger
2017-09-20 14:35:25 +02:00
committed by Patrice Clement
parent 57c82a2809
commit 7ac71c23e9
2 changed files with 0 additions and 22 deletions

View File

@@ -1,21 +0,0 @@
diff --git a/src/openvpn/ssl_openssl.c b/src/openvpn/ssl_openssl.c
index 8266595..a889332 100644
--- a/src/openvpn/ssl_openssl.c
+++ b/src/openvpn/ssl_openssl.c
@@ -508,10 +508,13 @@ tls_ctx_load_ecdh_params(struct tls_root_ctx *ctx, const char *curve_name
const EC_GROUP *ecgrp = NULL;
EVP_PKEY *pkey = NULL;
- /* Little hack to get private key ref from SSL_CTX, yay OpenSSL... */
- SSL ssl;
- ssl.cert = ctx->ctx->cert;
- pkey = SSL_get_privatekey(&ssl);
+ SSL *ssl = SSL_new(ctx->ctx);
+ if (!ssl)
+ {
+ crypto_msg(M_FATAL, "SSL_new failed");
+ }
+ pkey = SSL_get_privatekey(ssl);
+ SSL_free(ssl);
msg(D_TLS_DEBUG, "Extracting ECDH curve from private key");

View File

@@ -1 +0,0 @@
D /var/run/openvpn 0710 root openvpn -