diff options
author | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2018-08-21 06:58:17 +0200 |
---|---|---|
committer | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2018-08-23 23:14:10 +0200 |
commit | 71655cf48a09621a2cfcdd497e0804b6a452df7d (patch) | |
tree | f9edbd2f850b6beacedfa56d5d1ff79d113e7570 /src | |
parent | 5fb2281adaad78fbfa946722b4c7dab699053f1b (diff) |
Fixing the SSL_REUSE auth context string attribute.
"true" and "false" are strings, so use similar code that of the cstring variant. Otherwise, the generated properties will have an embedded zero in there.
Diffstat (limited to 'src')
-rw-r--r-- | src/core/tsi/ssl_transport_security.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/tsi/ssl_transport_security.cc b/src/core/tsi/ssl_transport_security.cc index e66fc9ba03..c329f41348 100644 --- a/src/core/tsi/ssl_transport_security.cc +++ b/src/core/tsi/ssl_transport_security.cc @@ -1049,9 +1049,9 @@ static tsi_result ssl_handshaker_result_extract_peer( } const char* session_reused = SSL_session_reused(impl->ssl) ? "true" : "false"; - result = tsi_construct_string_peer_property( + result = tsi_construct_string_peer_property_from_cstring( TSI_SSL_SESSION_REUSED_PEER_PROPERTY, session_reused, - strlen(session_reused) + 1, &peer->properties[peer->property_count]); + &peer->properties[peer->property_count]); if (result != TSI_OK) return result; peer->property_count++; |