summaryrefslogtreecommitdiffstats
path: root/lib/libssl/t1_lib.c
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2014-04-17 20:34:24 +0000
committertedu <tedu@openbsd.org>2014-04-17 20:34:24 +0000
commitc45ad0bbdba440c92964607ead3f2ea000ef3c6e (patch)
treeff1a771971f1b914b98a919ba4a24c56f15ae429 /lib/libssl/t1_lib.c
parentAren't you glad to have this file tell you that ``C2.pl works''? Bonus point (diff)
downloadwireguard-openbsd-c45ad0bbdba440c92964607ead3f2ea000ef3c6e.tar.xz
wireguard-openbsd-c45ad0bbdba440c92964607ead3f2ea000ef3c6e.zip
quick pass at removing ability to disable sha256 and sha512. ok miod
Diffstat (limited to 'lib/libssl/t1_lib.c')
-rw-r--r--lib/libssl/t1_lib.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/lib/libssl/t1_lib.c b/lib/libssl/t1_lib.c
index 7ecf7e06588..b88b3561e05 100644
--- a/lib/libssl/t1_lib.c
+++ b/lib/libssl/t1_lib.c
@@ -334,14 +334,10 @@ tls1_ec_nid2curve_id(int nid)
tlsext_sigalg_ecdsa(md)
static unsigned char tls12_sigalgs[] = {
-#ifndef OPENSSL_NO_SHA512
tlsext_sigalg(TLSEXT_hash_sha512)
tlsext_sigalg(TLSEXT_hash_sha384)
-#endif
-#ifndef OPENSSL_NO_SHA256
tlsext_sigalg(TLSEXT_hash_sha256)
tlsext_sigalg(TLSEXT_hash_sha224)
-#endif
#ifndef OPENSSL_NO_SHA
tlsext_sigalg(TLSEXT_hash_sha1)
#endif
@@ -2205,14 +2201,10 @@ static tls12_lookup tls12_md[] = {
#ifndef OPENSSL_NO_SHA
{NID_sha1, TLSEXT_hash_sha1},
#endif
-#ifndef OPENSSL_NO_SHA256
{NID_sha224, TLSEXT_hash_sha224},
{NID_sha256, TLSEXT_hash_sha256},
-#endif
-#ifndef OPENSSL_NO_SHA512
{NID_sha384, TLSEXT_hash_sha384},
{NID_sha512, TLSEXT_hash_sha512}
-#endif
};
static tls12_lookup tls12_sig[] = {
@@ -2283,20 +2275,16 @@ const EVP_MD
case TLSEXT_hash_sha1:
return EVP_sha1();
#endif
-#ifndef OPENSSL_NO_SHA256
case TLSEXT_hash_sha224:
return EVP_sha224();
case TLSEXT_hash_sha256:
return EVP_sha256();
-#endif
-#ifndef OPENSSL_NO_SHA512
case TLSEXT_hash_sha384:
return EVP_sha384();
case TLSEXT_hash_sha512:
return EVP_sha512();
-#endif
default:
return NULL;