From 7e0b75498fd1b346ebd95ff736834e7a2e3c0cb0 Mon Sep 17 00:00:00 2001 From: discomfitor Date: Thu, 8 Dec 2011 01:30:53 +0000 Subject: [PATCH] whoops, fix compile on unrelated change that snuck in changelog tbd git-svn-id: http://svn.enlightenment.org/svn/e/trunk/ecore@66004 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/ecore_con/ecore_con_ssl.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/lib/ecore_con/ecore_con_ssl.c b/src/lib/ecore_con/ecore_con_ssl.c index 2e777a2..e96e1f0 100644 --- a/src/lib/ecore_con/ecore_con_ssl.c +++ b/src/lib/ecore_con/ecore_con_ssl.c @@ -1411,21 +1411,21 @@ _ecore_con_ssl_server_init_openssl(Ecore_Con_Server *svr) { char *c; size_t clen; - ASN1_OBJECT *obj = NULL; + int name = 0; if (svr->verify) SSL_ERROR_CHECK_GOTO_ERROR(SSL_get_verify_result(svr->ssl)); clen = X509_NAME_get_text_by_NID(X509_get_subject_name(cert), NID_subject_alt_name, NULL, 0); if (clen) - obj = NID_subject_alt_name; + name = NID_subject_alt_name; else clen = X509_NAME_get_text_by_NID(X509_get_subject_name(cert), NID_commonName, NULL, 0); SSL_ERROR_CHECK_GOTO_ERROR(!clen); - if (!obj) obj = NID_commonName; + if (!name) name = NID_commonName; c = alloca(++clen); - X509_NAME_get_text_by_NID(X509_get_subject_name(cert), obj, c, clen); + X509_NAME_get_text_by_NID(X509_get_subject_name(cert), name, c, clen); INF("CERT NAME: %s\n", c); - SSL_ERROR_CHECK_GOTO_ERROR(!_openssl_name_verify(buf, svr->verify_name ?: svr->name)); + SSL_ERROR_CHECK_GOTO_ERROR(!_openssl_name_verify(c, svr->verify_name ?: svr->name)); } } -- 2.7.4