Home | History | Annotate | Download | only in bio

Lines Matching defs:ssl

11  * A minimal program to do SSL to a passed host and port.
23 #include <openssl/ssl.h>
37 SSL *ssl;
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);
73 /* Lets use a connect BIO under the SSL BIO */