diff options
author | AKalinich-Luxoft <AKalinich@luxoft.com> | 2018-05-30 17:09:55 +0300 |
---|---|---|
committer | AKalinich-Luxoft <AKalinich@luxoft.com> | 2018-05-31 14:18:13 +0300 |
commit | d790447648590649a9557e4016ecbd6e620d6cbd (patch) | |
tree | 267e0a7abe367f1a8eedfe6dd5fa400b56505991 | |
parent | 0b8f54986b843b11bfd66c9e5dc74f3f2ee6c5e7 (diff) | |
download | sdl_core-fix/fix_ssl_handshake_flow_integration_branch_with_v5.tar.gz |
Removed TLS Handshake App Name String Comparefix/fix_ssl_handshake_flow_integration_branch_with_v5
-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: " |