summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyungwook Tak <k.tak@samsung.com>2015-10-12 15:50:14 +0900
committerKyungwook Tak <k.tak@samsung.com>2015-10-12 15:50:32 +0900
commit07dca7cf11ce6b6b1b74d829fd3b9fe411d69b3c (patch)
tree564c06e51e0c9a31ad90a71845d0cc6cd94b1df7
parent3cfd821e8935946f3d66e97f449322f62f758c9f (diff)
downloadopenssl-07dca7cf11ce6b6b1b74d829fd3b9fe411d69b3c.tar.gz
openssl-07dca7cf11ce6b6b1b74d829fd3b9fe411d69b3c.tar.bz2
openssl-07dca7cf11ce6b6b1b74d829fd3b9fe411d69b3c.zip
Change-Id: I30681b310869557c60a2d8ab3b76d999c9c2fa97 Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
-rw-r--r--ssl/ssl_lib.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c
index f2f76d4..c0931e7 100644
--- a/ssl/ssl_lib.c
+++ b/ssl/ssl_lib.c
@@ -2993,14 +2993,12 @@ void ssl_clear_cipher_ctx(SSL *s)
}
X509 *SSL_get_certificate(const SSL *s)
- {
- if (s->server)
- return(ssl_get_server_send_cert(s));
- else if (s->cert != NULL)
- return(s->cert->key->x509);
- else
- return(NULL);
- }
+{
+ if (s->cert != NULL)
+ return (s->cert->key->x509);
+ else
+ return (NULL);
+}
EVP_PKEY *SSL_get_privatekey(const SSL *s)
{