aboutsummaryrefslogtreecommitdiffstats
path: root/usr.sbin/smtpd/ssl.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/smtpd/ssl.c')
-rw-r--r--usr.sbin/smtpd/ssl.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/ssl.c b/usr.sbin/smtpd/ssl.c
index a37d6fea..97f7b1df 100644
--- a/usr.sbin/smtpd/ssl.c
+++ b/usr.sbin/smtpd/ssl.c
@@ -400,11 +400,12 @@ ssl_load_pkey(const void *data, size_t datalen, char *buf, off_t len,
#if defined(SUPPORT_ECDSA)
if (eckey)
ECDSA_set_ex_data(eckey, 0, exdata);
+#else
+ if (eckey)
+ EC_KEY_set_ex_data(eckey, 0, exdata);
#endif
RSA_free(rsa); /* dereference, will be cleaned up with pkey */
-#if defined(SUPPORT_ECDSA)
EC_KEY_free(eckey); /* dereference, will be cleaned up with pkey */
-#endif
}
*x509ptr = x509;