summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_locl.h
diff options
context:
space:
mode:
authorguenther <>2014-07-28 04:23:12 +0000
committerguenther <>2014-07-28 04:23:12 +0000
commit224cc55e7b0aa21110d14dd564e88e13893a294e (patch)
tree51d2af22ad1dd980f4ce9c87fa7c5ea39efd7be6 /src/lib/libssl/ssl_locl.h
parent23872c177fa5acf651189cdfcafd44e94da780ef (diff)
downloadopenbsd-224cc55e7b0aa21110d14dd564e88e13893a294e.tar.gz
openbsd-224cc55e7b0aa21110d14dd564e88e13893a294e.tar.bz2
openbsd-224cc55e7b0aa21110d14dd564e88e13893a294e.zip
The RSA, DH, and ECDH temporary key callbacks expect the number of keybits
for the key (expressed in RSA key bits, which makes *no sense* for ECDH) as their second argument, not zero. (jsing@ notes that the RSA callback is only invoked for 'export' ciphers, which have been removed from LibreSSL, and for the SSL_OP_EPHEMERAL_RSA option, which is makes the application non-compliant. More fuel for the tedu fire...) jasper@ noted the breakage and bisected it down to the diff that broke this ok jsing@ miod@
Diffstat (limited to 'src/lib/libssl/ssl_locl.h')
-rw-r--r--src/lib/libssl/ssl_locl.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/libssl/ssl_locl.h b/src/lib/libssl/ssl_locl.h
index 34e6337856..3c1c444cb0 100644
--- a/src/lib/libssl/ssl_locl.h
+++ b/src/lib/libssl/ssl_locl.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl_locl.h,v 1.62 2014/07/12 22:33:39 jsing Exp $ */ 1/* $OpenBSD: ssl_locl.h,v 1.63 2014/07/28 04:23:12 guenther Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -368,6 +368,12 @@
368#define SSL_MEDIUM 0x00000040L 368#define SSL_MEDIUM 0x00000040L
369#define SSL_HIGH 0x00000080L 369#define SSL_HIGH 0x00000080L
370 370
371/*
372 * The keylength (measured in RSA key bits, I guess) for temporary keys.
373 * Cipher argument is so that this can be variable in the future.
374 */
375#define SSL_C_PKEYLENGTH(c) 1024
376
371/* Check if an SSL structure is using DTLS. */ 377/* Check if an SSL structure is using DTLS. */
372#define SSL_IS_DTLS(s) (s->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS) 378#define SSL_IS_DTLS(s) (s->method->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)
373 379