diff options
author | babenko <babenko@yandex-team.com> | 2023-08-07 11:54:11 +0300 |
---|---|---|
committer | babenko <babenko@yandex-team.com> | 2023-08-07 13:14:29 +0300 |
commit | 5710fb5749182781f90e22fda75f92302d6c5310 (patch) | |
tree | 283453758b88c1035d6702ca833ab92b1d9bb54d | |
parent | f7a9ec9e2cf0250943edb3b1dd331a4ed766b8da (diff) | |
download | ydb-5710fb5749182781f90e22fda75f92302d6c5310.tar.gz |
Revert "Rename EVerificationMode::Ca -> EVerificationMode::CA"
-rw-r--r-- | yt/yt/core/bus/public.h | 2 | ||||
-rw-r--r-- | yt/yt/core/bus/tcp/connection.cpp | 2 | ||||
-rw-r--r-- | yt/yt/core/bus/unittests/ssl_ut.cpp | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/yt/yt/core/bus/public.h b/yt/yt/core/bus/public.h index 99bbbee6ba..f5359d51b7 100644 --- a/yt/yt/core/bus/public.h +++ b/yt/yt/core/bus/public.h @@ -49,7 +49,7 @@ DEFINE_ENUM(EEncryptionMode, DEFINE_ENUM(EVerificationMode, ((None) (0)) // Do no certificate or host name verifications. - ((CA) (1)) // Verifies peer's certificate with the CA. + ((Ca) (1)) // Verifies peer's certificate with the CA. ((Full) (2)) // Verifies peer's certificate with the CA as well as peer's host name against the certificate. ); diff --git a/yt/yt/core/bus/tcp/connection.cpp b/yt/yt/core/bus/tcp/connection.cpp index 4b28e6f3d8..c11560617b 100644 --- a/yt/yt/core/bus/tcp/connection.cpp +++ b/yt/yt/core/bus/tcp/connection.cpp @@ -2004,7 +2004,7 @@ void TTcpConnection::TryEstablishSslSession() return; } [[fallthrough]]; - case EVerificationMode::CA: { + case EVerificationMode::Ca: { if (!Config_->CAFile) { Abort(TError(NBus::EErrorCode::SslError, "The CA file is not set in bus config")); return; diff --git a/yt/yt/core/bus/unittests/ssl_ut.cpp b/yt/yt/core/bus/unittests/ssl_ut.cpp index 6799f85da7..a0a5d81157 100644 --- a/yt/yt/core/bus/unittests/ssl_ut.cpp +++ b/yt/yt/core/bus/unittests/ssl_ut.cpp @@ -394,7 +394,7 @@ TEST_F(TSslTest, CAVerificationModeFailure) auto clientConfig = TBusClientConfig::CreateTcp(Address); clientConfig->EncryptionMode = EEncryptionMode::Required; - clientConfig->VerificationMode = EVerificationMode::CA; + clientConfig->VerificationMode = EVerificationMode::Ca; auto client = CreateBusClient(clientConfig); auto bus = client->CreateBus(New<TEmptyBusHandler>()); @@ -454,7 +454,7 @@ JFWcF3ghP7uPmbONWLiTFwxsSJHT0svVQZgq1aZz auto clientConfig = TBusClientConfig::CreateTcp(Address); clientConfig->EncryptionMode = EEncryptionMode::Required; - clientConfig->VerificationMode = EVerificationMode::CA; + clientConfig->VerificationMode = EVerificationMode::Ca; clientConfig->CAFile = "unused if CA has already been loaded"; auto client = CreateBusClient(clientConfig); |