From 9c34b1e2279d3e55444b233392f0fa825ee57037 Mon Sep 17 00:00:00 2001 From: jsing <> Date: Mon, 11 Aug 2014 01:10:42 +0000 Subject: 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@ --- src/lib/libssl/ssl3.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/lib/libssl/ssl3.h') diff --git a/src/lib/libssl/ssl3.h b/src/lib/libssl/ssl3.h index 4bf36c5006..9a28b4701f 100644 --- a/src/lib/libssl/ssl3.h +++ b/src/lib/libssl/ssl3.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ssl3.h,v 1.25 2014/07/10 09:26:08 jsing Exp $ */ +/* $OpenBSD: ssl3.h,v 1.26 2014/08/11 01:10:42 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -232,6 +232,7 @@ extern "C" { #define SSL3_SEQUENCE_SIZE 8 #define SSL3_SESSION_ID_SIZE 32 #define SSL3_RT_HEADER_LENGTH 5 +#define SSL3_CIPHER_VALUE_SIZE 2 #ifndef SSL3_ALIGN_PAYLOAD /* Some will argue that this increases memory footprint, but it's -- cgit v1.2.3-55-g6feb