| /src/crypto/external/apache2/openssl/dist/ssl/ |
| s3_msg.c | 16 SSL *ssl = SSL_CONNECTION_GET_SSL(s); local 31 if (!ssl->method->ssl3_enc->setup_key_block(s)) { 37 if (!ssl->method->ssl3_enc->change_cipher_state(s, i)) { 47 SSL *ssl = SSL_CONNECTION_GET_SSL(s); local 49 /* Map tls/ssl alert value to correct one */ 53 desc = ssl->method->ssl3_enc->alert_value(desc); 55 desc = SSL_AD_HANDSHAKE_FAILURE; /* SSL 3.0 does not have 70 return ssl->method->ssl_dispatch_alert(ssl) [all...] |
| /src/crypto/external/bsd/openssl.old/dist/include/openssl/ |
| srtp.h | 19 # include <openssl/ssl.h> 39 __owur int SSL_set_tlsext_use_srtp(SSL *ssl, const char *profiles); 41 __owur STACK_OF(SRTP_PROTECTION_PROFILE) *SSL_get_srtp_profiles(SSL *ssl); variable 42 __owur SRTP_PROTECTION_PROFILE *SSL_get_selected_srtp_profile(SSL *s);
|
| /src/crypto/external/apache2/openssl/dist/demos/bio/ |
| client-arg.c | 12 #include <openssl/ssl.h> 21 SSL *ssl; local 77 BIO_get_ssl(sbio, &ssl); 79 if (!ssl) { 80 fprintf(stderr, "Can't locate SSL pointer\n"); 84 /* We might want to do other things with ssl here */ 95 /* Could examine ssl here to get connection info */
|
| client-conf.c | 12 #include <openssl/ssl.h> 22 SSL *ssl = NULL; local 85 BIO_get_ssl(sbio, &ssl); 87 if (!ssl) { 88 fprintf(stderr, "Can't locate SSL pointer\n"); 92 /* We might want to do other things with ssl here */ 103 /* Could examine ssl here to get connection info */
|
| sconnect.c | 11 * A minimal program to do SSL to a passed host and port. 22 #include <openssl/ssl.h> 41 SSL *ssl; local 62 /* Let's make an SSL structure */ 63 ssl = SSL_new(ssl_ctx); 64 SSL_set_connect_state(ssl); 66 /* Use it inside an SSL BIO */ 68 BIO_set_ssl(ssl_bio, ssl, BIO_CLOSE); 70 /* Lets use a connect BIO under the SSL BIO * [all...] |
| /src/crypto/external/bsd/openssl/dist/demos/bio/ |
| client-arg.c | 12 #include <openssl/ssl.h> 21 SSL *ssl; local 76 BIO_get_ssl(sbio, &ssl); 78 if (!ssl) { 79 fprintf(stderr, "Can't locate SSL pointer\n"); 83 /* We might want to do other things with ssl here */ 94 /* Could examine ssl here to get connection info */
|
| client-conf.c | 12 #include <openssl/ssl.h> 22 SSL *ssl = NULL; local 84 BIO_get_ssl(sbio, &ssl); 86 if (!ssl) { 87 fprintf(stderr, "Can't locate SSL pointer\n"); 91 /* We might want to do other things with ssl here */ 102 /* Could examine ssl here to get connection info */
|
| sconnect.c | 11 * A minimal program to do SSL to a passed host and port. 23 #include <openssl/ssl.h> 37 SSL *ssl; local 57 /* Lets make a SSL structure */ 58 ssl = SSL_new(ssl_ctx); 59 SSL_set_connect_state(ssl); 62 /* Use it inside an SSL BIO */ 64 BIO_set_ssl(ssl_bio, ssl, BIO_CLOSE); 66 /* Lets use a connect BIO under the SSL BIO * [all...] |
| /src/crypto/external/bsd/openssl/dist/include/openssl/ |
| srtp.h | 25 # include <openssl/ssl.h> 45 __owur int SSL_set_tlsext_use_srtp(SSL *ssl, const char *profiles); 47 __owur STACK_OF(SRTP_PROTECTION_PROFILE) *SSL_get_srtp_profiles(SSL *ssl); variable 48 __owur SRTP_PROTECTION_PROFILE *SSL_get_selected_srtp_profile(SSL *s);
|
| /src/crypto/external/bsd/openssl/dist/test/ |
| ssl_ctx_test.c | 11 #include <openssl/ssl.h> 34 SSL *ssl = NULL; local 42 ssl = SSL_new(ctx); 43 if (ssl == NULL) 55 if (!TEST_int_eq(SSL_set_min_proto_version(ssl, t.min_version), t.min_ok)) 57 if (!TEST_int_eq(SSL_set_max_proto_version(ssl, t.max_version), t.max_ok)) 59 if (!TEST_int_eq(SSL_get_min_proto_version(ssl), t.expected_min)) 61 if (!TEST_int_eq(SSL_get_max_proto_version(ssl), t.expected_max)) 67 SSL_free(ssl); [all...] |
| ciphername_test.c | 18 #include <openssl/ssl.h> 382 SSL *ssl = NULL; local 419 ssl = SSL_new(ctx); 420 if (ssl == NULL) { 425 sk = SSL_get_ciphers(ssl); 462 SSL_free(ssl);
|
| /src/crypto/external/bsd/openssl.old/dist/demos/bio/ |
| client-arg.c | 12 #include <openssl/ssl.h> 21 SSL *ssl; local 76 BIO_get_ssl(sbio, &ssl); 78 if (!ssl) { 79 fprintf(stderr, "Can't locate SSL pointer\n"); 84 SSL_set_mode(ssl, SSL_MODE_AUTO_RETRY); 86 /* We might want to do other things with ssl here */ 97 /* Could examine ssl here to get connection info */
|
| client-conf.c | 12 #include <openssl/ssl.h> 22 SSL *ssl = NULL; local 84 BIO_get_ssl(sbio, &ssl); 86 if (!ssl) { 87 fprintf(stderr, "Can't locate SSL pointer\n"); 92 SSL_set_mode(ssl, SSL_MODE_AUTO_RETRY); 94 /* We might want to do other things with ssl here */ 105 /* Could examine ssl here to get connection info */
|
| sconnect.c | 11 * A minimal program to do SSL to a passed host and port. 23 #include <openssl/ssl.h> 37 SSL *ssl; local 61 /* Lets make a SSL structure */ 62 ssl = SSL_new(ssl_ctx); 63 SSL_set_connect_state(ssl); 66 if (SSL_set1_host(ssl, hostname) <= 0) 69 /* Use it inside an SSL BIO */ 71 BIO_set_ssl(ssl_bio, ssl, BIO_CLOSE) [all...] |
| /src/crypto/external/bsd/openssl.old/dist/test/ |
| ssl_ctx_test.c | 11 #include <openssl/ssl.h> 34 SSL *ssl = NULL; local 42 ssl = SSL_new(ctx); 43 if (ssl == NULL) 55 if (!TEST_int_eq(SSL_set_min_proto_version(ssl, t.min_version), t.min_ok)) 57 if (!TEST_int_eq(SSL_set_max_proto_version(ssl, t.max_version), t.max_ok)) 59 if (!TEST_int_eq(SSL_get_min_proto_version(ssl), t.expected_min)) 61 if (!TEST_int_eq(SSL_get_max_proto_version(ssl), t.expected_max)) 67 SSL_free(ssl); [all...] |
| ciphername_test.c | 18 #include <openssl/ssl.h> 382 SSL *ssl = NULL; local 419 ssl = SSL_new(ctx); 420 if (ssl == NULL) { 425 sk = SSL_get_ciphers(ssl); 462 SSL_free(ssl);
|
| /src/crypto/external/apache2/openssl/dist/demos/guide/ |
| quic-client-block.c | 25 #include <openssl/ssl.h> 120 SSL *ssl = NULL; local 151 * Create an SSL_CTX which we can use to create SSL objects from. We 174 /* Create an SSL object to represent the TLS connection */ 175 ssl = SSL_new(ctx); 176 if (ssl == NULL) { 177 printf("Failed to create the SSL object\n"); 190 SSL_set_bio(ssl, bio, bio); 196 if (!SSL_set_tlsext_host_name(ssl, hostname)) [all...] |
| tls-client-block.c | 25 #include <openssl/ssl.h> 103 SSL *ssl = NULL; local 132 * Create an SSL_CTX which we can use to create SSL objects from. We 164 /* Create an SSL object to represent the TLS connection */ 165 ssl = SSL_new(ctx); 166 if (ssl == NULL) { 167 printf("Failed to create the SSL object\n"); 180 SSL_set_bio(ssl, bio, bio); 186 if (!SSL_set_tlsext_host_name(ssl, hostname)) [all...] |
| tls-server-block.c | 28 #include <openssl/ssl.h> 81 * subsequent per-client SSL connections. 230 SSL *ssl; local 249 /* Associate a new SSL handle with the new connection */ 250 if ((ssl = SSL_new(ctx)) == NULL) { 252 warnx("Error creating SSL handle for new connection"); 256 SSL_set_bio(ssl, client_bio, client_bio); 258 /* Attempt an SSL handshake with the client */ 259 if (SSL_accept(ssl) <= 0) [all...] |
| /src/crypto/external/apache2/openssl/dist/doc/designs/ddd/ |
| ddd-01-conn-blocking.c | 1 #include <openssl/ssl.h> 52 SSL *ssl = NULL; local 62 if (BIO_get_ssl(out, &ssl) == 0) { 79 /* Tell the SSL object the hostname to check certificates against. */ 80 if (SSL_set1_host(ssl, bare_hostname) <= 0) { 87 if (SSL_set_alpn_protos(ssl, alpn, sizeof(alpn))) {
|
| ddd-03-fd-blocking.c | 1 #include <openssl/ssl.h> 50 SSL *new_conn(SSL_CTX *ctx, int fd, const char *bare_hostname) 52 SSL *ssl; local 57 ssl = SSL_new(ctx); 58 if (ssl == NULL) 61 SSL_set_connect_state(ssl); /* cannot fail */ 63 if (SSL_set_fd(ssl, fd) <= 0) { 64 SSL_free(ssl); 68 if (SSL_set1_host(ssl, bare_hostname) <= 0) 142 SSL *ssl = NULL; local [all...] |
| /src/crypto/external/apache2/openssl/dist/include/openssl/ |
| srtp.h | 25 #include <openssl/ssl.h> 57 __owur int SSL_set_tlsext_use_srtp(SSL *ssl, const char *profiles); 59 __owur STACK_OF(SRTP_PROTECTION_PROFILE) *SSL_get_srtp_profiles(SSL *ssl); variable 60 __owur SRTP_PROTECTION_PROFILE *SSL_get_selected_srtp_profile(SSL *s);
|
| /src/crypto/external/apache2/openssl/dist/test/ |
| ciphername_test.c | 18 #include <openssl/ssl.h> 384 SSL *ssl = NULL; local 421 ssl = SSL_new(ctx); 422 if (ssl == NULL) { 427 sk = SSL_get_ciphers(ssl); 464 SSL_free(ssl);
|
| ssl_ctx_test.c | 11 #include <openssl/ssl.h> 76 SSL *ssl = NULL; local 106 ssl = SSL_new(ctx); 107 if (ssl == NULL) 119 if (!TEST_int_eq(SSL_set_min_proto_version(ssl, t.min_version), t.min_ok)) 121 if (!TEST_int_eq(SSL_set_max_proto_version(ssl, t.max_version), t.max_ok)) 123 if (!TEST_int_eq(SSL_get_min_proto_version(ssl), t.expected_min)) 125 if (!TEST_int_eq(SSL_get_max_proto_version(ssl), t.expected_max)) 131 SSL_free(ssl); [all...] |
| /src/external/bsd/libpcap/dist/ |
| sslutils.c | 76 snprintf(errbuf, errbuflen, "Cannot get a new SSL context: %s", ERR_error_string(ERR_get_error(), NULL)); 134 SSL *ssl_promotion(int is_server, PCAP_SOCKET s, char *errbuf, size_t errbuflen) 140 SSL *ssl = SSL_new(ctx); // TODO: also a DTLS context local 141 SSL_set_fd(ssl, (int)s); 144 if (SSL_accept(ssl) <= 0) { 150 if (SSL_connect(ssl) <= 0) { 157 return ssl; 160 // Finish using an SSL handle; shut down the connection and free the 162 void ssl_finish(SSL *ssl [all...] |