diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2016-04-21 14:27:42 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2016-04-21 14:27:42 +0000 |
commit | f28b0db0e9e07233b6d984dee4b2a5b5cc3b6e36 (patch) | |
tree | 66877c9ee7400c3e274bb879d24fc3efdfcffd7d /usr.sbin/smtpd/ssl.h | |
parent | 6e3baa49e78eb6189b7c8da5b237b6fe7d3ab210 (diff) |
Use automatic DH parameters, instead of fixed ones. Also disable DHE by
default since it is computationally expensive and a potential DoS vector.
ok gilles@
Diffstat (limited to 'usr.sbin/smtpd/ssl.h')
-rw-r--r-- | usr.sbin/smtpd/ssl.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/usr.sbin/smtpd/ssl.h b/usr.sbin/smtpd/ssl.h index f86705a83d9..dfa6994cdb8 100644 --- a/usr.sbin/smtpd/ssl.h +++ b/usr.sbin/smtpd/ssl.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ssl.h,v 1.19 2015/12/13 09:52:44 gilles Exp $ */ +/* $OpenBSD: ssl.h,v 1.20 2016/04/21 14:27:41 jsing Exp $ */ /* * Copyright (c) 2013 Gilles Chehade <gilles@poolp.org> * @@ -31,9 +31,7 @@ struct pki { EVP_PKEY *pki_pkey; - char *pki_dhparams_file; - char *pki_dhparams; - off_t pki_dhparams_len; + int pki_dhe; }; struct ca { @@ -51,7 +49,6 @@ int ssl_setup(SSL_CTX **, struct pki *, int (*)(SSL *, int *, void *), const char *); SSL_CTX *ssl_ctx_create(const char *, char *, off_t, const char *); int ssl_cmp(struct pki *, struct pki *); -void ssl_set_ephemeral_key_exchange(SSL_CTX *, DH *); char *ssl_load_file(const char *, off_t *, mode_t); char *ssl_load_key(const char *, off_t *, char *, mode_t, const char *); @@ -61,7 +58,6 @@ void ssl_error(const char *); int ssl_load_certificate(struct pki *, const char *); int ssl_load_keyfile(struct pki *, const char *, const char *); int ssl_load_cafile(struct ca *, const char *); -int ssl_load_dhparams(struct pki *, const char *); int ssl_load_pkey(const void *, size_t, char *, off_t, X509 **, EVP_PKEY **); int ssl_ctx_fake_private_key(SSL_CTX *, const void *, size_t, |