summaryrefslogtreecommitdiff
path: root/src/lib/libssl/s3_clnt.c
diff options
context:
space:
mode:
authorjsing <>2014-08-11 01:10:42 +0000
committerjsing <>2014-08-11 01:10:42 +0000
commit9c34b1e2279d3e55444b233392f0fa825ee57037 (patch)
tree9fd6149f4d3a9002ac5f1b6affe7cef8609d5e3b /src/lib/libssl/s3_clnt.c
parentb4d8ae6f39ff2ded10621922d24e574845e23ece (diff)
downloadopenbsd-9c34b1e2279d3e55444b233392f0fa825ee57037.tar.gz
openbsd-9c34b1e2279d3e55444b233392f0fa825ee57037.tar.bz2
openbsd-9c34b1e2279d3e55444b233392f0fa825ee57037.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 'src/lib/libssl/s3_clnt.c')
-rw-r--r--src/lib/libssl/s3_clnt.c4
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);