MCPcopy Create free account
hub / github.com/apache/qpid-proton / test_tls_plain

Class test_tls_plain

cpp/src/connect_config_test.cpp:285–314  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

283};
284
285class test_tls_plain : public test_handler {
286
287 static connection_options make_opts() {
288 ssl_certificate cert("testdata/certs/server-certificate-lh.pem",
289 "testdata/certs/server-private-key-lh.pem",
290 "server-password");
291 connection_options opts;
292 opts.ssl_server_options(ssl_server_options(cert,
293 "testdata/certs/ca-certificate.pem",
294 "testdata/certs/ca-certificate.pem",
295 ssl::VERIFY_PEER));
296 return opts;
297 }
298
299 public:
300
301 test_tls_plain() : test_handler(make_opts()) {}
302
303 void on_listener_start(container& c) override {
304 connect(c, R"(
305 "scheme":"amqps", "user":"user@proton", "password": "password",
306 "sasl":{ "mechanisms": "PLAIN" },
307 "tls": {
308 "cert":"testdata/certs/client-certificate.pem",
309 "key":"testdata/certs/client-private-key-no-password.pem",
310 "ca":"testdata/certs/ca-certificate.pem",
311 "verify":true })"
312 );
313 }
314};
315
316} // namespace
317

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by 1

mainFunction · 0.68