Use X509_NAME, not struct X509_name_st.

Also include openssl/x509.h explicitly since we're using functions and types
from it.

BUG=none
R=henrike@webrtc.org, wu@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/12859004

git-svn-id: http://webrtc.googlecode.com/svn/trunk@6569 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
henrike@webrtc.org
2014-06-30 20:38:56 +00:00
parent 59adb1dcd7
commit d5a0506e84
2 changed files with 4 additions and 2 deletions

View File

@@ -41,6 +41,7 @@
#include <openssl/err.h>
#include <openssl/opensslv.h>
#include <openssl/rand.h>
#include <openssl/x509.h>
#include <openssl/x509v3.h>
#if HAVE_CONFIG_H
@@ -735,7 +736,7 @@ bool OpenSSLAdapter::VerifyServerName(SSL* ssl, const char* host,
}
char data[256];
X509_name_st* subject;
X509_NAME* subject;
if (!ok
&& ((subject = X509_get_subject_name(certificate)) != NULL)
&& (X509_NAME_get_text_by_NID(subject, NID_commonName,

View File

@@ -24,6 +24,7 @@
#include <openssl/err.h>
#include <openssl/opensslv.h>
#include <openssl/rand.h>
#include <openssl/x509.h>
#include <openssl/x509v3.h>
#if HAVE_CONFIG_H
@@ -718,7 +719,7 @@ bool OpenSSLAdapter::VerifyServerName(SSL* ssl, const char* host,
}
char data[256];
X509_name_st* subject;
X509_NAME* subject;
if (!ok
&& ((subject = X509_get_subject_name(certificate)) != NULL)
&& (X509_NAME_get_text_by_NID(subject, NID_commonName,