Home
last modified time | relevance | path

Searched refs:expected_cn (Results 1 – 1 of 1) sorted by relevance

/external/grpc-grpc/test/core/security/
Dsecurity_connector_test.cc134 const char* expected_cn) { in check_x509_cn() argument
142 if (strncmp(prop->value, expected_cn, prop->value_length) != 0) { in check_x509_cn()
143 gpr_log(GPR_ERROR, "Expected CN %s and got %s", expected_cn, prop->value); in check_x509_cn()
178 const char* expected_cn = "cn1"; in test_cn_only_ssl_peer_to_auth_context() local
185 TSI_X509_SUBJECT_COMMON_NAME_PEER_PROPERTY, expected_cn, in test_cn_only_ssl_peer_to_auth_context()
193 GPR_ASSERT(check_identity(ctx, GRPC_X509_CN_PROPERTY_NAME, &expected_cn, 1)); in test_cn_only_ssl_peer_to_auth_context()
195 GPR_ASSERT(check_x509_cn(ctx, expected_cn)); in test_cn_only_ssl_peer_to_auth_context()
210 const char* expected_cn = "cn1"; in test_cn_and_one_san_ssl_peer_to_auth_context() local
218 TSI_X509_SUBJECT_COMMON_NAME_PEER_PROPERTY, expected_cn, in test_cn_and_one_san_ssl_peer_to_auth_context()
232 GPR_ASSERT(check_x509_cn(ctx, expected_cn)); in test_cn_and_one_san_ssl_peer_to_auth_context()
[all …]