summaryrefslogtreecommitdiffstats
path: root/usr.sbin/smtpd/ssl_smtpd.c
diff options
context:
space:
mode:
authorgilles <gilles@openbsd.org>2015-12-12 17:16:56 +0000
committergilles <gilles@openbsd.org>2015-12-12 17:16:56 +0000
commitf6cd02ecb0aa16b81b515aa225e39d53cb7db77d (patch)
treebfdd5c97d21cb0515376f55f0feb78d14ca61b4c /usr.sbin/smtpd/ssl_smtpd.c
parentbump DH params to 2048, it's been part of smtpd releases for a long time (diff)
downloadwireguard-openbsd-f6cd02ecb0aa16b81b515aa225e39d53cb7db77d.tar.xz
wireguard-openbsd-f6cd02ecb0aa16b81b515aa225e39d53cb7db77d.zip
allow overriding the default cipher-suite
ok jung@, sunil@, millert@
Diffstat (limited to 'usr.sbin/smtpd/ssl_smtpd.c')
-rw-r--r--usr.sbin/smtpd/ssl_smtpd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/smtpd/ssl_smtpd.c b/usr.sbin/smtpd/ssl_smtpd.c
index 87450eb1f5a..20d927c9256 100644
--- a/usr.sbin/smtpd/ssl_smtpd.c
+++ b/usr.sbin/smtpd/ssl_smtpd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssl_smtpd.c,v 1.10 2015/10/21 16:44:28 jsing Exp $ */
+/* $OpenBSD: ssl_smtpd.c,v 1.11 2015/12/12 17:16:56 gilles Exp $ */
/*
* Copyright (c) 2008 Pierre-Yves Ritschard <pyr@openbsd.org>
@@ -45,12 +45,12 @@
void *
-ssl_mta_init(void *pkiname, char *cert, off_t cert_len)
+ssl_mta_init(void *pkiname, char *cert, off_t cert_len, const char *ciphers)
{
SSL_CTX *ctx = NULL;
SSL *ssl = NULL;
- ctx = ssl_ctx_create(pkiname, cert, cert_len);
+ ctx = ssl_ctx_create(pkiname, cert, cert_len, ciphers);
if ((ssl = SSL_new(ctx)) == NULL)
goto err;