Automated change: Fix sanity tests (#62)

Co-authored-by: matthewstevenson88 <matthewstevenson88@users.noreply.github.com>
pull/35410/head
github-actions[bot] 1 year ago committed by GitHub
parent 8327687dfd
commit e74f802114
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      src/core/tsi/ssl_transport_security.cc

@ -275,7 +275,8 @@ static tsi_result ssl_get_x509_common_name(X509* cert, unsigned char** utf8,
common_name_index =
X509_NAME_get_index_by_NID(subject_name, NID_commonName, -1);
if (common_name_index == -1) {
gpr_log(GPR_DEBUG, "Could not get common name of subject from certificate.");
gpr_log(GPR_DEBUG,
"Could not get common name of subject from certificate.");
return TSI_NOT_FOUND;
}
common_name_entry = X509_NAME_get_entry(subject_name, common_name_index);

Loading…
Cancel
Save