summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorailin-nemui <ailin-nemui@users.noreply.github.com>2017-01-06 16:37:09 +0100
committerailin-nemui <ailin-nemui@users.noreply.github.com>2017-02-03 20:27:18 +0100
commit8dbf186ad6e808c269fa10c22444c89df63f2d7d (patch)
tree13f140910393beca29e462090b7d6fa1be99d1ac /src
parent7c49ed2d17d2325d7bceef632ac38b66a44e8b63 (diff)
downloadirssi-8dbf186ad6e808c269fa10c22444c89df63f2d7d.zip
Merge pull request #604 from dequis/solaris
Add OPENSSL_NO_EC for solaris 11.3, see issue #598
Diffstat (limited to 'src')
-rw-r--r--src/core/network-openssl.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/network-openssl.c b/src/core/network-openssl.c
index 7a1d6e34..1eb85341 100644
--- a/src/core/network-openssl.c
+++ b/src/core/network-openssl.c
@@ -646,7 +646,11 @@ static void set_server_temporary_key_info(TLS_REC *tls, SSL *ssl)
#ifdef SSL_get_server_tmp_key
// Show ephemeral key information.
EVP_PKEY *ephemeral_key = NULL;
+
+ // OPENSSL_NO_EC is for solaris 11.3 (2016), github ticket #598
+#ifndef OPENSSL_NO_EC
EC_KEY *ec_key = NULL;
+#endif
char *ephemeral_key_algorithm = NULL;
char *cname = NULL;
int nid;
@@ -658,6 +662,7 @@ static void set_server_temporary_key_info(TLS_REC *tls, SSL *ssl)
tls_rec_set_ephemeral_key_size(tls, EVP_PKEY_bits(ephemeral_key));
break;
+#ifndef OPENSSL_NO_EC
case EVP_PKEY_EC:
ec_key = EVP_PKEY_get1_EC_KEY(ephemeral_key);
nid = EC_GROUP_get_curve_name(EC_KEY_get0_group(ec_key));
@@ -670,6 +675,7 @@ static void set_server_temporary_key_info(TLS_REC *tls, SSL *ssl)
g_free_and_null(ephemeral_key_algorithm);
break;
+#endif
default:
tls_rec_set_ephemeral_key_algorithm(tls, "Unknown");