Fix OCSP debug messages
authorJouni Malinen <jouni@qca.qualcomm.com>
Thu, 19 Feb 2015 11:33:33 +0000 (13:33 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 19 Feb 2015 11:33:33 +0000 (13:33 +0200)
These were not supposed to include a newline at the end of the message
text since such formatting gets handled by tls_show_errors(). In
addition, change the message about the issuer's issuer to be more
accurate.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
src/crypto/tls_openssl.c
src/utils/http_curl.c

index a4c71dc..46c4a46 100644 (file)
@@ -3153,7 +3153,7 @@ static int ocsp_resp_cb(SSL *s, void *arg)
 
                if (X509_STORE_add_cert(store, conn->peer_issuer) != 1) {
                        tls_show_errors(MSG_INFO, __func__,
-                                       "OpenSSL: Could not add issuer to certificate store\n");
+                                       "OpenSSL: Could not add issuer to certificate store");
                }
                certs = sk_X509_new_null();
                if (certs) {
@@ -3162,7 +3162,7 @@ static int ocsp_resp_cb(SSL *s, void *arg)
                        if (cert && !sk_X509_push(certs, cert)) {
                                tls_show_errors(
                                        MSG_INFO, __func__,
-                                       "OpenSSL: Could not add issuer to OCSP responder trust store\n");
+                                       "OpenSSL: Could not add issuer to OCSP responder trust store");
                                X509_free(cert);
                                sk_X509_free(certs);
                                certs = NULL;
@@ -3172,7 +3172,7 @@ static int ocsp_resp_cb(SSL *s, void *arg)
                                if (cert && !sk_X509_push(certs, cert)) {
                                        tls_show_errors(
                                                MSG_INFO, __func__,
-                                               "OpenSSL: Could not add issuer to OCSP responder trust store\n");
+                                               "OpenSSL: Could not add issuer's issuer to OCSP responder trust store");
                                        X509_free(cert);
                                }
                        }
index 3a042f9..b38cf79 100644 (file)
@@ -1084,7 +1084,7 @@ static int ocsp_resp_cb(SSL *s, void *arg)
 
                if (X509_STORE_add_cert(store, ctx->peer_issuer) != 1) {
                        tls_show_errors(__func__,
-                                       "OpenSSL: Could not add issuer to certificate store\n");
+                                       "OpenSSL: Could not add issuer to certificate store");
                }
                certs = sk_X509_new_null();
                if (certs) {
@@ -1093,7 +1093,7 @@ static int ocsp_resp_cb(SSL *s, void *arg)
                        if (cert && !sk_X509_push(certs, cert)) {
                                tls_show_errors(
                                        __func__,
-                                       "OpenSSL: Could not add issuer to OCSP responder trust store\n");
+                                       "OpenSSL: Could not add issuer to OCSP responder trust store");
                                X509_free(cert);
                                sk_X509_free(certs);
                                certs = NULL;
@@ -1103,7 +1103,7 @@ static int ocsp_resp_cb(SSL *s, void *arg)
                                if (cert && !sk_X509_push(certs, cert)) {
                                        tls_show_errors(
                                                __func__,
-                                               "OpenSSL: Could not add issuer to OCSP responder trust store\n");
+                                               "OpenSSL: Could not add issuer's issuer to OCSP responder trust store");
                                        X509_free(cert);
                                }
                        }