diff options
-rw-r--r-- | src/usr.bin/openssl/apps.c | 6 | ||||
-rw-r--r-- | src/usr.bin/openssl/apps.h | 6 | ||||
-rw-r--r-- | src/usr.bin/openssl/s_client.c | 10 |
3 files changed, 11 insertions, 11 deletions
diff --git a/src/usr.bin/openssl/apps.c b/src/usr.bin/openssl/apps.c index 6ffdf3df1a..78555528b6 100644 --- a/src/usr.bin/openssl/apps.c +++ b/src/usr.bin/openssl/apps.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: apps.c,v 1.11 2014/10/16 10:43:54 jsing Exp $ */ | 1 | /* $OpenBSD: apps.c,v 1.12 2014/11/07 14:16:48 jsing Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> |
4 | * | 4 | * |
@@ -2163,7 +2163,7 @@ policies_print(BIO *out, X509_STORE_CTX *ctx) | |||
2163 | BIO_free(out); | 2163 | BIO_free(out); |
2164 | } | 2164 | } |
2165 | 2165 | ||
2166 | #if !defined(OPENSSL_NO_TLSEXT) && !defined(OPENSSL_NO_NEXTPROTONEG) | 2166 | #if !defined(OPENSSL_NO_NEXTPROTONEG) |
2167 | /* next_protos_parse parses a comma separated list of strings into a string | 2167 | /* next_protos_parse parses a comma separated list of strings into a string |
2168 | * in a format suitable for passing to SSL_CTX_set_next_protos_advertised. | 2168 | * in a format suitable for passing to SSL_CTX_set_next_protos_advertised. |
2169 | * outlen: (output) set to the length of the resulting buffer on success. | 2169 | * outlen: (output) set to the length of the resulting buffer on success. |
@@ -2203,7 +2203,7 @@ next_protos_parse(unsigned short *outlen, const char *in) | |||
2203 | return out; | 2203 | return out; |
2204 | } | 2204 | } |
2205 | #endif | 2205 | #endif |
2206 | /* !OPENSSL_NO_TLSEXT && !OPENSSL_NO_NEXTPROTONEG */ | 2206 | /* !OPENSSL_NO_NEXTPROTONEG */ |
2207 | 2207 | ||
2208 | double | 2208 | double |
2209 | app_tminterval(int stop, int usertime) | 2209 | app_tminterval(int stop, int usertime) |
diff --git a/src/usr.bin/openssl/apps.h b/src/usr.bin/openssl/apps.h index ea6be60a44..d6b18e2a35 100644 --- a/src/usr.bin/openssl/apps.h +++ b/src/usr.bin/openssl/apps.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: apps.h,v 1.7 2014/08/30 15:14:03 jsing Exp $ */ | 1 | /* $OpenBSD: apps.h,v 1.8 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 | * |
@@ -245,9 +245,9 @@ int do_X509_REQ_sign(BIO *err, X509_REQ *x, EVP_PKEY *pkey, const EVP_MD *md, | |||
245 | int do_X509_CRL_sign(BIO *err, X509_CRL *x, EVP_PKEY *pkey, const EVP_MD *md, | 245 | int do_X509_CRL_sign(BIO *err, X509_CRL *x, EVP_PKEY *pkey, const EVP_MD *md, |
246 | STACK_OF(OPENSSL_STRING) *sigopts); | 246 | STACK_OF(OPENSSL_STRING) *sigopts); |
247 | 247 | ||
248 | #if !defined(OPENSSL_NO_TLSEXT) && !defined(OPENSSL_NO_NEXTPROTONEG) | 248 | #if !defined(OPENSSL_NO_NEXTPROTONEG) |
249 | unsigned char *next_protos_parse(unsigned short *outlen, const char *in); | 249 | unsigned char *next_protos_parse(unsigned short *outlen, const char *in); |
250 | #endif /* !OPENSSL_NO_TLSEXT && !OPENSSL_NO_NEXTPROTONEG */ | 250 | #endif /* !OPENSSL_NO_NEXTPROTONEG */ |
251 | 251 | ||
252 | #define FORMAT_UNDEF 0 | 252 | #define FORMAT_UNDEF 0 |
253 | #define FORMAT_ASN1 1 | 253 | #define FORMAT_ASN1 1 |
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; |