From a5f7ede49300a98a039e2e394a99ad19786bde09 Mon Sep 17 00:00:00 2001 From: cameronrich Date: Tue, 28 Jul 2015 02:44:52 +0000 Subject: [PATCH] * Fixed client certificate issue where there is no client certificate and a certificate verify msg was still being sent. git-svn-id: svn://svn.code.sf.net/p/axtls/code/trunk@250 9a5d90b5-6617-0410-8a86-bb477d3ed2e3 --- ssl/tls1_clnt.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ssl/tls1_clnt.c b/ssl/tls1_clnt.c index b557c3b9f..e414b291e 100644 --- a/ssl/tls1_clnt.c +++ b/ssl/tls1_clnt.c @@ -364,6 +364,9 @@ static int send_cert_verify(SSL *ssl) RSA_CTX *rsa_ctx = ssl->ssl_ctx->rsa_ctx; int n = 0, ret; + if (rsa_ctx == NULL) + return SSL_OK; + DISPLAY_RSA(ssl, rsa_ctx); buf[0] = HS_CERT_VERIFY;