Lines Matching refs:clientssl
805 SSL *serverssl = NULL, *clientssl = NULL; in create_ssl_objects() local
813 clientssl = *cssl; in create_ssl_objects()
814 else if (!TEST_ptr(clientssl = SSL_new(clientctx))) in create_ssl_objects()
817 if (SSL_is_dtls(clientssl)) { in create_ssl_objects()
842 SSL_set_bio(clientssl, s_to_c_bio, c_to_s_bio); in create_ssl_objects()
844 *cssl = clientssl; in create_ssl_objects()
849 SSL_free(clientssl); in create_ssl_objects()
865 int create_bare_ssl_connection(SSL *serverssl, SSL *clientssl, int want, in create_bare_ssl_connection() argument
875 retc = SSL_connect(clientssl); in create_bare_ssl_connection()
877 err = SSL_get_error(clientssl, retc); in create_bare_ssl_connection()
916 if (SSL_read(clientssl, buf, sizeof(buf)) > 0) { in create_bare_ssl_connection()
944 int create_ssl_connection(SSL *serverssl, SSL *clientssl, int want) in create_ssl_connection() argument
950 if (!create_bare_ssl_connection(serverssl, clientssl, want, 1)) in create_ssl_connection()
959 if (SSL_read_ex(clientssl, &buf, sizeof(buf), &readbytes) > 0) { in create_ssl_connection()
962 } else if (!TEST_int_eq(SSL_get_error(clientssl, 0), in create_ssl_connection()
971 void shutdown_ssl_connection(SSL *serverssl, SSL *clientssl) in shutdown_ssl_connection() argument
973 SSL_shutdown(clientssl); in shutdown_ssl_connection()
976 SSL_free(clientssl); in shutdown_ssl_connection()