diff options
author | jsing <> | 2018-09-08 14:29:52 +0000 |
---|---|---|
committer | jsing <> | 2018-09-08 14:29:52 +0000 |
commit | 37780a3087c4121c983c377ecfec97a37da0ce5f (patch) | |
tree | 809b5f2431e7c0abb06e44b4fc805effe05ab17e /src/lib/libssl/ssl_ciph.c | |
parent | 53e09e3a67716033cce5334a15c0530ab71c8d0a (diff) | |
download | openbsd-37780a3087c4121c983c377ecfec97a37da0ce5f.tar.gz openbsd-37780a3087c4121c983c377ecfec97a37da0ce5f.tar.bz2 openbsd-37780a3087c4121c983c377ecfec97a37da0ce5f.zip |
SSL_MAX_DIGEST is no longer needed.
Diffstat (limited to 'src/lib/libssl/ssl_ciph.c')
-rw-r--r-- | src/lib/libssl/ssl_ciph.c | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/src/lib/libssl/ssl_ciph.c b/src/lib/libssl/ssl_ciph.c index 9db0c68ceb..59c3ad5a0b 100644 --- a/src/lib/libssl/ssl_ciph.c +++ b/src/lib/libssl/ssl_ciph.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssl_ciph.c,v 1.103 2018/09/06 16:40:45 jsing Exp $ */ | 1 | /* $OpenBSD: ssl_ciph.c,v 1.104 2018/09/08 14:29:52 jsing 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 | * |
@@ -164,17 +164,14 @@ static const EVP_CIPHER *ssl_cipher_methods[SSL_ENC_NUM_IDX] = { | |||
164 | NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, | 164 | NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, |
165 | }; | 165 | }; |
166 | 166 | ||
167 | #define SSL_MD_MD5_IDX 0 | 167 | #define SSL_MD_MD5_IDX 0 |
168 | #define SSL_MD_SHA1_IDX 1 | 168 | #define SSL_MD_SHA1_IDX 1 |
169 | #define SSL_MD_GOST94_IDX 2 | 169 | #define SSL_MD_GOST94_IDX 2 |
170 | #define SSL_MD_GOST89MAC_IDX 3 | 170 | #define SSL_MD_GOST89MAC_IDX 3 |
171 | #define SSL_MD_SHA256_IDX 4 | 171 | #define SSL_MD_SHA256_IDX 4 |
172 | #define SSL_MD_SHA384_IDX 5 | 172 | #define SSL_MD_SHA384_IDX 5 |
173 | #define SSL_MD_STREEBOG256_IDX 6 | 173 | #define SSL_MD_STREEBOG256_IDX 6 |
174 | /*Constant SSL_MAX_DIGEST equal to size of digests array should be | 174 | #define SSL_MD_NUM_IDX 7 |
175 | * defined in the | ||
176 | * ssl_locl.h */ | ||
177 | #define SSL_MD_NUM_IDX SSL_MAX_DIGEST | ||
178 | static const EVP_MD *ssl_digest_methods[SSL_MD_NUM_IDX] = { | 175 | static const EVP_MD *ssl_digest_methods[SSL_MD_NUM_IDX] = { |
179 | NULL, NULL, NULL, NULL, NULL, NULL, NULL, | 176 | NULL, NULL, NULL, NULL, NULL, NULL, NULL, |
180 | }; | 177 | }; |