Searched refs:socketFactory (Results 1 – 3 of 3) sorted by relevance
70 std::shared_ptr<TSSLSocketFactory> socketFactory; in main() local75 socketFactory = std::make_shared<TSSLSocketFactory>(); in main()76 socketFactory->authenticate(true); in main()94 socketFactory->loadCertificateFromBuffer(qemu_cert_pem); in main()95 socketFactory->loadPrivateKeyFromBuffer(qemu_key_pem); in main()96 socketFactory->loadTrustedCertificatesFromBuffer(native_cert_pem); in main()98 socketFactory->loadCertificate(argv[2]); in main()99 socketFactory->loadPrivateKey(argv[3]); in main()100 socketFactory->loadTrustedCertificates(argv[4]); in main()102 trans = socketFactory->createSocket(my_addr, port); in main()
78 std::shared_ptr<TSSLSocketFactory> socketFactory(new TSSLSocketFactory()); in main() local79 socketFactory->server(true); in main()96 socketFactory->loadCertificateFromBuffer(qemu_cert_pem); in main()97 socketFactory->loadPrivateKeyFromBuffer(qemu_key_pem); in main()98 socketFactory->loadTrustedCertificatesFromBuffer(native_cert_pem); in main()100 socketFactory->loadCertificate(argv[2]); in main()101 socketFactory->loadPrivateKey(argv[3]); in main()102 socketFactory->loadTrustedCertificates(argv[4]); in main()105 std::make_shared<TSSLServerSocket>("0.0.0.0", port, socketFactory); in main()
51 TSSLSocketFactory socketFactory; in thrift_test_setup() local52 socketFactory.loadCertificateFromBuffer((const char *)&cert_pem[0]); in thrift_test_setup()53 socketFactory.loadPrivateKeyFromBuffer((const char *)&key_pem[0]); in thrift_test_setup()54 socketFactory.loadTrustedCertificatesFromBuffer((const char *)&cert_pem[0]); in thrift_test_setup()68 std::shared_ptr<TSSLSocketFactory> socketFactory = in setup_client() local70 socketFactory->authenticate(true); in setup_client()71 trans = socketFactory->createSocket(CONFIG_NET_CONFIG_MY_IPV4_ADDR, port); in setup_client()97 std::shared_ptr<TSSLSocketFactory> socketFactory(new TSSLSocketFactory()); in setup_server() local98 socketFactory->server(true); in setup_server()100 std::make_shared<TSSLServerSocket>("0.0.0.0", port, socketFactory); in setup_server()