diff options
author | jsing <> | 2014-08-10 14:42:56 +0000 |
---|---|---|
committer | jsing <> | 2014-08-10 14:42:56 +0000 |
commit | cdc0e904c0db18d8a94dbc75555c41585f6a7867 (patch) | |
tree | 2aa183c3a15875e9ec36793e3cb35c3a765c0fcc /src/lib/libssl/s23_lib.c | |
parent | f26635d06fdd0bb26d5ee990a796492daaa92b29 (diff) | |
download | openbsd-cdc0e904c0db18d8a94dbc75555c41585f6a7867.tar.gz openbsd-cdc0e904c0db18d8a94dbc75555c41585f6a7867.tar.bz2 openbsd-cdc0e904c0db18d8a94dbc75555c41585f6a7867.zip |
Since we no longer need to support SSLv2-style cipher lists, start
unravelling the maze of function pointers and callbacks by directly
calling ssl3_{get,put}_cipher_by_char() and removing the
ssl_{get,put}_cipher_by_char macros.
Prompted by similar changes in boringssl.
ok guenther.
Diffstat (limited to 'src/lib/libssl/s23_lib.c')
-rw-r--r-- | src/lib/libssl/s23_lib.c | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/src/lib/libssl/s23_lib.c b/src/lib/libssl/s23_lib.c index 643910be69..3a6d1d598b 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.16 2014/07/11 08:17:36 miod Exp $ */ | 1 | /* $OpenBSD: s23_lib.c,v 1.17 2014/08/10 14:42:56 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 | * |
@@ -67,21 +67,6 @@ ssl23_default_timeout(void) | |||
67 | } | 67 | } |
68 | 68 | ||
69 | int | 69 | int |
70 | ssl23_put_cipher_by_char(const SSL_CIPHER *c, unsigned char *p) | ||
71 | { | ||
72 | long l; | ||
73 | |||
74 | /* We can write SSLv2 and SSLv3 ciphers */ | ||
75 | if (p != NULL) { | ||
76 | l = c->id; | ||
77 | p[0] = ((unsigned char)(l >> 16L))&0xFF; | ||
78 | p[1] = ((unsigned char)(l >> 8L))&0xFF; | ||
79 | p[2] = ((unsigned char)(l ))&0xFF; | ||
80 | } | ||
81 | return (3); | ||
82 | } | ||
83 | |||
84 | int | ||
85 | ssl23_read(SSL *s, void *buf, int len) | 70 | ssl23_read(SSL *s, void *buf, int len) |
86 | { | 71 | { |
87 | int n; | 72 | int n; |