diff options
| author | miod <> | 2014-07-11 08:17:36 +0000 |
|---|---|---|
| committer | miod <> | 2014-07-11 08:17:36 +0000 |
| commit | d9f6f668cd5c8449297f6be877ee548d757a6c1e (patch) | |
| tree | ab9b73426bba5da242022c216cdfb919c2be04cb /src/lib/libssl/s23_lib.c | |
| parent | c87f8e645033cd7c574fb1b91ba5b6ac88bbe032 (diff) | |
| download | openbsd-d9f6f668cd5c8449297f6be877ee548d757a6c1e.tar.gz openbsd-d9f6f668cd5c8449297f6be877ee548d757a6c1e.tar.bz2 openbsd-d9f6f668cd5c8449297f6be877ee548d757a6c1e.zip | |
No need to keep ssl23_foo() flavours mapping to ssl3_foo().
ok tedu@
Diffstat (limited to 'src/lib/libssl/s23_lib.c')
| -rw-r--r-- | src/lib/libssl/s23_lib.c | 30 |
1 files changed, 1 insertions, 29 deletions
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; |
