Lines Matching defs:ssl
61 #include <openssl/ssl.h>
80 SSL *ssl;
172 rv = SSL_write(connection->ssl, data, (int)length);
174 int err = SSL_get_error(connection->ssl, rv);
202 rv = SSL_read(connection->ssl, buf, (int)length);
204 int err = SSL_get_error(connection->ssl, rv);
354 static int select_next_proto_cb(SSL *ssl, unsigned char **out,
358 (void)ssl;
389 static void ssl_handshake(SSL *ssl, int fd) {
391 if (SSL_set_fd(ssl, fd) == 0) {
395 rv = SSL_connect(ssl);
537 SSL *ssl;
556 ssl = SSL_new(ssl_ctx);
557 if (ssl == NULL) {
562 ssl_handshake(ssl, fd);
564 connection.ssl = ssl;
619 SSL_shutdown(ssl);
620 SSL_free(ssl);