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:
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user