/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include #include #include namespace quic { std::string cryptoErrorToString(TransportErrorCode code) { auto codeVal = static_cast>(code); auto alertDescNum = codeVal - static_cast>( TransportErrorCode::CRYPTO_ERROR); return "Crypto error: " + toString(static_cast(alertDescNum)); } } // namespace quic