summaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
authorJackLivio <jack@livio.io>2018-06-18 16:09:25 -0400
committerGitHub <noreply@github.com>2018-06-18 16:09:25 -0400
commitabf4630471f84b8563a8acc88c6f72cd1aa71e23 (patch)
tree844495a4c58821225466e6b4fe47ba5e4be42569 /src/components
parent24edd97c1f2b4fc67eb882245cd865939b075c6f (diff)
parenta5303be591bf0f435413f1181145e5c930611b8d (diff)
downloadsdl_core-abf4630471f84b8563a8acc88c6f72cd1aa71e23.tar.gz
Merge pull request #2122 from mrapitis/fix/app_name_compare
Removed TLS Handshake App Name String Compare
Diffstat (limited to 'src/components')
-rw-r--r--src/components/security_manager/src/ssl_context_impl.cc9
-rw-r--r--src/components/security_manager/test/ssl_certificate_handshake_test.cc9
2 files changed, 0 insertions, 18 deletions
diff --git a/src/components/security_manager/src/ssl_context_impl.cc b/src/components/security_manager/src/ssl_context_impl.cc
index 756ec37164..67be17db63 100644
--- a/src/components/security_manager/src/ssl_context_impl.cc
+++ b/src/components/security_manager/src/ssl_context_impl.cc
@@ -266,17 +266,8 @@ 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: "
diff --git a/src/components/security_manager/test/ssl_certificate_handshake_test.cc b/src/components/security_manager/test/ssl_certificate_handshake_test.cc
index d5bb1ecaee..83ffa33b44 100644
--- a/src/components/security_manager/test/ssl_certificate_handshake_test.cc
+++ b/src/components/security_manager/test/ssl_certificate_handshake_test.cc
@@ -534,15 +534,6 @@ TEST_P(SSLHandshakeTest, AppNameAndAppIDInvalid) {
client_ctx_->SetHandshakeContext(
security_manager::SSLContext::HandshakeContext(
- custom_str::CustomString("server"),
- custom_str::CustomString("Wrong")));
-
- GTEST_TRACE(HandshakeProcedure_ClientSideFail(
- security_manager::SSLContext::Handshake_Result_AppNameMismatch));
-
- ResetConnections();
- client_ctx_->SetHandshakeContext(
- security_manager::SSLContext::HandshakeContext(
custom_str::CustomString("Wrong"),
custom_str::CustomString("server")));