diff options
| author | jsing <> | 2014-11-07 14:16:48 +0000 |
|---|---|---|
| committer | jsing <> | 2014-11-07 14:16:48 +0000 |
| commit | e50ebf8f5501cc2556bfcd6ae68a1fbb250c799d (patch) | |
| tree | 10f72da845ae44174872698150dfdfb829c6901a /src/usr.bin/openssl/s_client.c | |
| parent | 49c4e57dbb0e8862668add5d62a468171bbed5e9 (diff) | |
| download | openbsd-e50ebf8f5501cc2556bfcd6ae68a1fbb250c799d.tar.gz openbsd-e50ebf8f5501cc2556bfcd6ae68a1fbb250c799d.tar.bz2 openbsd-e50ebf8f5501cc2556bfcd6ae68a1fbb250c799d.zip | |
More OPENSSL_NO_TLSEXT clean up.
Diffstat (limited to '')
| -rw-r--r-- | src/usr.bin/openssl/s_client.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/usr.bin/openssl/s_client.c b/src/usr.bin/openssl/s_client.c index 12c9bd2c2d..37a8280d15 100644 --- a/src/usr.bin/openssl/s_client.c +++ b/src/usr.bin/openssl/s_client.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: s_client.c,v 1.6 2014/11/06 14:50:12 jsing Exp $ */ | 1 | /* $OpenBSD: s_client.c,v 1.7 2014/11/07 14:16:48 jsing Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -638,7 +638,7 @@ bad: | |||
| 638 | goto end; | 638 | goto end; |
| 639 | } | 639 | } |
| 640 | 640 | ||
| 641 | #if !defined(OPENSSL_NO_TLSEXT) && !defined(OPENSSL_NO_NEXTPROTONEG) | 641 | #if !defined(OPENSSL_NO_NEXTPROTONEG) |
| 642 | next_proto.status = -1; | 642 | next_proto.status = -1; |
| 643 | if (next_proto_neg_in) { | 643 | if (next_proto_neg_in) { |
| 644 | next_proto.data = next_protos_parse(&next_proto.len, next_proto_neg_in); | 644 | next_proto.data = next_protos_parse(&next_proto.len, next_proto_neg_in); |
| @@ -734,7 +734,7 @@ bad: | |||
| 734 | if (socket_type == SOCK_DGRAM) | 734 | if (socket_type == SOCK_DGRAM) |
| 735 | SSL_CTX_set_read_ahead(ctx, 1); | 735 | SSL_CTX_set_read_ahead(ctx, 1); |
| 736 | 736 | ||
| 737 | #if !defined(OPENSSL_NO_TLSEXT) && !defined(OPENSSL_NO_NEXTPROTONEG) | 737 | #if !defined(OPENSSL_NO_NEXTPROTONEG) |
| 738 | if (next_proto.data) | 738 | if (next_proto.data) |
| 739 | SSL_CTX_set_next_proto_select_cb(ctx, next_proto_cb, &next_proto); | 739 | SSL_CTX_set_next_proto_select_cb(ctx, next_proto_cb, &next_proto); |
| 740 | #endif | 740 | #endif |
| @@ -1243,7 +1243,7 @@ end: | |||
| 1243 | print_stuff(bio_c_out, con, 1); | 1243 | print_stuff(bio_c_out, con, 1); |
| 1244 | SSL_free(con); | 1244 | SSL_free(con); |
| 1245 | } | 1245 | } |
| 1246 | #if !defined(OPENSSL_NO_TLSEXT) && !defined(OPENSSL_NO_NEXTPROTONEG) | 1246 | #if !defined(OPENSSL_NO_NEXTPROTONEG) |
| 1247 | free(next_proto.data); | 1247 | free(next_proto.data); |
| 1248 | #endif | 1248 | #endif |
| 1249 | if (ctx != NULL) | 1249 | if (ctx != NULL) |
| @@ -1399,7 +1399,7 @@ print_stuff(BIO * bio, SSL * s, int full) | |||
| 1399 | } | 1399 | } |
| 1400 | #endif | 1400 | #endif |
| 1401 | 1401 | ||
| 1402 | #if !defined(OPENSSL_NO_TLSEXT) && !defined(OPENSSL_NO_NEXTPROTONEG) | 1402 | #if !defined(OPENSSL_NO_NEXTPROTONEG) |
| 1403 | if (next_proto.status != -1) { | 1403 | if (next_proto.status != -1) { |
| 1404 | const unsigned char *proto; | 1404 | const unsigned char *proto; |
| 1405 | unsigned int proto_len; | 1405 | unsigned int proto_len; |
