summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjsing <>2015-09-01 13:38:27 +0000
committerjsing <>2015-09-01 13:38:27 +0000
commit590c5fc5e623a41d63741f1eb2f5f50ab090265a (patch)
treecad3d134dfda06ab6f9bb3a9694244c0dedb8b0e
parent5d2f851bf9aa598e77b6d89ba8622bfe05ce2371 (diff)
downloadopenbsd-590c5fc5e623a41d63741f1eb2f5f50ab090265a.tar.gz
openbsd-590c5fc5e623a41d63741f1eb2f5f50ab090265a.tar.bz2
openbsd-590c5fc5e623a41d63741f1eb2f5f50ab090265a.zip
Remove the ssl_prepare_{client,server}hello_tlsext() functions, which are
now nothing more than noops. ok bcook@ doug@
-rw-r--r--src/lib/libssl/s23_clnt.c7
-rw-r--r--src/lib/libssl/s3_clnt.c7
-rw-r--r--src/lib/libssl/s3_srvr.c7
-rw-r--r--src/lib/libssl/src/ssl/s23_clnt.c7
-rw-r--r--src/lib/libssl/src/ssl/s3_clnt.c7
-rw-r--r--src/lib/libssl/src/ssl/s3_srvr.c7
-rw-r--r--src/lib/libssl/src/ssl/ssl_locl.h4
-rw-r--r--src/lib/libssl/src/ssl/t1_lib.c14
-rw-r--r--src/lib/libssl/ssl_locl.h4
-rw-r--r--src/lib/libssl/t1_lib.c14
10 files changed, 10 insertions, 68 deletions
diff --git a/src/lib/libssl/s23_clnt.c b/src/lib/libssl/s23_clnt.c
index aa668a3ccf..b6c058ece5 100644
--- a/src/lib/libssl/s23_clnt.c
+++ b/src/lib/libssl/s23_clnt.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: s23_clnt.c,v 1.42 2015/08/29 17:15:52 doug Exp $ */ 1/* $OpenBSD: s23_clnt.c,v 1.43 2015/09/01 13:38:27 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 *
@@ -359,11 +359,6 @@ ssl23_client_hello(SSL *s)
359 *(p++) = 0; 359 *(p++) = 0;
360 360
361 /* TLS extensions*/ 361 /* TLS extensions*/
362 if (ssl_prepare_clienthello_tlsext(s) <= 0) {
363 SSLerr(SSL_F_SSL23_CLIENT_HELLO,
364 SSL_R_CLIENTHELLO_TLSEXT);
365 return -1;
366 }
367 if ((p = ssl_add_clienthello_tlsext(s, p, 362 if ((p = ssl_add_clienthello_tlsext(s, p,
368 buf + SSL3_RT_MAX_PLAIN_LENGTH)) == NULL) { 363 buf + SSL3_RT_MAX_PLAIN_LENGTH)) == NULL) {
369 SSLerr(SSL_F_SSL23_CLIENT_HELLO, ERR_R_INTERNAL_ERROR); 364 SSLerr(SSL_F_SSL23_CLIENT_HELLO, ERR_R_INTERNAL_ERROR);
diff --git a/src/lib/libssl/s3_clnt.c b/src/lib/libssl/s3_clnt.c
index 5503f89ab6..5b9af06aa5 100644
--- a/src/lib/libssl/s3_clnt.c
+++ b/src/lib/libssl/s3_clnt.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: s3_clnt.c,v 1.123 2015/08/29 16:51:17 doug Exp $ */ 1/* $OpenBSD: s3_clnt.c,v 1.124 2015/09/01 13:38:27 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 *
@@ -675,11 +675,6 @@ ssl3_client_hello(SSL *s)
675 *(p++) = 0; /* Add the NULL method */ 675 *(p++) = 0; /* Add the NULL method */
676 676
677 /* TLS extensions*/ 677 /* TLS extensions*/
678 if (ssl_prepare_clienthello_tlsext(s) <= 0) {
679 SSLerr(SSL_F_SSL3_CLIENT_HELLO,
680 SSL_R_CLIENTHELLO_TLSEXT);
681 goto err;
682 }
683 bufend = (unsigned char *)s->init_buf->data + 678 bufend = (unsigned char *)s->init_buf->data +
684 SSL3_RT_MAX_PLAIN_LENGTH; 679 SSL3_RT_MAX_PLAIN_LENGTH;
685 if ((p = ssl_add_clienthello_tlsext(s, p, bufend)) == NULL) { 680 if ((p = ssl_add_clienthello_tlsext(s, p, bufend)) == NULL) {
diff --git a/src/lib/libssl/s3_srvr.c b/src/lib/libssl/s3_srvr.c
index 9962cabd73..3f9f6720fa 100644
--- a/src/lib/libssl/s3_srvr.c
+++ b/src/lib/libssl/s3_srvr.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: s3_srvr.c,v 1.114 2015/08/29 16:51:17 doug Exp $ */ 1/* $OpenBSD: s3_srvr.c,v 1.115 2015/09/01 13:38:27 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 *
@@ -1132,11 +1132,6 @@ ssl3_send_server_hello(SSL *s)
1132 /* put the compression method */ 1132 /* put the compression method */
1133 *(p++) = 0; 1133 *(p++) = 0;
1134 1134
1135 if (ssl_prepare_serverhello_tlsext(s) <= 0) {
1136 SSLerr(SSL_F_SSL3_SEND_SERVER_HELLO,
1137 SSL_R_SERVERHELLO_TLSEXT);
1138 return (-1);
1139 }
1140 bufend = (unsigned char *)s->init_buf->data + 1135 bufend = (unsigned char *)s->init_buf->data +
1141 SSL3_RT_MAX_PLAIN_LENGTH; 1136 SSL3_RT_MAX_PLAIN_LENGTH;
1142 if ((p = ssl_add_serverhello_tlsext(s, p, bufend)) == NULL) { 1137 if ((p = ssl_add_serverhello_tlsext(s, p, bufend)) == NULL) {
diff --git a/src/lib/libssl/src/ssl/s23_clnt.c b/src/lib/libssl/src/ssl/s23_clnt.c
index aa668a3ccf..b6c058ece5 100644
--- a/src/lib/libssl/src/ssl/s23_clnt.c
+++ b/src/lib/libssl/src/ssl/s23_clnt.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: s23_clnt.c,v 1.42 2015/08/29 17:15:52 doug Exp $ */ 1/* $OpenBSD: s23_clnt.c,v 1.43 2015/09/01 13:38:27 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 *
@@ -359,11 +359,6 @@ ssl23_client_hello(SSL *s)
359 *(p++) = 0; 359 *(p++) = 0;
360 360
361 /* TLS extensions*/ 361 /* TLS extensions*/
362 if (ssl_prepare_clienthello_tlsext(s) <= 0) {
363 SSLerr(SSL_F_SSL23_CLIENT_HELLO,
364 SSL_R_CLIENTHELLO_TLSEXT);
365 return -1;
366 }
367 if ((p = ssl_add_clienthello_tlsext(s, p, 362 if ((p = ssl_add_clienthello_tlsext(s, p,
368 buf + SSL3_RT_MAX_PLAIN_LENGTH)) == NULL) { 363 buf + SSL3_RT_MAX_PLAIN_LENGTH)) == NULL) {
369 SSLerr(SSL_F_SSL23_CLIENT_HELLO, ERR_R_INTERNAL_ERROR); 364 SSLerr(SSL_F_SSL23_CLIENT_HELLO, ERR_R_INTERNAL_ERROR);
diff --git a/src/lib/libssl/src/ssl/s3_clnt.c b/src/lib/libssl/src/ssl/s3_clnt.c
index 5503f89ab6..5b9af06aa5 100644
--- a/src/lib/libssl/src/ssl/s3_clnt.c
+++ b/src/lib/libssl/src/ssl/s3_clnt.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: s3_clnt.c,v 1.123 2015/08/29 16:51:17 doug Exp $ */ 1/* $OpenBSD: s3_clnt.c,v 1.124 2015/09/01 13:38:27 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 *
@@ -675,11 +675,6 @@ ssl3_client_hello(SSL *s)
675 *(p++) = 0; /* Add the NULL method */ 675 *(p++) = 0; /* Add the NULL method */
676 676
677 /* TLS extensions*/ 677 /* TLS extensions*/
678 if (ssl_prepare_clienthello_tlsext(s) <= 0) {
679 SSLerr(SSL_F_SSL3_CLIENT_HELLO,
680 SSL_R_CLIENTHELLO_TLSEXT);
681 goto err;
682 }
683 bufend = (unsigned char *)s->init_buf->data + 678 bufend = (unsigned char *)s->init_buf->data +
684 SSL3_RT_MAX_PLAIN_LENGTH; 679 SSL3_RT_MAX_PLAIN_LENGTH;
685 if ((p = ssl_add_clienthello_tlsext(s, p, bufend)) == NULL) { 680 if ((p = ssl_add_clienthello_tlsext(s, p, bufend)) == NULL) {
diff --git a/src/lib/libssl/src/ssl/s3_srvr.c b/src/lib/libssl/src/ssl/s3_srvr.c
index 9962cabd73..3f9f6720fa 100644
--- a/src/lib/libssl/src/ssl/s3_srvr.c
+++ b/src/lib/libssl/src/ssl/s3_srvr.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: s3_srvr.c,v 1.114 2015/08/29 16:51:17 doug Exp $ */ 1/* $OpenBSD: s3_srvr.c,v 1.115 2015/09/01 13:38:27 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 *
@@ -1132,11 +1132,6 @@ ssl3_send_server_hello(SSL *s)
1132 /* put the compression method */ 1132 /* put the compression method */
1133 *(p++) = 0; 1133 *(p++) = 0;
1134 1134
1135 if (ssl_prepare_serverhello_tlsext(s) <= 0) {
1136 SSLerr(SSL_F_SSL3_SEND_SERVER_HELLO,
1137 SSL_R_SERVERHELLO_TLSEXT);
1138 return (-1);
1139 }
1140 bufend = (unsigned char *)s->init_buf->data + 1135 bufend = (unsigned char *)s->init_buf->data +
1141 SSL3_RT_MAX_PLAIN_LENGTH; 1136 SSL3_RT_MAX_PLAIN_LENGTH;
1142 if ((p = ssl_add_serverhello_tlsext(s, p, bufend)) == NULL) { 1137 if ((p = ssl_add_serverhello_tlsext(s, p, bufend)) == NULL) {
diff --git a/src/lib/libssl/src/ssl/ssl_locl.h b/src/lib/libssl/src/ssl/ssl_locl.h
index 098065f3bc..b7853b24c8 100644
--- a/src/lib/libssl/src/ssl/ssl_locl.h
+++ b/src/lib/libssl/src/ssl/ssl_locl.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl_locl.h,v 1.101 2015/08/29 17:15:52 doug Exp $ */ 1/* $OpenBSD: ssl_locl.h,v 1.102 2015/09/01 13:38:27 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 *
@@ -816,8 +816,6 @@ int ssl_parse_clienthello_tlsext(SSL *s, unsigned char **data,
816 unsigned char *d, int n, int *al); 816 unsigned char *d, int n, int *al);
817int ssl_parse_serverhello_tlsext(SSL *s, unsigned char **data, 817int ssl_parse_serverhello_tlsext(SSL *s, unsigned char **data,
818 unsigned char *d, int n, int *al); 818 unsigned char *d, int n, int *al);
819int ssl_prepare_clienthello_tlsext(SSL *s);
820int ssl_prepare_serverhello_tlsext(SSL *s);
821int ssl_check_clienthello_tlsext_early(SSL *s); 819int ssl_check_clienthello_tlsext_early(SSL *s);
822int ssl_check_clienthello_tlsext_late(SSL *s); 820int ssl_check_clienthello_tlsext_late(SSL *s);
823int ssl_check_serverhello_tlsext(SSL *s); 821int ssl_check_serverhello_tlsext(SSL *s);
diff --git a/src/lib/libssl/src/ssl/t1_lib.c b/src/lib/libssl/src/ssl/t1_lib.c
index b892fa9b91..fc54fe1e6d 100644
--- a/src/lib/libssl/src/ssl/t1_lib.c
+++ b/src/lib/libssl/src/ssl/t1_lib.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: t1_lib.c,v 1.83 2015/08/19 23:34:34 bcook Exp $ */ 1/* $OpenBSD: t1_lib.c,v 1.84 2015/09/01 13:38:27 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 *
@@ -1830,18 +1830,6 @@ ri_check:
1830} 1830}
1831 1831
1832int 1832int
1833ssl_prepare_clienthello_tlsext(SSL *s)
1834{
1835 return 1;
1836}
1837
1838int
1839ssl_prepare_serverhello_tlsext(SSL *s)
1840{
1841 return 1;
1842}
1843
1844int
1845ssl_check_clienthello_tlsext_early(SSL *s) 1833ssl_check_clienthello_tlsext_early(SSL *s)
1846{ 1834{
1847 int ret = SSL_TLSEXT_ERR_NOACK; 1835 int ret = SSL_TLSEXT_ERR_NOACK;
diff --git a/src/lib/libssl/ssl_locl.h b/src/lib/libssl/ssl_locl.h
index 098065f3bc..b7853b24c8 100644
--- a/src/lib/libssl/ssl_locl.h
+++ b/src/lib/libssl/ssl_locl.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl_locl.h,v 1.101 2015/08/29 17:15:52 doug Exp $ */ 1/* $OpenBSD: ssl_locl.h,v 1.102 2015/09/01 13:38:27 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 *
@@ -816,8 +816,6 @@ int ssl_parse_clienthello_tlsext(SSL *s, unsigned char **data,
816 unsigned char *d, int n, int *al); 816 unsigned char *d, int n, int *al);
817int ssl_parse_serverhello_tlsext(SSL *s, unsigned char **data, 817int ssl_parse_serverhello_tlsext(SSL *s, unsigned char **data,
818 unsigned char *d, int n, int *al); 818 unsigned char *d, int n, int *al);
819int ssl_prepare_clienthello_tlsext(SSL *s);
820int ssl_prepare_serverhello_tlsext(SSL *s);
821int ssl_check_clienthello_tlsext_early(SSL *s); 819int ssl_check_clienthello_tlsext_early(SSL *s);
822int ssl_check_clienthello_tlsext_late(SSL *s); 820int ssl_check_clienthello_tlsext_late(SSL *s);
823int ssl_check_serverhello_tlsext(SSL *s); 821int ssl_check_serverhello_tlsext(SSL *s);
diff --git a/src/lib/libssl/t1_lib.c b/src/lib/libssl/t1_lib.c
index b892fa9b91..fc54fe1e6d 100644
--- a/src/lib/libssl/t1_lib.c
+++ b/src/lib/libssl/t1_lib.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: t1_lib.c,v 1.83 2015/08/19 23:34:34 bcook Exp $ */ 1/* $OpenBSD: t1_lib.c,v 1.84 2015/09/01 13:38:27 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 *
@@ -1830,18 +1830,6 @@ ri_check:
1830} 1830}
1831 1831
1832int 1832int
1833ssl_prepare_clienthello_tlsext(SSL *s)
1834{
1835 return 1;
1836}
1837
1838int
1839ssl_prepare_serverhello_tlsext(SSL *s)
1840{
1841 return 1;
1842}
1843
1844int
1845ssl_check_clienthello_tlsext_early(SSL *s) 1833ssl_check_clienthello_tlsext_early(SSL *s)
1846{ 1834{
1847 int ret = SSL_TLSEXT_ERR_NOACK; 1835 int ret = SSL_TLSEXT_ERR_NOACK;