]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
extract_x509_extension(): hide status message during normal operation.
authorAndris Kalnozols <andris@hpl.hp.com>
Sat, 9 Aug 2014 22:40:44 +0000 (00:40 +0200)
committerGert Doering <gert@greenie.muc.de>
Tue, 14 Oct 2014 15:35:00 +0000 (17:35 +0200)
For each recognized extension in a certificate, extract_x509_extension()
would issue an "ASN1 ERROR: can not handle field type" debug message at
verb 2. Reduce that to verb 9 (D_TLS_ERRORS -> D_TLS_DEBUG) and alter the
message text accordingly.

Signed-off-by: Andris Kalnozols <andris@hpl.hp.com>
Signed-off-by: Steffan Karger <steffan@karger.me>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <53E6A61C.7010106@karger.me>
URL: http://article.gmane.org/gmane.network.openvpn.devel/8981
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/ssl_verify_openssl.c

index cbcff0220ccdab0501dd24db6752b19a426b6f74..56e1c11aec46157fd2e1c7e40cefe1cd0edb2dc6 100644 (file)
@@ -140,8 +140,8 @@ bool extract_x509_extension(X509 *cert, char *fieldname, char *out, int size)
                   }
                 break;
               default:
-                msg (D_TLS_ERRORS, "ASN1 ERROR: can not handle field type %i",
-                     name->type);
+                msg (D_TLS_DEBUG, "%s: ignoring general name field type %i",
+                    __func__, name->type);
                 break;
             }
           }