add a dummy name for other type of SAN

pull/24601/head
ZhenLian 4 years ago
parent 6a20983479
commit e9fbf14bef
  1. 7
      src/core/tsi/ssl_transport_security.cc

@ -411,10 +411,9 @@ static tsi_result add_subject_alt_names_properties_to_peer(
TSI_X509_SUBJECT_ALTERNATIVE_NAME_PEER_PROPERTY, name,
&peer->properties[(*current_insert_index)++]);
} else {
// for the SAN field that we are not going to plumb, we will still
// increment the index, because the caller will make a check of the final
// index and total property length.
(*current_insert_index)++;
result = tsi_construct_string_peer_property_from_cstring(
TSI_X509_SUBJECT_ALTERNATIVE_NAME_PEER_PROPERTY, "other types of SAN",
&peer->properties[(*current_insert_index)++]);
}
if (result != TSI_OK) break;
}

Loading…
Cancel
Save