lordgamez commented on code in PR #1370:
URL: https://github.com/apache/nifi-minifi-cpp/pull/1370#discussion_r948126915
##########
libminifi/test/Utils.h:
##########
@@ -135,3 +142,37 @@ struct FlowFileQueueTestAccessor {
FIELD_ACCESSOR(load_task_);
FIELD_ACCESSOR(queue_);
};
+
+bool sendMessagesViaSSL(const std::vector<std::string_view>& contents,
uint64_t port, const std::string& ca_cert_path, const
std::optional<minifi::utils::net::SslData>& ssl_data = std::nullopt) {
+ asio::ssl::context ctx(asio::ssl::context::sslv23);
+ ctx.load_verify_file(ca_cert_path);
+ if (ssl_data) {
+ ctx.set_verify_mode(asio::ssl::verify_peer);
+ ctx.use_certificate_file(ssl_data->cert_loc, asio::ssl::context::pem);
+ ctx.use_private_key_file(ssl_data->key_loc, asio::ssl::context::pem);
Review Comment:
Added in f3fb107052af05c62635ba3d4a9c1906c714d6fe
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]