a79c9d166c
Fix bug[ bnc#832833] openssl ssl_set_cert_masks() is broken; Add patch file: SSL_get_certificate-broken.patch (forwarded request 186693 from shawn2012) OBS-URL: https://build.opensuse.org/request/show/186710 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openssl?expand=0&rev=94
16 lines
508 B
Diff
16 lines
508 B
Diff
Index: openssl-1.0.1e/ssl/ssl_lib.c
|
|
===================================================================
|
|
--- openssl-1.0.1e.orig/ssl/ssl_lib.c
|
|
+++ openssl-1.0.1e/ssl/ssl_lib.c
|
|
@@ -2792,9 +2792,7 @@ void ssl_clear_cipher_ctx(SSL *s)
|
|
/* Fix this function so that it takes an optional type parameter */
|
|
X509 *SSL_get_certificate(const SSL *s)
|
|
{
|
|
- if (s->server)
|
|
- return(ssl_get_server_send_cert(s));
|
|
- else if (s->cert != NULL)
|
|
+ if (s->cert != NULL)
|
|
return(s->cert->key->x509);
|
|
else
|
|
return(NULL);
|