aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbabenko <babenko@yandex-team.com>2023-08-06 14:52:32 +0300
committerbabenko <babenko@yandex-team.com>2023-08-06 15:53:59 +0300
commit0febbe057bd1155f09bd3a5205b62a2236739b05 (patch)
tree52afda3e8d0300bf11166eec60d8770c3ec7c63b
parent9c2493bf82848dd170c275c3d7577021caad5bcb (diff)
downloadydb-0febbe057bd1155f09bd3a5205b62a2236739b05.tar.gz
Rename EVerificationMode::Ca -> EVerificationMode::CA
-rw-r--r--yt/yt/core/bus/public.h2
-rw-r--r--yt/yt/core/bus/tcp/connection.cpp2
-rw-r--r--yt/yt/core/bus/unittests/ssl_ut.cpp4
3 files changed, 4 insertions, 4 deletions
diff --git a/yt/yt/core/bus/public.h b/yt/yt/core/bus/public.h
index f5359d51b7..99bbbee6ba 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 c11560617b..4b28e6f3d8 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 a0a5d81157..6799f85da7 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);