Lines Matching defs:ssl
38 #include <openssl/ssl.h>
43 /* this must be included after ssl.h to avoid re-defining 'offsetof' */
93 void *ssl; /* Handle to ssl data structure */
159 static int ssl_init = 0; /* 1 when ssl has been initialized */
739 if ((c_id->ssl = SSL_new(ctx)) == NULL) {
750 print_ciphers(c_id->ssl);
753 SSL_set_connect_state(c_id->ssl);
755 if (SSL_set_fd(c_id->ssl, c_id->fd) == 0) {
765 if ((retval = SSL_connect(c_id->ssl)) <= 0) {
779 print_ciphers(c_id->ssl);
1383 if (c_id->ctx != NULL || c_id->ssl != NULL || c_id->fd != -1)
1602 if (c_id->proxied && c_id->ssl == NULL) {
2188 if ((verify_err = SSL_get_verify_result(c_id->ssl)) != X509_V_OK) {
2205 if ((peer = SSL_get_peer_certificate(c_id->ssl)) == NULL) {
2233 * print_ciphers(ssl);
2236 * ssl - SSL connection.
2242 print_ciphers(SSL *ssl)
2249 if (ssl == NULL)
2252 sk = SSL_get_ciphers(ssl);
2261 name = SSL_get_cipher_name(ssl);
2382 if (c_id->ssl != NULL) {
2383 if (SSL_shutdown(c_id->ssl) <= 0) {
2389 SSL_free(c_id->ssl);
2390 c_id->ssl = NULL;
2790 if (c_id->ssl != NULL) {
2791 if ((retval = SSL_write(c_id->ssl, buf, nbyte)) <= 0) {
2810 if (c_id->ssl != NULL) {
2811 if ((retval = SSL_read(c_id->ssl, buf, nbyte)) <= 0) {
2842 err = SSL_get_error(c_id->ssl, retval);