Lines Matching defs:ssl
11 * A minimal program to do SSL to a passed host and port.
22 #include <openssl/ssl.h>
41 SSL *ssl;
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 */
76 if (!hostname || SSL_set1_host(ssl, hostname) <= 0) {