diff options
| author | jsing <> | 2014-08-11 01:10:42 +0000 |
|---|---|---|
| committer | jsing <> | 2014-08-11 01:10:42 +0000 |
| commit | eef0721a3a0f7f67e03b910246980b6e1ba7dd12 (patch) | |
| tree | 9fd6149f4d3a9002ac5f1b6affe7cef8609d5e3b /src/lib/libssl/s3_clnt.c | |
| parent | a4ce4dfd66a0d1623edb622cd4153d529d5bcbba (diff) | |
| download | openbsd-eef0721a3a0f7f67e03b910246980b6e1ba7dd12.tar.gz openbsd-eef0721a3a0f7f67e03b910246980b6e1ba7dd12.tar.bz2 openbsd-eef0721a3a0f7f67e03b910246980b6e1ba7dd12.zip | |
Currently, ssl3_put_char_by_bytes(NULL, NULL) is just a long handed way
of writing "2". Add a define for the SSL3_CIPHER_VALUE_SIZE (rather than
using a less-readable hardcoded constant everywhere) and replace the
ssl3_put_char_by_bytes(NULL, NULL) calls with it.
ok bcook@ miod@
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libssl/s3_clnt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libssl/s3_clnt.c b/src/lib/libssl/s3_clnt.c index 63e8135185..848de8c268 100644 --- a/src/lib/libssl/s3_clnt.c +++ b/src/lib/libssl/s3_clnt.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: s3_clnt.c,v 1.86 2014/08/10 14:42:56 jsing Exp $ */ | 1 | /* $OpenBSD: s3_clnt.c,v 1.87 2014/08/11 01:10:42 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 | * |
| @@ -904,7 +904,7 @@ ssl3_get_server_hello(SSL *s) | |||
| 904 | SSL_R_WRONG_CIPHER_RETURNED); | 904 | SSL_R_WRONG_CIPHER_RETURNED); |
| 905 | goto f_err; | 905 | goto f_err; |
| 906 | } | 906 | } |
| 907 | p += ssl3_put_cipher_by_char(NULL, NULL); | 907 | p += SSL3_CIPHER_VALUE_SIZE; |
| 908 | 908 | ||
| 909 | sk = ssl_get_ciphers_by_id(s); | 909 | sk = ssl_get_ciphers_by_id(s); |
| 910 | i = sk_SSL_CIPHER_find(sk, c); | 910 | i = sk_SSL_CIPHER_find(sk, c); |
