summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormiod <>2014-07-11 08:17:36 +0000
committermiod <>2014-07-11 08:17:36 +0000
commit86b5303a54b4edb30db98ef7e4449b166d992bb5 (patch)
treeab9b73426bba5da242022c216cdfb919c2be04cb
parent22d34c2d8bc5e1aef79a43753b71073bff378ce9 (diff)
downloadopenbsd-86b5303a54b4edb30db98ef7e4449b166d992bb5.tar.gz
openbsd-86b5303a54b4edb30db98ef7e4449b166d992bb5.tar.bz2
openbsd-86b5303a54b4edb30db98ef7e4449b166d992bb5.zip
No need to keep ssl23_foo() flavours mapping to ssl3_foo().
ok tedu@
-rw-r--r--src/lib/libssl/s23_clnt.c8
-rw-r--r--src/lib/libssl/s23_lib.c30
-rw-r--r--src/lib/libssl/s23_srvr.c8
-rw-r--r--src/lib/libssl/src/ssl/s23_clnt.c8
-rw-r--r--src/lib/libssl/src/ssl/s23_lib.c30
-rw-r--r--src/lib/libssl/src/ssl/s23_meth.c8
-rw-r--r--src/lib/libssl/src/ssl/s23_srvr.c8
-rw-r--r--src/lib/libssl/src/ssl/ssl_locl.h5
-rw-r--r--src/lib/libssl/ssl_locl.h5
9 files changed, 24 insertions, 86 deletions
diff --git a/src/lib/libssl/s23_clnt.c b/src/lib/libssl/s23_clnt.c
index e2f1544486..3a72dd3316 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.30 2014/07/10 08:51:14 tedu Exp $ */ 1/* $OpenBSD: s23_clnt.c,v 1.31 2014/07/11 08:17:36 miod 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 *
@@ -139,11 +139,11 @@ const SSL_METHOD SSLv23_client_method_data = {
139 .ssl_dispatch_alert = ssl3_dispatch_alert, 139 .ssl_dispatch_alert = ssl3_dispatch_alert,
140 .ssl_ctrl = ssl3_ctrl, 140 .ssl_ctrl = ssl3_ctrl,
141 .ssl_ctx_ctrl = ssl3_ctx_ctrl, 141 .ssl_ctx_ctrl = ssl3_ctx_ctrl,
142 .get_cipher_by_char = ssl23_get_cipher_by_char, 142 .get_cipher_by_char = ssl3_get_cipher_by_char,
143 .put_cipher_by_char = ssl23_put_cipher_by_char, 143 .put_cipher_by_char = ssl23_put_cipher_by_char,
144 .ssl_pending = ssl_undefined_const_function, 144 .ssl_pending = ssl_undefined_const_function,
145 .num_ciphers = ssl23_num_ciphers, 145 .num_ciphers = ssl3_num_ciphers,
146 .get_cipher = ssl23_get_cipher, 146 .get_cipher = ssl3_get_cipher,
147 .get_ssl_method = ssl23_get_client_method, 147 .get_ssl_method = ssl23_get_client_method,
148 .get_timeout = ssl23_default_timeout, 148 .get_timeout = ssl23_default_timeout,
149 .ssl3_enc = &ssl3_undef_enc_method, 149 .ssl3_enc = &ssl3_undef_enc_method,
diff --git a/src/lib/libssl/s23_lib.c b/src/lib/libssl/s23_lib.c
index a879a637ea..643910be69 100644
--- a/src/lib/libssl/s23_lib.c
+++ b/src/lib/libssl/s23_lib.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: s23_lib.c,v 1.15 2014/06/12 15:49:31 deraadt Exp $ */ 1/* $OpenBSD: s23_lib.c,v 1.16 2014/07/11 08:17:36 miod 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 *
@@ -67,34 +67,6 @@ ssl23_default_timeout(void)
67} 67}
68 68
69int 69int
70ssl23_num_ciphers(void)
71{
72 return (ssl3_num_ciphers());
73}
74
75const SSL_CIPHER *
76ssl23_get_cipher(unsigned int u)
77{
78 unsigned int uu = ssl3_num_ciphers();
79
80 if (u < uu)
81 return (ssl3_get_cipher(u));
82 else
83 return (NULL);
84}
85
86/* This function needs to check if the ciphers required are actually
87 * available */
88const SSL_CIPHER *
89ssl23_get_cipher_by_char(const unsigned char *p)
90{
91 const SSL_CIPHER *cp;
92
93 cp = ssl3_get_cipher_by_char(p);
94 return (cp);
95}
96
97int
98ssl23_put_cipher_by_char(const SSL_CIPHER *c, unsigned char *p) 70ssl23_put_cipher_by_char(const SSL_CIPHER *c, unsigned char *p)
99{ 71{
100 long l; 72 long l;
diff --git a/src/lib/libssl/s23_srvr.c b/src/lib/libssl/s23_srvr.c
index caeb34b78e..e6356ba2a2 100644
--- a/src/lib/libssl/s23_srvr.c
+++ b/src/lib/libssl/s23_srvr.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: s23_srvr.c,v 1.30 2014/07/10 08:51:14 tedu Exp $ */ 1/* $OpenBSD: s23_srvr.c,v 1.31 2014/07/11 08:17:36 miod 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 *
@@ -138,11 +138,11 @@ const SSL_METHOD SSLv23_server_method_data = {
138 .ssl_dispatch_alert = ssl3_dispatch_alert, 138 .ssl_dispatch_alert = ssl3_dispatch_alert,
139 .ssl_ctrl = ssl3_ctrl, 139 .ssl_ctrl = ssl3_ctrl,
140 .ssl_ctx_ctrl = ssl3_ctx_ctrl, 140 .ssl_ctx_ctrl = ssl3_ctx_ctrl,
141 .get_cipher_by_char = ssl23_get_cipher_by_char, 141 .get_cipher_by_char = ssl3_get_cipher_by_char,
142 .put_cipher_by_char = ssl23_put_cipher_by_char, 142 .put_cipher_by_char = ssl23_put_cipher_by_char,
143 .ssl_pending = ssl_undefined_const_function, 143 .ssl_pending = ssl_undefined_const_function,
144 .num_ciphers = ssl23_num_ciphers, 144 .num_ciphers = ssl3_num_ciphers,
145 .get_cipher = ssl23_get_cipher, 145 .get_cipher = ssl3_get_cipher,
146 .get_ssl_method = ssl23_get_server_method, 146 .get_ssl_method = ssl23_get_server_method,
147 .get_timeout = ssl23_default_timeout, 147 .get_timeout = ssl23_default_timeout,
148 .ssl3_enc = &ssl3_undef_enc_method, 148 .ssl3_enc = &ssl3_undef_enc_method,
diff --git a/src/lib/libssl/src/ssl/s23_clnt.c b/src/lib/libssl/src/ssl/s23_clnt.c
index e2f1544486..3a72dd3316 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.30 2014/07/10 08:51:14 tedu Exp $ */ 1/* $OpenBSD: s23_clnt.c,v 1.31 2014/07/11 08:17:36 miod 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 *
@@ -139,11 +139,11 @@ const SSL_METHOD SSLv23_client_method_data = {
139 .ssl_dispatch_alert = ssl3_dispatch_alert, 139 .ssl_dispatch_alert = ssl3_dispatch_alert,
140 .ssl_ctrl = ssl3_ctrl, 140 .ssl_ctrl = ssl3_ctrl,
141 .ssl_ctx_ctrl = ssl3_ctx_ctrl, 141 .ssl_ctx_ctrl = ssl3_ctx_ctrl,
142 .get_cipher_by_char = ssl23_get_cipher_by_char, 142 .get_cipher_by_char = ssl3_get_cipher_by_char,
143 .put_cipher_by_char = ssl23_put_cipher_by_char, 143 .put_cipher_by_char = ssl23_put_cipher_by_char,
144 .ssl_pending = ssl_undefined_const_function, 144 .ssl_pending = ssl_undefined_const_function,
145 .num_ciphers = ssl23_num_ciphers, 145 .num_ciphers = ssl3_num_ciphers,
146 .get_cipher = ssl23_get_cipher, 146 .get_cipher = ssl3_get_cipher,
147 .get_ssl_method = ssl23_get_client_method, 147 .get_ssl_method = ssl23_get_client_method,
148 .get_timeout = ssl23_default_timeout, 148 .get_timeout = ssl23_default_timeout,
149 .ssl3_enc = &ssl3_undef_enc_method, 149 .ssl3_enc = &ssl3_undef_enc_method,
diff --git a/src/lib/libssl/src/ssl/s23_lib.c b/src/lib/libssl/src/ssl/s23_lib.c
index a879a637ea..643910be69 100644
--- a/src/lib/libssl/src/ssl/s23_lib.c
+++ b/src/lib/libssl/src/ssl/s23_lib.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: s23_lib.c,v 1.15 2014/06/12 15:49:31 deraadt Exp $ */ 1/* $OpenBSD: s23_lib.c,v 1.16 2014/07/11 08:17:36 miod 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 *
@@ -67,34 +67,6 @@ ssl23_default_timeout(void)
67} 67}
68 68
69int 69int
70ssl23_num_ciphers(void)
71{
72 return (ssl3_num_ciphers());
73}
74
75const SSL_CIPHER *
76ssl23_get_cipher(unsigned int u)
77{
78 unsigned int uu = ssl3_num_ciphers();
79
80 if (u < uu)
81 return (ssl3_get_cipher(u));
82 else
83 return (NULL);
84}
85
86/* This function needs to check if the ciphers required are actually
87 * available */
88const SSL_CIPHER *
89ssl23_get_cipher_by_char(const unsigned char *p)
90{
91 const SSL_CIPHER *cp;
92
93 cp = ssl3_get_cipher_by_char(p);
94 return (cp);
95}
96
97int
98ssl23_put_cipher_by_char(const SSL_CIPHER *c, unsigned char *p) 70ssl23_put_cipher_by_char(const SSL_CIPHER *c, unsigned char *p)
99{ 71{
100 long l; 72 long l;
diff --git a/src/lib/libssl/src/ssl/s23_meth.c b/src/lib/libssl/src/ssl/s23_meth.c
index be55a639fa..b7f6551f64 100644
--- a/src/lib/libssl/src/ssl/s23_meth.c
+++ b/src/lib/libssl/src/ssl/s23_meth.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: s23_meth.c,v 1.13 2014/06/12 15:49:31 deraadt Exp $ */ 1/* $OpenBSD: s23_meth.c,v 1.14 2014/07/11 08:17:36 miod 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 *
@@ -81,11 +81,11 @@ const SSL_METHOD SSLv23_method_data = {
81 .ssl_dispatch_alert = ssl3_dispatch_alert, 81 .ssl_dispatch_alert = ssl3_dispatch_alert,
82 .ssl_ctrl = ssl3_ctrl, 82 .ssl_ctrl = ssl3_ctrl,
83 .ssl_ctx_ctrl = ssl3_ctx_ctrl, 83 .ssl_ctx_ctrl = ssl3_ctx_ctrl,
84 .get_cipher_by_char = ssl23_get_cipher_by_char, 84 .get_cipher_by_char = ssl3_get_cipher_by_char,
85 .put_cipher_by_char = ssl23_put_cipher_by_char, 85 .put_cipher_by_char = ssl23_put_cipher_by_char,
86 .ssl_pending = ssl_undefined_const_function, 86 .ssl_pending = ssl_undefined_const_function,
87 .num_ciphers = ssl23_num_ciphers, 87 .num_ciphers = ssl3_num_ciphers,
88 .get_cipher = ssl23_get_cipher, 88 .get_cipher = ssl3_get_cipher,
89 .get_ssl_method = ssl23_get_method, 89 .get_ssl_method = ssl23_get_method,
90 .get_timeout = ssl23_default_timeout, 90 .get_timeout = ssl23_default_timeout,
91 .ssl3_enc = &ssl3_undef_enc_method, 91 .ssl3_enc = &ssl3_undef_enc_method,
diff --git a/src/lib/libssl/src/ssl/s23_srvr.c b/src/lib/libssl/src/ssl/s23_srvr.c
index caeb34b78e..e6356ba2a2 100644
--- a/src/lib/libssl/src/ssl/s23_srvr.c
+++ b/src/lib/libssl/src/ssl/s23_srvr.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: s23_srvr.c,v 1.30 2014/07/10 08:51:14 tedu Exp $ */ 1/* $OpenBSD: s23_srvr.c,v 1.31 2014/07/11 08:17:36 miod 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 *
@@ -138,11 +138,11 @@ const SSL_METHOD SSLv23_server_method_data = {
138 .ssl_dispatch_alert = ssl3_dispatch_alert, 138 .ssl_dispatch_alert = ssl3_dispatch_alert,
139 .ssl_ctrl = ssl3_ctrl, 139 .ssl_ctrl = ssl3_ctrl,
140 .ssl_ctx_ctrl = ssl3_ctx_ctrl, 140 .ssl_ctx_ctrl = ssl3_ctx_ctrl,
141 .get_cipher_by_char = ssl23_get_cipher_by_char, 141 .get_cipher_by_char = ssl3_get_cipher_by_char,
142 .put_cipher_by_char = ssl23_put_cipher_by_char, 142 .put_cipher_by_char = ssl23_put_cipher_by_char,
143 .ssl_pending = ssl_undefined_const_function, 143 .ssl_pending = ssl_undefined_const_function,
144 .num_ciphers = ssl23_num_ciphers, 144 .num_ciphers = ssl3_num_ciphers,
145 .get_cipher = ssl23_get_cipher, 145 .get_cipher = ssl3_get_cipher,
146 .get_ssl_method = ssl23_get_server_method, 146 .get_ssl_method = ssl23_get_server_method,
147 .get_timeout = ssl23_default_timeout, 147 .get_timeout = ssl23_default_timeout,
148 .ssl3_enc = &ssl3_undef_enc_method, 148 .ssl3_enc = &ssl3_undef_enc_method,
diff --git a/src/lib/libssl/src/ssl/ssl_locl.h b/src/lib/libssl/src/ssl/ssl_locl.h
index 150f56e1d6..c1e402b3a1 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.58 2014/07/10 10:09:54 jsing Exp $ */ 1/* $OpenBSD: ssl_locl.h,v 1.59 2014/07/11 08:17:36 miod 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 *
@@ -659,13 +659,10 @@ void ssl3_record_sequence_increment(unsigned char *seq);
659int ssl3_do_change_cipher_spec(SSL *ssl); 659int ssl3_do_change_cipher_spec(SSL *ssl);
660long ssl3_default_timeout(void); 660long ssl3_default_timeout(void);
661 661
662int ssl23_num_ciphers(void);
663const SSL_CIPHER *ssl23_get_cipher(unsigned int u);
664int ssl23_read(SSL *s, void *buf, int len); 662int ssl23_read(SSL *s, void *buf, int len);
665int ssl23_peek(SSL *s, void *buf, int len); 663int ssl23_peek(SSL *s, void *buf, int len);
666int ssl23_write(SSL *s, const void *buf, int len); 664int ssl23_write(SSL *s, const void *buf, int len);
667int ssl23_put_cipher_by_char(const SSL_CIPHER *c, unsigned char *p); 665int ssl23_put_cipher_by_char(const SSL_CIPHER *c, unsigned char *p);
668const SSL_CIPHER *ssl23_get_cipher_by_char(const unsigned char *p);
669long ssl23_default_timeout(void); 666long ssl23_default_timeout(void);
670 667
671long tls1_default_timeout(void); 668long tls1_default_timeout(void);
diff --git a/src/lib/libssl/ssl_locl.h b/src/lib/libssl/ssl_locl.h
index 150f56e1d6..c1e402b3a1 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.58 2014/07/10 10:09:54 jsing Exp $ */ 1/* $OpenBSD: ssl_locl.h,v 1.59 2014/07/11 08:17:36 miod 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 *
@@ -659,13 +659,10 @@ void ssl3_record_sequence_increment(unsigned char *seq);
659int ssl3_do_change_cipher_spec(SSL *ssl); 659int ssl3_do_change_cipher_spec(SSL *ssl);
660long ssl3_default_timeout(void); 660long ssl3_default_timeout(void);
661 661
662int ssl23_num_ciphers(void);
663const SSL_CIPHER *ssl23_get_cipher(unsigned int u);
664int ssl23_read(SSL *s, void *buf, int len); 662int ssl23_read(SSL *s, void *buf, int len);
665int ssl23_peek(SSL *s, void *buf, int len); 663int ssl23_peek(SSL *s, void *buf, int len);
666int ssl23_write(SSL *s, const void *buf, int len); 664int ssl23_write(SSL *s, const void *buf, int len);
667int ssl23_put_cipher_by_char(const SSL_CIPHER *c, unsigned char *p); 665int ssl23_put_cipher_by_char(const SSL_CIPHER *c, unsigned char *p);
668const SSL_CIPHER *ssl23_get_cipher_by_char(const unsigned char *p);
669long ssl23_default_timeout(void); 666long ssl23_default_timeout(void);
670 667
671long tls1_default_timeout(void); 668long tls1_default_timeout(void);