diff options
| author | djm <> | 2010-10-01 22:59:01 +0000 |
|---|---|---|
| committer | djm <> | 2010-10-01 22:59:01 +0000 |
| commit | 8922d4bc4a8b8893d72a48deb2cdf58215f98505 (patch) | |
| tree | 939b752540947d33507b3acc48d76a8bfb7c3dc3 /src/lib/libssl/ssl_algs.c | |
| parent | 76262f7bf9262f965142b1b2b2105cb279c5c696 (diff) | |
| download | openbsd-8922d4bc4a8b8893d72a48deb2cdf58215f98505.tar.gz openbsd-8922d4bc4a8b8893d72a48deb2cdf58215f98505.tar.bz2 openbsd-8922d4bc4a8b8893d72a48deb2cdf58215f98505.zip | |
resolve conflicts, fix local changes
Diffstat (limited to 'src/lib/libssl/ssl_algs.c')
| -rw-r--r-- | src/lib/libssl/ssl_algs.c | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/src/lib/libssl/ssl_algs.c b/src/lib/libssl/ssl_algs.c index 4717c0e6e1..0967b2dfe4 100644 --- a/src/lib/libssl/ssl_algs.c +++ b/src/lib/libssl/ssl_algs.c | |||
| @@ -76,13 +76,16 @@ int SSL_library_init(void) | |||
| 76 | #endif | 76 | #endif |
| 77 | #ifndef OPENSSL_NO_RC2 | 77 | #ifndef OPENSSL_NO_RC2 |
| 78 | EVP_add_cipher(EVP_rc2_cbc()); | 78 | EVP_add_cipher(EVP_rc2_cbc()); |
| 79 | /* Not actually used for SSL/TLS but this makes PKCS#12 work | ||
| 80 | * if an application only calls SSL_library_init(). | ||
| 81 | */ | ||
| 82 | EVP_add_cipher(EVP_rc2_40_cbc()); | ||
| 79 | #endif | 83 | #endif |
| 80 | #ifndef OPENSSL_NO_AES | 84 | #ifndef OPENSSL_NO_AES |
| 81 | EVP_add_cipher(EVP_aes_128_cbc()); | 85 | EVP_add_cipher(EVP_aes_128_cbc()); |
| 82 | EVP_add_cipher(EVP_aes_192_cbc()); | 86 | EVP_add_cipher(EVP_aes_192_cbc()); |
| 83 | EVP_add_cipher(EVP_aes_256_cbc()); | 87 | EVP_add_cipher(EVP_aes_256_cbc()); |
| 84 | #endif | 88 | #endif |
| 85 | |||
| 86 | #ifndef OPENSSL_NO_CAMELLIA | 89 | #ifndef OPENSSL_NO_CAMELLIA |
| 87 | EVP_add_cipher(EVP_camellia_128_cbc()); | 90 | EVP_add_cipher(EVP_camellia_128_cbc()); |
| 88 | EVP_add_cipher(EVP_camellia_256_cbc()); | 91 | EVP_add_cipher(EVP_camellia_256_cbc()); |
| @@ -91,10 +94,7 @@ int SSL_library_init(void) | |||
| 91 | #ifndef OPENSSL_NO_SEED | 94 | #ifndef OPENSSL_NO_SEED |
| 92 | EVP_add_cipher(EVP_seed_cbc()); | 95 | EVP_add_cipher(EVP_seed_cbc()); |
| 93 | #endif | 96 | #endif |
| 94 | 97 | ||
| 95 | #ifndef OPENSSL_NO_MD2 | ||
| 96 | EVP_add_digest(EVP_md2()); | ||
| 97 | #endif | ||
| 98 | #ifndef OPENSSL_NO_MD5 | 98 | #ifndef OPENSSL_NO_MD5 |
| 99 | EVP_add_digest(EVP_md5()); | 99 | EVP_add_digest(EVP_md5()); |
| 100 | EVP_add_digest_alias(SN_md5,"ssl2-md5"); | 100 | EVP_add_digest_alias(SN_md5,"ssl2-md5"); |
| @@ -105,6 +105,14 @@ int SSL_library_init(void) | |||
| 105 | EVP_add_digest_alias(SN_sha1,"ssl3-sha1"); | 105 | EVP_add_digest_alias(SN_sha1,"ssl3-sha1"); |
| 106 | EVP_add_digest_alias(SN_sha1WithRSAEncryption,SN_sha1WithRSA); | 106 | EVP_add_digest_alias(SN_sha1WithRSAEncryption,SN_sha1WithRSA); |
| 107 | #endif | 107 | #endif |
| 108 | #ifndef OPENSSL_NO_SHA256 | ||
| 109 | EVP_add_digest(EVP_sha224()); | ||
| 110 | EVP_add_digest(EVP_sha256()); | ||
| 111 | #endif | ||
| 112 | #ifndef OPENSSL_NO_SHA512 | ||
| 113 | EVP_add_digest(EVP_sha384()); | ||
| 114 | EVP_add_digest(EVP_sha512()); | ||
| 115 | #endif | ||
| 108 | #if !defined(OPENSSL_NO_SHA) && !defined(OPENSSL_NO_DSA) | 116 | #if !defined(OPENSSL_NO_SHA) && !defined(OPENSSL_NO_DSA) |
| 109 | EVP_add_digest(EVP_dss1()); /* DSA with sha1 */ | 117 | EVP_add_digest(EVP_dss1()); /* DSA with sha1 */ |
| 110 | EVP_add_digest_alias(SN_dsaWithSHA1,SN_dsaWithSHA1_2); | 118 | EVP_add_digest_alias(SN_dsaWithSHA1,SN_dsaWithSHA1_2); |
