Home
last modified time | relevance | path

Searched refs:ssl (Results 1 – 25 of 67) sorted by relevance

123

/thrift-3.4.0/lib/py/test/
Dtest_sslsocket.py24 import ssl
196 self.assertEqual(c1.cert_reqs, ssl.CERT_REQUIRED)
199 self.assertEqual(c1.cert_reqs, ssl.CERT_NONE)
207 c1 = TSSLSocket('localhost', 0, cert_reqs=ssl.CERT_NONE)
210 c2 = TSSLSocket('localhost', 0, cert_reqs=ssl.CERT_REQUIRED, ca_certs=SERVER_CERT)
213 c3 = TSSLSocket('localhost', 0, cert_reqs=ssl.CERT_OPTIONAL, ca_certs=SERVER_CERT)
227 self._assert_connection_success(server, path=path, cert_reqs=ssl.CERT_NONE)
233 self._assert_connection_success(server, cert_reqs=ssl.CERT_REQUIRED, ca_certs=SERVER_CERT)
237 self._assert_connection_failure(server, cert_reqs=ssl.CERT_REQUIRED, ca_certs=CLIENT_CERT)
240 self._assert_connection_success(server, cert_reqs=ssl.CERT_NONE)
[all …]
/thrift-3.4.0/lib/py/src/transport/
DTSSLSocket.py23 import ssl
48 _default_protocol = ssl.PROTOCOL_SSLv23 if _has_ssl_context else \
49 ssl.PROTOCOL_TLSv1
53 self._context = ssl.SSLContext(ssl_version)
54 if self._context.protocol == ssl.PROTOCOL_SSLv23:
55 self._context.options |= ssl.OP_NO_SSLv2
56 self._context.options |= ssl.OP_NO_SSLv3
64 return self._context.verify_mode != ssl.CERT_NONE
66 return self.cert_reqs != ssl.CERT_NONE
140 self.cert_reqs = ssl_opts.pop('cert_reqs', ssl.CERT_REQUIRED)
[all …]
/thrift-3.4.0/lib/c_glib/src/thrift/c_glib/transport/
Dthrift_ssl_socket.c170 int ssl_error_type = SSL_get_error(socket->ssl, ssl_error); in G_DEFINE_TYPE()
182 …024-buffer_size), buffer_size, "%lX(%s) -> %s", error_code, reason, SSL_state_string(socket->ssl)); in G_DEFINE_TYPE()
248 rc = SSL_peek(ssl_socket->ssl, &byte, 1); in thrift_ssl_socket_peek()
284 if(ssl_socket!=NULL && ssl_socket->ssl) { in thrift_ssl_socket_close()
285 SSL_shutdown(ssl_socket->ssl); in thrift_ssl_socket_close()
286 SSL_free(ssl_socket->ssl); in thrift_ssl_socket_close()
287 ssl_socket->ssl = NULL; in thrift_ssl_socket_close()
308 g_return_val_if_fail (socket->sd != THRIFT_INVALID_SOCKET && ssl_socket->ssl!=NULL, FALSE); in thrift_ssl_socket_read()
311 bytes = SSL_read(ssl_socket->ssl, buf, len); in thrift_ssl_socket_read()
315 if (SSL_get_error(ssl_socket->ssl, bytes) == SSL_ERROR_SYSCALL) { in thrift_ssl_socket_read()
[all …]
/thrift-3.4.0/lib/d/test/
Dthrift_test_runner.sh43 for ssl in ""; do
47 *$server*) if [ $transport != "framed" ] || [ $ssl != "" ]; then continue; fi;;
50 args="--transport=$transport --protocol=$protocol$ssl"
Dthrift_test_server.d40 import thrift.server.transport.ssl;
46 import thrift.transport.ssl;
249 bool ssl = false; in main() local
255 &serverType, "ssl", &ssl, "zlib", &zlib, "num-io-threads", &numIOThreads, in main()
264 enforce(!ssl, "The non-blocking server does not support SSL yet."); in main()
302 if (ssl) { in main()
333 transportType, serverType, ssl ? "(using SSL) ": "", port); in main()
Dasync_test.d37 import thrift.async.ssl;
47 import thrift.server.transport.ssl;
50 import thrift.transport.ssl;
89 bool ssl; in main() local
97 "ssl", &ssl, in main()
104 if (ssl) { in main()
/thrift-3.4.0/lib/d/
DMakefile.am39 d_asyncmodules = $(addprefix thrift/async/, base libevent socket ssl)
61 d_servertransportmodules = $(addprefix thrift/server/transport/, base socket ssl)
67 framed http memory piped range socket ssl zlib)
77 endian resource_pool socket ssl ssl_bio traits)
94 d_openssl_dependent_modules = thrift/async/ssl thrift/internal/ssl \
95 thrift/internal/ssl_bio thrift/transport/ssl thrift/server/transport/ssl
/thrift-3.4.0/lib/erl/src/
Dthrift_sslsocket_transport.erl61 case catch ssl:ssl_accept(Socket, SslOptions) of % infinite timeout
87 {This, ssl:send(Socket, Data)}.
91 case ssl:recv(Socket, Len, Timeout) of
94 ssl:close(Socket),
105 {This, ssl:close(Socket)}.
127 SslSock = case catch ssl:connect(Sock, ParsedOpts#factory_opts.ssloptions,
/thrift-3.4.0/lib/d/src/thrift/internal/
Dssl.d19 module thrift.internal.ssl;
26 import deimos.openssl.ssl;
31 import thrift.transport.ssl;
43 void authorize(SSL* ssl, TAccessManager accessManager, in authorize() argument
48 auto rc = SSL_get_verify_result(ssl); in authorize()
54 auto cert = SSL_get_peer_certificate(ssl); in authorize()
57 if (SSL_get_verify_mode(ssl) & SSL_VERIFY_FAIL_IF_NO_PEER_CERT) { in authorize()
/thrift-3.4.0/test/go/src/bin/testserver/
Dmain.go38 var ssl = flag.Bool("ssl", false, "Encrypted Transport using SSL") var
44 …mmon.GetServerParams(*host, *port, *domain_socket, *transport, *protocol, *ssl, *certPath, common.…
53 if *ssl {
/thrift-3.4.0/lib/cpp/src/thrift/transport/
DTSSLSocket.cpp218 SSL* ssl = SSL_new(ctx_); in createSSL() local
219 if (ssl == nullptr) { in createSSL()
224 return ssl; in createSSL()
899 std::shared_ptr<TSSLSocket> ssl(new TSSLSocket(ctx_)); in createSocket() local
900 setup(ssl); in createSocket()
901 return ssl; in createSocket()
905 std::shared_ptr<TSSLSocket> ssl(new TSSLSocket(ctx_, interruptListener)); in createSocket() local
906 setup(ssl); in createSocket()
907 return ssl; in createSocket()
911 std::shared_ptr<TSSLSocket> ssl(new TSSLSocket(ctx_, socket)); in createSocket() local
[all …]
/thrift-3.4.0/lib/py/src/server/
DTHttpServer.py20 import ssl
120 context = ssl.create_default_context(cafile=kwargs.get('cafile'))
123 context.verify_mode = ssl.CERT_REQUIRED if kwargs.get('cafile') else ssl.CERT_NONE
/thrift-3.4.0/lib/nodejs/test/
Dclient.js63 const ssl = program.ssl; constant
90 if (ssl) {
116 connection = ssl
Dserver.js58 const ssl = program.ssl; constant
108 if (ssl) {
/thrift-3.4.0/aclocal/
Dax_check_openssl.m466 ssldirs="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr"
78 AC_MSG_CHECKING([for openssl/ssl.h in $ssldir])
79 if test -f "$ssldir/include/openssl/ssl.h"; then
109 [AC_LANG_PROGRAM([#include <openssl/ssl.h>], [SSL_new(NULL)])],
/thrift-3.4.0/test/go/src/common/
Dclient.go45 ssl bool,
72 if ssl {
86 if ssl {
Dserver.go46 ssl bool,
75 if ssl {
/thrift-3.4.0/test/rb/integration/
DTestServer.rb113 ssl = false
132 ssl = true
164 if ssl
/thrift-3.4.0/lib/java/src/main/java/org/apache/thrift/transport/
DTSSLTransportFactory.java31 import javax.net.ssl.KeyManagerFactory;
32 import javax.net.ssl.SSLContext;
33 import javax.net.ssl.SSLServerSocket;
34 import javax.net.ssl.SSLServerSocketFactory;
35 import javax.net.ssl.SSLSocket;
36 import javax.net.ssl.SSLSocketFactory;
37 import javax.net.ssl.TrustManagerFactory;
/thrift-3.4.0/lib/d/src/thrift/server/transport/
Dssl.d19 module thrift.server.transport.ssl;
27 import thrift.transport.ssl;
/thrift-3.4.0/lib/java/gradle/
DfunctionalTests.gradle109 "${javaExe}" -cp "$jarPath" "-Djavax.net.ssl.trustStore=$trustStore" -Djavax.net.ssl.trustStorePass…
129 "${javaExe}" -cp "$jarPath" "-Djavax.net.ssl.keyStore=$keyStore" -Djavax.net.ssl.keyStorePassword=t…
150 "${javaExe}" -cp "$jarPath" "-Djavax.net.ssl.keyStore=$keyStore" -Djavax.net.ssl.keyStorePassword=t…
171 "${javaExe}" -cp "$jarPath" "-Djavax.net.ssl.keyStore=$keyStore" -Djavax.net.ssl.keyStorePassword=t…
DunitTests.gradle86 'javax.net.ssl.trustStore': "${projectDir}/src/crossTest/resources/.truststore",
87 'javax.net.ssl.trustStorePassword': 'thrift',
88 'javax.net.ssl.keyStore': "${projectDir}/src/crossTest/resources/.keystore",
89 'javax.net.ssl.keyStorePassword': 'thrift'
/thrift-3.4.0/lib/d/src/thrift/async/
Dssl.d19 module thrift.async.ssl;
28 import deimos.openssl.ssl;
32 import thrift.internal.ssl;
35 import thrift.transport.ssl;
/thrift-3.4.0/lib/java/src/crossTest/java/org/apache/thrift/test/
DTestServer.java144 boolean ssl = false; in main()
168 ssl = true; in main()
209 if (ssl == true) { in main()
213 if (ssl == true) { in main()
307 if (ssl) { in main()
339 + (ssl ? "ssl server" : "server") in main()
/thrift-3.4.0/test/perl/
DTestServer.pl97 if ($opts{ssl} and not defined $opts{cert}) {
112 elsif ($opts{ssl}) {
147 if ($opts{ssl}) {

123