コード例 #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();
 }
コード例 #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();
 }
コード例 #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;
 }
コード例 #4
0
ファイル: ssl.cpp プロジェクト: ajssmith/qpid-proton
 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();
 }