1 |
wellsi |
1.1 |
diff -up openssl-fips-0.9.8e/ssl/ssl_algs.c.sha256 openssl-fips-0.9.8e/ssl/ssl_algs.c |
2 |
|
|
--- openssl-fips-0.9.8e/ssl/ssl_algs.c.sha256 2010-12-07 17:45:32.000000000 +0100 |
3 |
|
|
+++ openssl-fips-0.9.8e/ssl/ssl_algs.c 2011-03-07 18:58:56.000000000 +0100 |
4 |
|
|
@@ -104,6 +104,14 @@ int SSL_library_init(void) |
5 |
|
|
EVP_add_digest_alias(SN_sha1,"ssl3-sha1"); |
6 |
|
|
EVP_add_digest_alias(SN_sha1WithRSAEncryption,SN_sha1WithRSA); |
7 |
|
|
#endif |
8 |
|
|
+#ifndef OPENSSL_NO_SHA256 |
9 |
|
|
+ EVP_add_digest(EVP_sha224()); |
10 |
|
|
+ EVP_add_digest(EVP_sha256()); |
11 |
|
|
+#endif |
12 |
|
|
+#ifndef OPENSSL_NO_SHA512 |
13 |
|
|
+ EVP_add_digest(EVP_sha384()); |
14 |
|
|
+ EVP_add_digest(EVP_sha512()); |
15 |
|
|
+#endif |
16 |
|
|
#if !defined(OPENSSL_NO_SHA) && !defined(OPENSSL_NO_DSA) |
17 |
|
|
EVP_add_digest(EVP_dss1()); /* DSA with sha1 */ |
18 |
|
|
EVP_add_digest_alias(SN_dsaWithSHA1,SN_dsaWithSHA1_2); |