25 lines
931 B
Plaintext
25 lines
931 B
Plaintext
$OpenBSD: patch-src_openssl_c,v 1.5 2012/10/20 18:49:48 dcoppa Exp $
|
|
|
|
Fix build with GCC2.
|
|
|
|
--- src/openssl.c.orig Mon Jun 4 22:05:40 2012
|
|
+++ src/openssl.c Fri Oct 19 09:34:53 2012
|
|
@@ -513,6 +513,8 @@ ssl_check_certificate (int fd, const char *host)
|
|
bool success = true;
|
|
bool alt_name_checked = false;
|
|
|
|
+ X509_NAME *xname;
|
|
+
|
|
/* If the user has specified --no-check-cert, we still want to warn
|
|
him about problems with the server's certificate. */
|
|
const char *severity = opt.check_cert ? _("ERROR") : _("WARNING");
|
|
@@ -661,7 +663,7 @@ ssl_check_certificate (int fd, const char *host)
|
|
if (alt_name_checked == false)
|
|
{
|
|
/* Test commomName */
|
|
- X509_NAME *xname = X509_get_subject_name(cert);
|
|
+ xname = X509_get_subject_name(cert);
|
|
common_name[0] = '\0';
|
|
X509_NAME_get_text_by_NID (xname, NID_commonName, common_name,
|
|
sizeof (common_name));
|