diff options
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libssl/s3_lib.c | 23 |
1 files changed, 7 insertions, 16 deletions
diff --git a/src/lib/libssl/s3_lib.c b/src/lib/libssl/s3_lib.c index 9a25643070..8d03512a26 100644 --- a/src/lib/libssl/s3_lib.c +++ b/src/lib/libssl/s3_lib.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: s3_lib.c,v 1.78 2014/08/23 15:37:38 jsing Exp $ */ | 1 | /* $OpenBSD: s3_lib.c,v 1.79 2014/08/24 14:36:45 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 | * |
| @@ -1819,6 +1819,12 @@ ssl3_get_cipher_by_id(unsigned int id) | |||
| 1819 | return (NULL); | 1819 | return (NULL); |
| 1820 | } | 1820 | } |
| 1821 | 1821 | ||
| 1822 | uint16_t | ||
| 1823 | ssl3_cipher_get_value(const SSL_CIPHER *c) | ||
| 1824 | { | ||
| 1825 | return (c->id & SSL3_CK_VALUE_MASK); | ||
| 1826 | } | ||
| 1827 | |||
| 1822 | int | 1828 | int |
| 1823 | ssl3_pending(const SSL *s) | 1829 | ssl3_pending(const SSL *s) |
| 1824 | { | 1830 | { |
| @@ -2385,21 +2391,6 @@ ssl3_ctx_callback_ctrl(SSL_CTX *ctx, int cmd, void (*fp)(void)) | |||
| 2385 | return (1); | 2391 | return (1); |
| 2386 | } | 2392 | } |
| 2387 | 2393 | ||
| 2388 | int | ||
| 2389 | ssl3_put_cipher_by_char(const SSL_CIPHER *c, unsigned char *p) | ||
| 2390 | { | ||
| 2391 | long l; | ||
| 2392 | |||
| 2393 | if (p != NULL) { | ||
| 2394 | l = c->id; | ||
| 2395 | if ((l & 0xff000000) != 0x03000000) | ||
| 2396 | return (0); | ||
| 2397 | p[0] = ((unsigned char)(l >> 8L)) & 0xFF; | ||
| 2398 | p[1] = ((unsigned char)(l)) & 0xFF; | ||
| 2399 | } | ||
| 2400 | return (2); | ||
| 2401 | } | ||
| 2402 | |||
| 2403 | SSL_CIPHER *ssl3_choose_cipher(SSL *s, STACK_OF(SSL_CIPHER) *clnt, | 2394 | SSL_CIPHER *ssl3_choose_cipher(SSL *s, STACK_OF(SSL_CIPHER) *clnt, |
| 2404 | STACK_OF(SSL_CIPHER) *srvr) | 2395 | STACK_OF(SSL_CIPHER) *srvr) |
| 2405 | { | 2396 | { |
