diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libssl/s23_clnt.c | 8 | ||||
| -rw-r--r-- | src/lib/libssl/s23_lib.c | 30 | ||||
| -rw-r--r-- | src/lib/libssl/s23_srvr.c | 8 | ||||
| -rw-r--r-- | src/lib/libssl/src/ssl/s23_clnt.c | 8 | ||||
| -rw-r--r-- | src/lib/libssl/src/ssl/s23_lib.c | 30 | ||||
| -rw-r--r-- | src/lib/libssl/src/ssl/s23_meth.c | 8 | ||||
| -rw-r--r-- | src/lib/libssl/src/ssl/s23_srvr.c | 8 | ||||
| -rw-r--r-- | src/lib/libssl/src/ssl/ssl_locl.h | 5 | ||||
| -rw-r--r-- | src/lib/libssl/ssl_locl.h | 5 |
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 | ||
| 69 | int | 69 | int |
| 70 | ssl23_num_ciphers(void) | ||
| 71 | { | ||
| 72 | return (ssl3_num_ciphers()); | ||
| 73 | } | ||
| 74 | |||
| 75 | const SSL_CIPHER * | ||
| 76 | ssl23_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 */ | ||
| 88 | const SSL_CIPHER * | ||
| 89 | ssl23_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 | |||
| 97 | int | ||
| 98 | ssl23_put_cipher_by_char(const SSL_CIPHER *c, unsigned char *p) | 70 | ssl23_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 | ||
| 69 | int | 69 | int |
| 70 | ssl23_num_ciphers(void) | ||
| 71 | { | ||
| 72 | return (ssl3_num_ciphers()); | ||
| 73 | } | ||
| 74 | |||
| 75 | const SSL_CIPHER * | ||
| 76 | ssl23_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 */ | ||
| 88 | const SSL_CIPHER * | ||
| 89 | ssl23_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 | |||
| 97 | int | ||
| 98 | ssl23_put_cipher_by_char(const SSL_CIPHER *c, unsigned char *p) | 70 | ssl23_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); | |||
| 659 | int ssl3_do_change_cipher_spec(SSL *ssl); | 659 | int ssl3_do_change_cipher_spec(SSL *ssl); |
| 660 | long ssl3_default_timeout(void); | 660 | long ssl3_default_timeout(void); |
| 661 | 661 | ||
| 662 | int ssl23_num_ciphers(void); | ||
| 663 | const SSL_CIPHER *ssl23_get_cipher(unsigned int u); | ||
| 664 | int ssl23_read(SSL *s, void *buf, int len); | 662 | int ssl23_read(SSL *s, void *buf, int len); |
| 665 | int ssl23_peek(SSL *s, void *buf, int len); | 663 | int ssl23_peek(SSL *s, void *buf, int len); |
| 666 | int ssl23_write(SSL *s, const void *buf, int len); | 664 | int ssl23_write(SSL *s, const void *buf, int len); |
| 667 | int ssl23_put_cipher_by_char(const SSL_CIPHER *c, unsigned char *p); | 665 | int ssl23_put_cipher_by_char(const SSL_CIPHER *c, unsigned char *p); |
| 668 | const SSL_CIPHER *ssl23_get_cipher_by_char(const unsigned char *p); | ||
| 669 | long ssl23_default_timeout(void); | 666 | long ssl23_default_timeout(void); |
| 670 | 667 | ||
| 671 | long tls1_default_timeout(void); | 668 | long 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); | |||
| 659 | int ssl3_do_change_cipher_spec(SSL *ssl); | 659 | int ssl3_do_change_cipher_spec(SSL *ssl); |
| 660 | long ssl3_default_timeout(void); | 660 | long ssl3_default_timeout(void); |
| 661 | 661 | ||
| 662 | int ssl23_num_ciphers(void); | ||
| 663 | const SSL_CIPHER *ssl23_get_cipher(unsigned int u); | ||
| 664 | int ssl23_read(SSL *s, void *buf, int len); | 662 | int ssl23_read(SSL *s, void *buf, int len); |
| 665 | int ssl23_peek(SSL *s, void *buf, int len); | 663 | int ssl23_peek(SSL *s, void *buf, int len); |
| 666 | int ssl23_write(SSL *s, const void *buf, int len); | 664 | int ssl23_write(SSL *s, const void *buf, int len); |
| 667 | int ssl23_put_cipher_by_char(const SSL_CIPHER *c, unsigned char *p); | 665 | int ssl23_put_cipher_by_char(const SSL_CIPHER *c, unsigned char *p); |
| 668 | const SSL_CIPHER *ssl23_get_cipher_by_char(const unsigned char *p); | ||
| 669 | long ssl23_default_timeout(void); | 666 | long ssl23_default_timeout(void); |
| 670 | 667 | ||
| 671 | long tls1_default_timeout(void); | 668 | long tls1_default_timeout(void); |
