Correct misleading comments

This commit is contained in:
Alexey Milovidov 2021-07-10 06:01:24 +03:00
parent dfe7f2df8b
commit 21774d6700

View File

@ -22,11 +22,11 @@ namespace DB
{ {
/// The CertificateReloader singleton performs 2 functions: /// The CertificateReloader singleton performs 2 functions:
/// 1. Dynamic reloading of TLS key-pair when requested by main: /// 1. Dynamic reloading of TLS key-pair when requested by server:
/// Main notifies CertificateReloader when the config changes. On changed config, /// Server config reloader notifies CertificateReloader when the config changes.
/// CertificateReloader reloads certs from disk. /// On changed config, CertificateReloader reloads certs from disk.
/// 2. Implement `SSL_CTX_set_cert_cb` to set certificate for a new connection: /// 2. Implement `SSL_CTX_set_cert_cb` to set certificate for a new connection:
/// OpenSSL invokes `cert_reloader_dispatch_set_cert` to setup a connection. /// OpenSSL invokes a callback to setup a connection.
class CertificateReloader class CertificateReloader
{ {
public: public:
@ -47,9 +47,7 @@ public:
/// Handle configuration reload /// Handle configuration reload
void reload(const Poco::Util::AbstractConfiguration & config); void reload(const Poco::Util::AbstractConfiguration & config);
/// Add cert, key to SSL* connection. SetCertificate runs in an IO thread during /// A callback for OpenSSL
/// connection setup. SetCertificate is
/// establishing a new TLS connection.
int setCertificate(SSL * ssl); int setCertificate(SSL * ssl);
private: private: