summaryrefslogtreecommitdiff
path: root/regress/lib/libssl/ssl
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2014-12-14 14:48:01 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2014-12-14 14:48:01 +0000
commitcbd696c63db5d80e17673d72cd15e6fa40f29ee4 (patch)
treef0b9d320fb83b6ad6e5fbe23cfde196cd3390a7a /regress/lib/libssl/ssl
parent1dce2e518a8de087d2809338ec70a02dce352332 (diff)
unifdef OPENSSL_NO_NEXTPROTONEG
Diffstat (limited to 'regress/lib/libssl/ssl')
-rw-r--r--regress/lib/libssl/ssl/ssltest.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/regress/lib/libssl/ssl/ssltest.c b/regress/lib/libssl/ssl/ssltest.c
index fa869d0f24b..91956a1322c 100644
--- a/regress/lib/libssl/ssl/ssltest.c
+++ b/regress/lib/libssl/ssl/ssltest.c
@@ -201,7 +201,6 @@ static DH *get_dh1024dsa(void);
static BIO *bio_err = NULL;
static BIO *bio_stdout = NULL;
-#ifndef OPENSSL_NO_NEXTPROTONEG
/* Note that this code assumes that this is only a one element list: */
static const char NEXT_PROTO_STRING[] = "\x09testproto";
int npn_client = 0;
@@ -282,7 +281,6 @@ verify_npn(SSL *client, SSL *server)
return (0);
}
-#endif
static const char *alpn_client;
static const char *alpn_server;
@@ -451,11 +449,9 @@ sv_usage(void)
" Use \"openssl ecparam -list_curves\" for all names\n" \
" (default is sect163r2).\n");
fprintf(stderr, " -test_cipherlist - verifies the order of the ssl cipher lists\n");
-#ifndef OPENSSL_NO_NEXTPROTONEG
fprintf(stderr, " -npn_client - have client side offer NPN\n");
fprintf(stderr, " -npn_server - have server side offer NPN\n");
fprintf(stderr, " -npn_server_reject - have server reject NPN\n");
-#endif
fprintf(stderr, " -alpn_client <string> - have client side offer ALPN\n");
fprintf(stderr, " -alpn_server <string> - have server side offer ALPN\n");
fprintf(stderr, " -alpn_expected <string> - the ALPN protocol that should be negotiated\n");
@@ -700,7 +696,6 @@ main(int argc, char *argv[])
} else if (strcmp(*argv, "-test_cipherlist") == 0) {
test_cipherlist = 1;
}
-#ifndef OPENSSL_NO_NEXTPROTONEG
else if (strcmp(*argv, "-npn_client") == 0) {
npn_client = 1;
} else if (strcmp(*argv, "-npn_server") == 0) {
@@ -708,7 +703,6 @@ main(int argc, char *argv[])
} else if (strcmp(*argv, "-npn_server_reject") == 0) {
npn_server_reject = 1;
}
-#endif
else if (strcmp(*argv, "-alpn_client") == 0) {
if (--argc < 1)
goto bad;
@@ -878,7 +872,6 @@ bad:
(void *)&session_id_context, sizeof(session_id_context));
}
-#ifndef OPENSSL_NO_NEXTPROTONEG
if (npn_client)
SSL_CTX_set_next_proto_select_cb(c_ctx, cb_client_npn, NULL);
if (npn_server) {
@@ -894,7 +887,6 @@ bad:
SSL_CTX_set_next_protos_advertised_cb(s_ctx,
cb_server_rejects_npn, NULL);
}
-#endif
if (alpn_server != NULL)
SSL_CTX_set_alpn_select_cb(s_ctx, cb_server_alpn, NULL);
@@ -1309,12 +1301,10 @@ doit_biopair(SSL *s_ssl, SSL *c_ssl, long count, clock_t *s_time,
if (verbose)
print_details(c_ssl, "DONE via BIO pair: ");
-#ifndef OPENSSL_NO_NEXTPROTONEG
if (verify_npn(c_ssl, s_ssl) < 0) {
ret = 1;
goto err;
}
-#endif
if (verify_alpn(c_ssl, s_ssl) < 0) {
ret = 1;
goto err;
@@ -1566,12 +1556,10 @@ doit(SSL *s_ssl, SSL *c_ssl, long count)
if (verbose)
print_details(c_ssl, "DONE: ");
-#ifndef OPENSSL_NO_NEXTPROTONEG
if (verify_npn(c_ssl, s_ssl) < 0) {
ret = 1;
goto err;
}
-#endif
if (verify_alpn(c_ssl, s_ssl) < 0) {
ret = 1;
goto err;