Replace QuicString with std::string, pass 1
This replaces QuicString with std::string in all of the "QUIC proper". I will
delete QuicString once all code using it is gone.
gfe-relnote: n/a (no functional change)
PiperOrigin-RevId: 237872023
Change-Id: I82de62c9855516b15039734d05155917e68ff4ee
diff --git a/quic/core/tls_server_handshaker.cc b/quic/core/tls_server_handshaker.cc
index 02cc441..b8f9573 100644
--- a/quic/core/tls_server_handshaker.cc
+++ b/quic/core/tls_server_handshaker.cc
@@ -21,7 +21,7 @@
: handshaker_(handshaker) {}
void TlsServerHandshaker::SignatureCallback::Run(bool ok,
- QuicString signature) {
+ std::string signature) {
if (handshaker_ == nullptr) {
return;
}
@@ -91,7 +91,7 @@
}
bool TlsServerHandshaker::GetBase64SHA256ClientChannelID(
- QuicString* output) const {
+ std::string* output) const {
// Channel ID is not supported when TLS is used in QUIC.
return false;
}
@@ -189,13 +189,13 @@
}
void TlsServerHandshaker::CloseConnection(QuicErrorCode error,
- const QuicString& reason_phrase) {
+ const std::string& reason_phrase) {
state_ = STATE_CONNECTION_CLOSED;
stream()->CloseConnectionWithDetails(error, reason_phrase);
}
bool TlsServerHandshaker::ProcessTransportParameters(
- QuicString* error_details) {
+ std::string* error_details) {
TransportParameters client_params;
const uint8_t* client_params_bytes;
size_t params_bytes_len;
@@ -352,7 +352,7 @@
CRYPTO_BUFFER_free(certs[i]);
}
- QuicString error_details;
+ std::string error_details;
if (!ProcessTransportParameters(&error_details)) {
CloseConnection(QUIC_HANDSHAKE_FAILED, error_details);
*out_alert = SSL_AD_INTERNAL_ERROR;