]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Fixed a typo: print the subject instead of the serial for verification errors
authorAdriaan de Jong <dejong@fox-it.com>
Thu, 29 Sep 2011 17:58:16 +0000 (19:58 +0200)
committerDavid Sommerseth <davids@redhat.com>
Sat, 22 Oct 2011 16:21:13 +0000 (18:21 +0200)
Signed-off-by: Adriaan de Jong <dejong@fox-it.com>
Acked-by: James Yonan <james@openvpn.net>
Signed-off-by: David Sommerseth <davids@redhat.com>
ssl_verify_openssl.c

index 5f30594d025708923aa52392e16bda2ad348b2dd..4f090e6d4a3b6dcf72467e0ef60564d07e421806 100644 (file)
@@ -53,7 +53,7 @@ verify_callback (int preverify_ok, X509_STORE_CTX * ctx)
   if (!preverify_ok)
     {
       /* get the X509 name */
-      char *subject = x509_get_serial(ctx->current_cert);
+      char *subject = x509_get_subject(ctx->current_cert);
 
       if (subject)
        {