/openssl/ssl/quic/ |
H A D | quic_local.h | 36 struct ssl_st ssl; member 130 struct ssl_st ssl; member 295 # define IS_QUIC(ssl) ((ssl) != NULL \ argument 300 # define QUIC_XSO_FROM_SSL_int(ssl, c) NULL argument 302 # define IS_QUIC(ssl) 0 argument 307 # define QUIC_CONNECTION_FROM_SSL(ssl) \ argument 310 QUIC_CONNECTION_FROM_SSL_int(ssl, const) 311 # define QUIC_XSO_FROM_SSL(ssl) \ argument 313 # define QUIC_XSO_FROM_CONST_SSL(ssl) \ argument 314 QUIC_XSO_FROM_SSL_int(ssl, const) [all …]
|
/openssl/ssl/ |
H A D | bio_ssl.c | 82 if (bs->ssl != NULL && !SSL_in_init(bs->ssl)) in ssl_free() 97 SSL *ssl; in ssl_read() local 104 ssl = sb->ssl; in ssl_read() 167 SSL *ssl; in ssl_write() local 173 ssl = bs->ssl; in ssl_write() 236 ssl = bs->ssl; in ssl_ctrl() 297 bs->ssl = ssl; in ssl_ctrl() 379 dbs->ssl = SSL_dup(ssl); in ssl_ctrl() 415 ssl = bs->ssl; in ssl_callback_ctrl() 516 if ((tdata->ssl == NULL) || (fdata->ssl == NULL)) in BIO_ssl_copy_session_id() [all …]
|
H A D | d1_lib.c | 64 int dtls1_new(SSL *ssl) in dtls1_new() argument 76 if (!ssl3_new(ssl)) in dtls1_new() 79 ssl3_free(ssl); in dtls1_new() 97 ssl3_free(ssl); in dtls1_new() 103 if (!ssl->method->ssl_clear(ssl)) in dtls1_new() 151 void dtls1_free(SSL *ssl) in dtls1_free() argument 166 ssl3_free(ssl); in dtls1_free() 172 int dtls1_clear(SSL *ssl) in dtls1_clear() argument 214 if (!ssl3_clear(ssl)) in dtls1_clear() 639 if (ssl->ctx->app_verify_cookie_cb(ssl, PACKET_data(&cookiepkt), in DTLSv1_listen() [all …]
|
H A D | ssl_cert_comp.c | 196 SSL_CONNECTION *sc = SSL_CONNECTION_FROM_SSL(ssl); in ssl_get_cert_to_compress() 204 || !SSL_in_before(ssl)) in ssl_get_cert_to_compress() 258 SSL_CONNECTION *sc = SSL_CONNECTION_FROM_SSL(ssl); in ssl_compress_certs() 303 SSL_CONNECTION *sc = SSL_CONNECTION_FROM_SSL(ssl); in ssl_get_compressed_cert() 314 || !SSL_in_before(ssl) in ssl_get_compressed_cert() 372 SSL_CONNECTION *sc = SSL_CONNECTION_FROM_SSL(ssl); in SSL_set1_cert_comp_preference() 382 int SSL_compress_certs(SSL *ssl, int alg) in SSL_compress_certs() argument 385 SSL_CONNECTION *sc = SSL_CONNECTION_FROM_SSL(ssl); in SSL_compress_certs() 413 SSL_CONNECTION *sc = SSL_CONNECTION_FROM_SSL(ssl); in SSL_get1_compressed_cert() 419 cpk = ssl->ctx->cert->key; in SSL_get1_compressed_cert() [all …]
|
H A D | ssl_conf.c | 87 SSL *ssl; member 194 if (cctx->ssl) in cmd_SignatureAlgorithms() 206 if (cctx->ssl) in cmd_ClientSignatureAlgorithms() 217 if (cctx->ssl) in cmd_Groups() 251 else if (cctx->ssl) in cmd_ECDHParameters() 263 if (cctx->ssl) in cmd_CipherString() 274 if (cctx->ssl) in cmd_Ciphersuites() 474 if (cctx->ssl) in cmd_PrivateKey() 609 SSL_CTX *sslctx = (cctx->ssl != NULL) ? cctx->ssl->ctx : cctx->ctx; in cmd_DHParameters() 690 if (cctx->ssl) in cmd_RecordPadding() [all …]
|
/openssl/demos/guide/ |
H A D | quic-client-non-block.c | 112 static void wait_for_activity(SSL *ssl) in wait_for_activity() argument 120 sock = SSL_get_fd(ssl); in wait_for_activity() 129 if (SSL_net_write_desired(ssl)) in wait_for_activity() 131 if (SSL_net_read_desired(ssl)) in wait_for_activity() 167 switch (SSL_get_error(ssl, res)) { in handle_io_failure() 171 wait_for_activity(ssl); in handle_io_failure() 227 SSL *ssl = NULL; in main() local 283 ssl = SSL_new(ctx); in main() 284 if (ssl == NULL) { in main() 299 SSL_set_bio(ssl, bio, bio); in main() [all …]
|
H A D | tls-client-non-block.c | 109 sock = SSL_get_fd(ssl); in wait_for_activity() 140 switch (SSL_get_error(ssl, res)) { in handle_io_failure() 143 wait_for_activity(ssl, 0); in handle_io_failure() 148 wait_for_activity(ssl, 1); in handle_io_failure() 180 SSL *ssl = NULL; in main() local 244 ssl = SSL_new(ctx); in main() 245 if (ssl == NULL) { in main() 259 SSL_set_bio(ssl, bio, bio); in main() 276 if (!SSL_set1_host(ssl, hostname)) { in main() 282 while ((ret = SSL_connect(ssl)) != 1) { in main() [all …]
|
H A D | quic-hq-interop.c | 219 sock = SSL_get_fd(ssl); in wait_for_activity() 228 if (SSL_net_write_desired(ssl)) in wait_for_activity() 230 if (SSL_net_read_desired(ssl)) in wait_for_activity() 287 switch (SSL_get_error(ssl, res)) { in handle_io_failure() 291 wait_for_activity(ssl); in handle_io_failure() 733 *ssl = SSL_new(*ctx); in setup_connection() 734 if (*ssl == NULL) { in setup_connection() 756 SSL_set_bio(*ssl, bio, bio); in setup_connection() 811 SSL_free(*ssl); in setup_connection() 843 SSL *ssl = NULL; in main() local [all …]
|
H A D | quic-client-block.c | 120 SSL *ssl = NULL; in main() local 175 ssl = SSL_new(ctx); in main() 176 if (ssl == NULL) { in main() 190 SSL_set_bio(ssl, bio, bio); in main() 196 if (!SSL_set_tlsext_host_name(ssl, hostname)) { in main() 207 if (!SSL_set1_host(ssl, hostname)) { in main() 225 if (SSL_connect(ssl) < 1) { in main() 276 switch (SSL_get_error(ssl, 0)) { in main() 286 switch (SSL_get_stream_read_state(ssl)) { in main() 314 ret = SSL_shutdown(ssl); in main() [all …]
|
H A D | tls-client-block.c | 103 SSL *ssl = NULL; in main() local 165 ssl = SSL_new(ctx); in main() 166 if (ssl == NULL) { in main() 180 SSL_set_bio(ssl, bio, bio); in main() 186 if (!SSL_set_tlsext_host_name(ssl, hostname)) { in main() 197 if (!SSL_set1_host(ssl, hostname)) { in main() 203 if (SSL_connect(ssl) < 1) { in main() 209 if (SSL_get_verify_result(ssl) != X509_V_OK) in main() 252 if (SSL_get_error(ssl, 0) != SSL_ERROR_ZERO_RETURN) { in main() 265 ret = SSL_shutdown(ssl); in main() [all …]
|
H A D | quic-multi-stream.c | 137 SSL *ssl = NULL; in main() local 195 ssl = SSL_new(ctx); in main() 196 if (ssl == NULL) { in main() 219 SSL_set_bio(ssl, bio, bio); in main() 225 if (!SSL_set_tlsext_host_name(ssl, hostname)) { in main() 236 if (!SSL_set1_host(ssl, hostname)) { in main() 254 if (SSL_connect(ssl) < 1) { in main() 270 stream1 = SSL_new_stream(ssl, 0); in main() 366 stream3 = SSL_accept_stream(ssl, 0); in main() 414 ret = SSL_shutdown(ssl); in main() [all …]
|
/openssl/doc/designs/ddd/ |
H A D | ddd-03-fd-blocking.c | 52 SSL *ssl; in new_conn() local 57 ssl = SSL_new(ctx); in new_conn() 58 if (ssl == NULL) in new_conn() 64 SSL_free(ssl); in new_conn() 69 SSL_free(ssl); in new_conn() 74 SSL_free(ssl); in new_conn() 82 SSL_free(ssl); in new_conn() 87 return ssl; in new_conn() 114 SSL_free(ssl); in teardown() 142 SSL *ssl = NULL; in main() local [all …]
|
H A D | ddd-04-fd-nonblocking.c | 15 SSL *ssl; member 59 SSL *ssl; in new_conn() local 68 ssl = conn->ssl = SSL_new(ctx); in new_conn() 69 if (ssl == NULL) { in new_conn() 76 if (SSL_set_fd(ssl, fd) <= 0) { in new_conn() 77 SSL_free(ssl); in new_conn() 83 SSL_free(ssl); in new_conn() 89 SSL_free(ssl); in new_conn() 98 SSL_free(ssl); in new_conn() 250 SSL_shutdown(conn->ssl); in teardown() [all …]
|
H A D | ddd-05-mem-nonblocking.c | 19 SSL *ssl; member 64 SSL *ssl; local 73 ssl = conn->ssl = SSL_new(ctx); 74 if (ssl == NULL) { 86 SSL_free(ssl); 94 SSL_free(ssl); 100 SSL_free(ssl); 107 SSL_free(ssl); 113 SSL_free(ssl); 122 SSL_free(ssl); [all …]
|
/openssl/test/ |
H A D | danetest.c | 75 store_ctx_dane_init(store_ctx, ssl); in verify_chain() 296 SSL *ssl; in test_tlsafile() local 322 if (!TEST_ptr(ssl = SSL_new(ctx))) in test_tlsafile() 324 SSL_set_connect_state(ssl); in test_tlsafile() 326 SSL_free(ssl); in test_tlsafile() 334 SSL_free(ssl); in test_tlsafile() 342 SSL_free(ssl); in test_tlsafile() 346 ok = verify_chain(ssl, chain); in test_tlsafile() 348 err = SSL_get_verify_result(ssl); in test_tlsafile() 357 SSL_set_verify_result(ssl, err); in test_tlsafile() [all …]
|
H A D | dtlsv1listentest.c | 262 static int cookie_gen(SSL *ssl, unsigned char *cookie, unsigned int *cookie_len) in cookie_gen() argument 273 static int cookie_verify(SSL *ssl, const unsigned char *cookie, in cookie_verify() argument 292 SSL *ssl = NULL; in dtls_listen_test() local 308 if (!TEST_ptr(ssl = SSL_new(ctx)) in dtls_listen_test() 311 SSL_set0_wbio(ssl, outbio); in dtls_listen_test() 317 SSL_set0_rbio(ssl, inbio); in dtls_listen_test() 320 if (!TEST_int_ge(ret = DTLSv1_listen(ssl, peer), 0)) in dtls_listen_test() 338 SSL_set0_rbio(ssl, NULL); in dtls_listen_test() 343 SSL_free(ssl); in dtls_listen_test()
|
/openssl/test/ssl-tests/ |
H A D | 02-protocol-version.cnf | 688 [0-version-negotiation-ssl] 713 [1-version-negotiation-ssl] 738 [2-version-negotiation-ssl] 763 [3-version-negotiation-ssl] 788 [4-version-negotiation-ssl] 813 [5-version-negotiation-ssl] 837 [6-version-negotiation-ssl] 863 [7-version-negotiation-ssl] 889 [8-version-negotiation-ssl] 915 [9-version-negotiation-ssl] [all …]
|
H A D | 07-dtls-protocol-version.cnf | 74 [0-version-negotiation-ssl] 101 [1-version-negotiation-ssl] 128 [2-version-negotiation-ssl] 154 [3-version-negotiation-ssl] 182 [4-version-negotiation-ssl] 210 [5-version-negotiation-ssl] 237 [6-version-negotiation-ssl] 264 [7-version-negotiation-ssl] 290 [8-version-negotiation-ssl] 317 [9-version-negotiation-ssl] [all …]
|
H A D | 14-curves.cnf | 114 [0-curve-prime256v1-ssl] 143 [1-curve-secp384r1-ssl] 172 [2-curve-secp521r1-ssl] 201 [3-curve-X25519-ssl] 230 [4-curve-X448-ssl] 259 [5-curve-ffdhe2048-ssl] 288 [6-curve-ffdhe3072-ssl] 317 [7-curve-ffdhe4096-ssl] 346 [8-curve-ffdhe6144-ssl] 375 [9-curve-ffdhe8192-ssl] [all …]
|
H A D | 10-resumption.cnf | 75 [0-resumption-ssl] 112 [1-resumption-ssl] 149 [2-resumption-ssl] 186 [3-resumption-ssl] 223 [4-resumption-ssl] 260 [5-resumption-ssl] 297 [6-resumption-ssl] 334 [7-resumption-ssl] 371 [8-resumption-ssl] 408 [9-resumption-ssl] [all …]
|
H A D | 03-custom_verify.cnf | 18 ssl_conf = 0-verify-success-ssl 20 [0-verify-success-ssl] 41 ssl_conf = 1-verify-custom-reject-ssl 43 [1-verify-custom-reject-ssl] 69 ssl_conf = 2-verify-custom-allow-ssl 71 [2-verify-custom-allow-ssl] 98 [3-verify-custom-retry-ssl] 123 ssl_conf = 4-noverify-success-ssl 125 [4-noverify-success-ssl] 196 [7-verify-fail-no-root-ssl] [all …]
|
H A D | 22-compression.cnf | 16 ssl_conf = 0-tlsv1_3-both-compress-ssl 18 [0-tlsv1_3-both-compress-ssl] 42 ssl_conf = 1-tlsv1_3-client-compress-ssl 44 [1-tlsv1_3-client-compress-ssl] 69 [2-tlsv1_3-server-compress-ssl] 94 [3-tlsv1_3-neither-compress-ssl] 116 ssl_conf = 4-tlsv1_2-both-compress-ssl 118 [4-tlsv1_2-both-compress-ssl] 145 [5-tlsv1_2-client-compress-ssl] 171 [6-tlsv1_2-server-compress-ssl] [all …]
|
/openssl/demos/sslecho/ |
H A D | main.c | 142 SSL *ssl = NULL; in main() local 219 ssl = SSL_new(ssl_ctx); in main() 226 if (SSL_accept(ssl) <= 0) { in main() 264 SSL_shutdown(ssl); in main() 265 SSL_free(ssl); in main() 294 ssl = SSL_new(ssl_ctx); in main() 295 if (!SSL_set_fd(ssl, client_skt)) { in main() 308 if (SSL_connect(ssl) == 1) { in main() 355 if (ssl != NULL) { in main() 356 SSL_shutdown(ssl); in main() [all …]
|
/openssl/include/openssl/ |
H A D | tls1.h | 297 # define SSL_set_tlsext_debug_callback(ssl, cb) \ argument 301 # define SSL_set_tlsext_debug_arg(ssl, arg) \ argument 304 # define SSL_get_tlsext_status_type(ssl) \ argument 307 # define SSL_set_tlsext_status_type(ssl, type) \ argument 310 # define SSL_get_tlsext_status_exts(ssl, arg) \ argument 313 # define SSL_set_tlsext_status_exts(ssl, arg) \ argument 316 # define SSL_get_tlsext_status_ids(ssl, arg) \ argument 319 # define SSL_set_tlsext_status_ids(ssl, arg) \ argument 345 # define SSL_CTX_get_tlsext_status_cb(ssl, cb) \ argument 347 # define SSL_CTX_set_tlsext_status_cb(ssl, cb) \ argument [all …]
|
/openssl/test/helpers/ |
H A D | handshake.c | 309 SSL *ssl; in verify_retry_cb() local 319 return SSL_set_retry_verify(ssl); in verify_retry_cb() 739 SSL *ssl; member 753 SSL *ssl = NULL; in create_peer() local 761 peer->ssl = ssl; in create_peer() 767 SSL_free(ssl); in create_peer() 775 SSL_free(peer->ssl); in peer_free_data() 973 if (SSL_is_server(peer->ssl) in do_reneg_setup_step() 1040 if (!SSL_in_init(peer->ssl)) in do_reneg_setup_step() 1071 ret = SSL_shutdown(peer->ssl); in do_shutdown_step() [all …]
|