Currently, ssl3_put_char_by_bytes(NULL, NULL) is just a long handed way
authorjsing <jsing@openbsd.org>
Mon, 11 Aug 2014 01:10:42 +0000 (01:10 +0000)
committerjsing <jsing@openbsd.org>
Mon, 11 Aug 2014 01:10:42 +0000 (01:10 +0000)
commite4f3aecf84380776b7ab1eacafa776885b3f8550
treed56f0ba51263c2500ebdeb49c9bfd633bfe7f68f
parentba83acf62b74ac38323cdf014409e05439e107e0
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@
lib/libssl/s3_clnt.c
lib/libssl/src/ssl/s3_clnt.c
lib/libssl/src/ssl/ssl3.h
lib/libssl/src/ssl/ssl_lib.c
lib/libssl/ssl3.h
lib/libssl/ssl_lib.c