Home | History | Annotate | Download | only in conscrypt

Lines Matching defs:ssl

43 import javax.net.ssl.SSLException;
44 import javax.net.ssl.SSLHandshakeException;
45 import javax.net.ssl.X509KeyManager;
46 import javax.net.ssl.X509TrustManager;
53 * A utility wrapper that abstracts operations on the underlying native SSL instance.
62 private volatile long ssl;
64 private NativeSsl(long ssl, SSLParametersImpl parameters,
67 this.ssl = ssl;
78 long ssl = NativeCrypto.SSL_new(ctx.sslCtxNativePointer, ctx);
79 return new NativeSsl(ssl, parameters, handshakeCallbacks, chooser, pskCallbacks);
91 NativeCrypto.SSL_set_session(ssl, this, sslSessionNativePointer);
95 return NativeCrypto.SSL_session_id(ssl, this);
99 return NativeCrypto.SSL_get_time(ssl, this);
103 return NativeCrypto.SSL_get_timeout(ssl, this);
107 NativeCrypto.SSL_set_timeout(ssl, this, millis);
111 return NativeCrypto.cipherSuiteToJava(NativeCrypto.SSL_get_current_cipher(ssl, this));
115 byte[][] encoded = NativeCrypto.SSL_get0_peer_certificates(ssl, this);
124 return NativeCrypto.SSL_get_ocsp_response(ssl, this);
128 return NativeCrypto.SSL_get_tls_unique(ssl, this);
132 return NativeCrypto.SSL_get_signed_cert_timestamp_list(ssl, this);
256 NativeCrypto.setLocalCertsAndPrivateKey(ssl, this, encodedLocalCerts, key.getNativeRef());
260 return NativeCrypto.SSL_get_version(ssl, this);
264 return NativeCrypto.SSL_get_servername(ssl, this);
268 return NativeCrypto.SSL_get_tls_channel_id(ssl, this);
274 NativeCrypto.SSL_set_session_creation_enabled(ssl, this, false);
280 NativeCrypto.SSL_accept_renegotiations(ssl, this);
283 NativeCrypto.SSL_set_connect_state(ssl, this);
286 NativeCrypto.SSL_enable_ocsp_stapling(ssl, this);
288 NativeCrypto.SSL_enable_signed_cert_timestamps(ssl, this);
291 NativeCrypto.SSL_set_accept_state(ssl, this);
295 NativeCrypto.SSL_enable_ocsp_stapling(ssl, this);
304 NativeCrypto.setEnabledProtocols(ssl, this, parameters.enabledProtocols);
305 NativeCrypto.setEnabledCipherSuites(ssl, this, parameters.enabledCipherSuites);
308 NativeCrypto.setApplicationProtocols(ssl, this, isClient(), parameters.applicationProtocols);
311 NativeCrypto.setApplicationProtocolSelector(ssl, this, parameters.applicationProtocolSelector);
318 for (long sslCipherNativePointer : NativeCrypto.SSL_get_ciphers(ssl, this)) {
335 NativeCrypto.SSL_set_options(ssl, this, SSL_OP_CIPHER_SERVER_PREFERENCE);
338 NativeCrypto.SSL_set_signed_cert_timestamp_list(ssl, this, parameters.sctExtension);
342 NativeCrypto.SSL_set_ocsp_response(ssl, this, parameters.ocspResponse);
349 NativeCrypto.SSL_clear_options(ssl, this, SSL_OP_NO_TICKET);
352 ssl, this, NativeCrypto.SSL_get_options(ssl, this) | SSL_OP_NO_TICKET);
356 NativeCrypto.SSL_set_tlsext_host_name(ssl, this, hostname);
361 NativeCrypto.SSL_set_mode(ssl, this, SSL_MODE_CBC_RECORD_SPLITTING);
375 NativeCrypto.SSL_do_handshake(ssl, this, fd, handshakeCallbacks, timeoutMillis);
384 return NativeCrypto.ENGINE_SSL_do_handshake(ssl, this, handshakeCallbacks);
399 .SSL_read(ssl, this, fd, handshakeCallbacks, buf, offset, len, timeoutMillis);
414 .SSL_write(ssl, this, fd, handshakeCallbacks, buf, offset, len, timeoutMillis);
434 NativeCrypto.set_SSL_psk_client_callback_enabled(ssl, this, true);
436 NativeCrypto.set_SSL_psk_server_callback_enabled(ssl, this, true);
438 NativeCrypto.SSL_use_psk_identity_hint(ssl, this, identityHint);
454 NativeCrypto.SSL_set1_tls_channel_id(ssl, this, channelIdPrivateKey.getNativeRef());
457 NativeCrypto.SSL_enable_tls_channel_id(ssl, this);
467 NativeCrypto.SSL_set_verify(ssl, this, SSL_VERIFY_PEER
472 NativeCrypto.SSL_set_verify(ssl, this, SSL_VERIFY_PEER);
476 NativeCrypto.SSL_set_verify(ssl, this, SSL_VERIFY_NONE);
490 NativeCrypto.SSL_set_client_CA_list(ssl, this, issuersBytes);
497 NativeCrypto.SSL_interrupt(ssl, this);
502 NativeCrypto.SSL_shutdown(ssl, this, fd, handshakeCallbacks);
506 NativeCrypto.ENGINE_SSL_shutdown(ssl, this, handshakeCallbacks);
510 return (NativeCrypto.SSL_get_shutdown(ssl, this) & SSL_RECEIVED_SHUTDOWN) != 0;
514 return (NativeCrypto.SSL_get_shutdown(ssl, this) & SSL_SENT_SHUTDOWN) != 0;
522 ssl, this, destAddress, destLength, handshakeCallbacks);
532 ssl, this, sourceAddress, sourceLength, handshakeCallbacks);
539 return NativeCrypto.SSL_pending_readable_bytes(ssl, this);
543 return NativeCrypto.SSL_max_seal_overhead(ssl, this);
550 long toFree = ssl;
551 ssl = 0L;
560 return ssl == 0L;
564 return NativeCrypto.SSL_get_error(ssl, this, result);
568 return NativeCrypto.getApplicationProtocol(ssl, this);
591 this.bio = NativeCrypto.SSL_BIO_new(ssl, NativeSsl.this);
600 ssl, NativeSsl.this, bio, address, length, handshakeCallbacks);
605 ssl, NativeSsl.this, bio, destAddress, destLength, handshakeCallbacks);