Exemplo n.º 1
0
 void on_connection_open(proton::event &e, proton::connection &c) override {
     std::cout << "Inbound server connection connected via SSL.  Protocol: " <<
         c.transport().ssl().protocol() << std::endl;
     if (c.transport().sasl().outcome() == sasl::OK) {
         std::string subject = c.transport().ssl().remote_subject();
         std::cout << "Inbound client certificate identity " << find_CN(subject) << std::endl;
     }
     else {
         std::cout << "Inbound client authentication failed" <<std::endl;
         c.close();
     }
     inbound_listener.close();
 }
Exemplo n.º 2
0
 void on_connection_open(proton::connection &c) override {
     std::cout << "connection events going to handler_2" << std::endl;
     std::cout << "connection max_frame_size: " << c.transport().max_frame_size() <<
         ", idle timeout: " << c.transport().idle_timeout() << std::endl;
     c.close();
 }
Exemplo n.º 3
0
 void on_connection_open(proton::event &e, proton::connection &c) override {
     std::string subject = c.transport().ssl().remote_subject();
     std::cout << "Outgoing client connection connected via SSL.  Server certificate identity " <<
         find_CN(subject) << std::endl;
 }
Exemplo n.º 4
0
 void on_connection_open(proton::connection &c) override {
     std::cout << "Inbound server connection connected via SSL.  Protocol: " <<
         c.transport().ssl().protocol() << std::endl;
     acceptor.close();
 }