]> git.pld-linux.org Git - packages/openssl.git/blame - get_certificate.patch
conflict on packages not having strict openssl dependency
[packages/openssl.git] / get_certificate.patch
CommitLineData
84745a0c
AM
1From: "Dr. Stephen Henson" <steve@openssl.org>
2Date: Mon, 11 Feb 2013 18:24:03 +0000
3Subject: Fix for SSL_get_certificate
4Origin: upstream: http://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff_plain;h=147dbb2fe3bead7a10e2f280261b661ce7af7adc
5Bug-Debian: http://bugs.debian.org/703031
6
7
8Now we set the current certificate to the one used by a server
9there is no need to call ssl_get_server_send_cert which will
10fail if we haven't sent a certificate yet.
11
12diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c
13index 14d143d..ff5a85a 100644
14--- a/ssl/ssl_lib.c
15+++ b/ssl/ssl_lib.c
16@@ -2792,9 +2792,7 @@ void ssl_clear_cipher_ctx(SSL *s)
17 /* Fix this function so that it takes an optional type parameter */
18 X509 *SSL_get_certificate(const SSL *s)
19 {
20- if (s->server)
21- return(ssl_get_server_send_cert(s));
22- else if (s->cert != NULL)
23+ if (s->cert != NULL)
24 return(s->cert->key->x509);
25 else
26 return(NULL);
27
This page took 0.041953 seconds and 4 git commands to generate.