diff options
Diffstat (limited to 'src/components/security_manager/src')
-rw-r--r-- | src/components/security_manager/src/ssl_context_impl.cc | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/components/security_manager/src/ssl_context_impl.cc b/src/components/security_manager/src/ssl_context_impl.cc index c5f8bed633..3b5feed420 100644 --- a/src/components/security_manager/src/ssl_context_impl.cc +++ b/src/components/security_manager/src/ssl_context_impl.cc @@ -259,17 +259,7 @@ CryptoManagerImpl::SSLContextImpl::CheckCertContext() { X509_NAME* subj_name = X509_get_subject_name(cert); - const std::string& cn = GetTextBy(subj_name, NID_commonName); const std::string& sn = GetTextBy(subj_name, NID_serialNumber); - - if (!(hsh_context_.expected_cn.CompareIgnoreCase(cn.c_str()))) { - LOG4CXX_ERROR(logger_, - "Trying to run handshake with wrong app name: " - << cn << ". Expected app name: " - << hsh_context_.expected_cn.AsMBString()); - return Handshake_Result_AppNameMismatch; - } - if (!(hsh_context_.expected_sn.CompareIgnoreCase(sn.c_str()))) { LOG4CXX_ERROR(logger_, "Trying to run handshake with wrong app id: " |