diff options
Diffstat (limited to 'net/quic/quic_utils.cc')
-rw-r--r-- | net/quic/quic_utils.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/net/quic/quic_utils.cc b/net/quic/quic_utils.cc index a42993c..ae5f4b5 100644 --- a/net/quic/quic_utils.cc +++ b/net/quic/quic_utils.cc @@ -197,6 +197,17 @@ const char* QuicUtils::ErrorToString(QuicErrorCode error) { } // static +const char* QuicUtils::EncryptionLevelToString(EncryptionLevel level) { + switch (level) { + RETURN_STRING_LITERAL(ENCRYPTION_NONE); + RETURN_STRING_LITERAL(ENCRYPTION_INITIAL); + RETURN_STRING_LITERAL(ENCRYPTION_FORWARD_SECURE); + RETURN_STRING_LITERAL(NUM_ENCRYPTION_LEVELS); + } + return "INVALID_ENCRYPTION_LEVEL"; +} + +// static string QuicUtils::TagToString(QuicTag tag) { char chars[4]; bool ascii = true; |