diff options
| author | tedu <> | 2014-04-17 21:37:37 +0000 |
|---|---|---|
| committer | tedu <> | 2014-04-17 21:37:37 +0000 |
| commit | ce6ab96382363d98326902c9baeb3f23ffd2794c (patch) | |
| tree | 08e9b3a8cf6f35c7585646ca19c69f2ba87cc08c /src/lib/libssl/ssl_cert.c | |
| parent | 2ca67c675bf3d9334c53074965440cb3de9df1d3 (diff) | |
| download | openbsd-ce6ab96382363d98326902c9baeb3f23ffd2794c.tar.gz openbsd-ce6ab96382363d98326902c9baeb3f23ffd2794c.tar.bz2 openbsd-ce6ab96382363d98326902c9baeb3f23ffd2794c.zip | |
always build in RSA and DSA. ok deraadt miod
Diffstat (limited to 'src/lib/libssl/ssl_cert.c')
| -rw-r--r-- | src/lib/libssl/ssl_cert.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/lib/libssl/ssl_cert.c b/src/lib/libssl/ssl_cert.c index cf5cfb97f6..a823c16edf 100644 --- a/src/lib/libssl/ssl_cert.c +++ b/src/lib/libssl/ssl_cert.c | |||
| @@ -163,13 +163,9 @@ static void | |||
| 163 | ssl_cert_set_default_md(CERT *cert) | 163 | ssl_cert_set_default_md(CERT *cert) |
| 164 | { | 164 | { |
| 165 | /* Set digest values to defaults */ | 165 | /* Set digest values to defaults */ |
| 166 | #ifndef OPENSSL_NO_DSA | ||
| 167 | cert->pkeys[SSL_PKEY_DSA_SIGN].digest = EVP_sha1(); | 166 | cert->pkeys[SSL_PKEY_DSA_SIGN].digest = EVP_sha1(); |
| 168 | #endif | ||
| 169 | #ifndef OPENSSL_NO_RSA | ||
| 170 | cert->pkeys[SSL_PKEY_RSA_SIGN].digest = EVP_sha1(); | 167 | cert->pkeys[SSL_PKEY_RSA_SIGN].digest = EVP_sha1(); |
| 171 | cert->pkeys[SSL_PKEY_RSA_ENC].digest = EVP_sha1(); | 168 | cert->pkeys[SSL_PKEY_RSA_ENC].digest = EVP_sha1(); |
| 172 | #endif | ||
| 173 | #ifndef OPENSSL_NO_ECDSA | 169 | #ifndef OPENSSL_NO_ECDSA |
| 174 | cert->pkeys[SSL_PKEY_ECC].digest = EVP_sha1(); | 170 | cert->pkeys[SSL_PKEY_ECC].digest = EVP_sha1(); |
| 175 | #endif | 171 | #endif |
| @@ -217,13 +213,11 @@ CERT | |||
| 217 | ret->export_mask_k = cert->export_mask_k; | 213 | ret->export_mask_k = cert->export_mask_k; |
| 218 | ret->export_mask_a = cert->export_mask_a; | 214 | ret->export_mask_a = cert->export_mask_a; |
| 219 | 215 | ||
| 220 | #ifndef OPENSSL_NO_RSA | ||
| 221 | if (cert->rsa_tmp != NULL) { | 216 | if (cert->rsa_tmp != NULL) { |
| 222 | RSA_up_ref(cert->rsa_tmp); | 217 | RSA_up_ref(cert->rsa_tmp); |
| 223 | ret->rsa_tmp = cert->rsa_tmp; | 218 | ret->rsa_tmp = cert->rsa_tmp; |
| 224 | } | 219 | } |
| 225 | ret->rsa_tmp_cb = cert->rsa_tmp_cb; | 220 | ret->rsa_tmp_cb = cert->rsa_tmp_cb; |
| 226 | #endif | ||
| 227 | 221 | ||
| 228 | #ifndef OPENSSL_NO_DH | 222 | #ifndef OPENSSL_NO_DH |
| 229 | if (cert->dh_tmp != NULL) { | 223 | if (cert->dh_tmp != NULL) { |
| @@ -319,10 +313,8 @@ CERT | |||
| 319 | #if !defined(OPENSSL_NO_DH) || !defined(OPENSSL_NO_ECDH) | 313 | #if !defined(OPENSSL_NO_DH) || !defined(OPENSSL_NO_ECDH) |
| 320 | err: | 314 | err: |
| 321 | #endif | 315 | #endif |
| 322 | #ifndef OPENSSL_NO_RSA | ||
| 323 | if (ret->rsa_tmp != NULL) | 316 | if (ret->rsa_tmp != NULL) |
| 324 | RSA_free(ret->rsa_tmp); | 317 | RSA_free(ret->rsa_tmp); |
| 325 | #endif | ||
| 326 | #ifndef OPENSSL_NO_DH | 318 | #ifndef OPENSSL_NO_DH |
| 327 | if (ret->dh_tmp != NULL) | 319 | if (ret->dh_tmp != NULL) |
| 328 | DH_free(ret->dh_tmp); | 320 | DH_free(ret->dh_tmp); |
| @@ -355,10 +347,8 @@ ssl_cert_free(CERT *c) | |||
| 355 | if (i > 0) | 347 | if (i > 0) |
| 356 | return; | 348 | return; |
| 357 | 349 | ||
| 358 | #ifndef OPENSSL_NO_RSA | ||
| 359 | if (c->rsa_tmp) | 350 | if (c->rsa_tmp) |
| 360 | RSA_free(c->rsa_tmp); | 351 | RSA_free(c->rsa_tmp); |
| 361 | #endif | ||
| 362 | #ifndef OPENSSL_NO_DH | 352 | #ifndef OPENSSL_NO_DH |
| 363 | if (c->dh_tmp) | 353 | if (c->dh_tmp) |
| 364 | DH_free(c->dh_tmp); | 354 | DH_free(c->dh_tmp); |
| @@ -452,10 +442,8 @@ ssl_sess_cert_free(SESS_CERT *sc) | |||
| 452 | #endif | 442 | #endif |
| 453 | } | 443 | } |
| 454 | 444 | ||
| 455 | #ifndef OPENSSL_NO_RSA | ||
| 456 | if (sc->peer_rsa_tmp != NULL) | 445 | if (sc->peer_rsa_tmp != NULL) |
| 457 | RSA_free(sc->peer_rsa_tmp); | 446 | RSA_free(sc->peer_rsa_tmp); |
| 458 | #endif | ||
| 459 | #ifndef OPENSSL_NO_DH | 447 | #ifndef OPENSSL_NO_DH |
| 460 | if (sc->peer_dh_tmp != NULL) | 448 | if (sc->peer_dh_tmp != NULL) |
| 461 | DH_free(sc->peer_dh_tmp); | 449 | DH_free(sc->peer_dh_tmp); |
