Skip to content

Commit 34cbef7

Browse files
committed
Remove unnecesary SslCtx wrapper methods.
1 parent 420b363 commit 34cbef7

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

src/plugins/input/tcp/src/tls/SslCtx.hpp

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -75,28 +75,6 @@ class SslCtx : public std::unique_ptr<SSL_CTX, dealloc::SslCtx> {
7575
}
7676
}
7777

78-
/**
79-
* @brief Sets path to folder with trusted certificates.
80-
* @param d Path to existing directory with certificates in the PEM format.
81-
* @throws On failure.
82-
*/
83-
void load_verify_dir(const char *d) {
84-
if (SSL_CTX_load_verify_dir(get(), d) <= 0) {
85-
throw_ssl_err("Failed to load verify directory.");
86-
}
87-
}
88-
89-
/**
90-
* @brief Sets path to trusted certificate file.
91-
* @param f Path to file with certificate in the PEM format.
92-
* @throws On failure.
93-
*/
94-
void load_verify_file(const char *f) {
95-
if (SSL_CTX_load_verify_file(get(), f) <= 0) {
96-
throw_ssl_err("Failed to load verify file.");
97-
}
98-
}
99-
10078
/**
10179
* @brief Set the minimum allowed TLS version.
10280
* @param version Minimum allowed tls version. `TLS1_2_VERSION` and higher is recommended.

0 commit comments

Comments
 (0)