diff options
author | Alexander Færøy <ahf@0x90.dk> | 2016-10-21 17:58:28 +0200 |
---|---|---|
committer | Alexander Færøy <ahf@0x90.dk> | 2016-10-22 22:04:33 +0200 |
commit | 322625b5487527420cae0a6a1c0da8ecdc87fd4b (patch) | |
tree | 78594a30667f9f17331047ff6493e6a4b96ecc8a /src/core/tls.c | |
parent | 0a6e66f8b794de76bd48bda199977b977a377e2e (diff) | |
download | irssi-322625b5487527420cae0a6a1c0da8ecdc87fd4b.zip |
Only do checks for SSL_get_server_tmp_key in network-openssl.c.
Diffstat (limited to 'src/core/tls.c')
-rw-r--r-- | src/core/tls.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/core/tls.c b/src/core/tls.c index 8aad0c89..3bddd773 100644 --- a/src/core/tls.c +++ b/src/core/tls.c @@ -42,10 +42,7 @@ void tls_rec_free(TLS_REC *tls_rec) g_free_and_null(tls_rec->certificate_fingerprint_algorithm); g_free_and_null(tls_rec->not_after); g_free_and_null(tls_rec->not_before); - -#ifdef SSL_get_server_tmp_key g_free_and_null(tls_rec->ephemeral_key_algorithm); -#endif if (tls_rec->certs != NULL) { g_slist_foreach(tls_rec->certs, (GFunc)tls_cert_rec_free, NULL); @@ -130,7 +127,6 @@ void tls_rec_set_not_before(TLS_REC *tls_rec, const char *not_before) tls_rec->not_before = g_strdup(not_before); } -#ifdef SSL_get_server_tmp_key void tls_rec_set_ephemeral_key_algorithm(TLS_REC *tls_rec, const char *algorithm) { g_return_if_fail(tls_rec != NULL); @@ -142,7 +138,6 @@ void tls_rec_set_ephemeral_key_size(TLS_REC *tls_rec, size_t size) g_return_if_fail(tls_rec != NULL); tls_rec->ephemeral_key_size = size; } -#endif void tls_rec_append_cert(TLS_REC *tls_rec, TLS_CERT_REC *tls_cert_rec) { |