summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd/ssl.h
diff options
context:
space:
mode:
authorEric Faurot <eric@cvs.openbsd.org>2013-07-19 09:04:08 +0000
committerEric Faurot <eric@cvs.openbsd.org>2013-07-19 09:04:08 +0000
commit42dd402b7a6c585371482b73cff08c661bbd5973 (patch)
tree75575f6b9da707909995e4f9921e30e6811f6fb9 /usr.sbin/smtpd/ssl.h
parentf23dfa28ba8ed18d01ab4b3007c35ae297f021c9 (diff)
tls perfect forward secrecy with ecdhe
suggested by djm@ on hackers@, diff ok djm@
Diffstat (limited to 'usr.sbin/smtpd/ssl.h')
-rw-r--r--usr.sbin/smtpd/ssl.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/ssl.h b/usr.sbin/smtpd/ssl.h
index 640dc63f491..4cbec59458f 100644
--- a/usr.sbin/smtpd/ssl.h
+++ b/usr.sbin/smtpd/ssl.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssl.h,v 1.1 2013/01/26 09:37:24 gilles Exp $ */
+/* $OpenBSD: ssl.h,v 1.2 2013/07/19 09:04:07 eric Exp $ */
/*
* Copyright (c) 2013 Gilles Chehade <gilles@poolp.org>
*
@@ -15,7 +15,8 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#define SSL_CIPHERS "HIGH"
+#define SSL_CIPHERS "HIGH:!aNULL:!MD5"
+#define SSL_ECDH_CURVE "prime256v1"
#define SSL_SESSION_TIMEOUT 300
struct ssl {
@@ -42,6 +43,7 @@ int ssl_cmp(struct ssl *, struct ssl *);
DH *get_dh1024(void);
DH *get_dh_from_memory(char *, size_t);
void ssl_set_ephemeral_key_exchange(SSL_CTX *, DH *);
+void ssl_set_ecdh_curve(SSL_CTX *);
extern int ssl_ctx_load_verify_memory(SSL_CTX *, char *, off_t);
char *ssl_load_file(const char *, off_t *, mode_t);
char *ssl_load_key(const char *, off_t *, char *);