summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl3.h
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/ssl3.h
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/ssl3.h')
-rw-r--r--src/lib/libssl/ssl3.h3
1 files changed, 2 insertions, 1 deletions
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 @@
1/* $OpenBSD: ssl3.h,v 1.25 2014/07/10 09:26:08 jsing Exp $ */ 1/* $OpenBSD: ssl3.h,v 1.26 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 *
@@ -232,6 +232,7 @@ extern "C" {
232#define SSL3_SEQUENCE_SIZE 8 232#define SSL3_SEQUENCE_SIZE 8
233#define SSL3_SESSION_ID_SIZE 32 233#define SSL3_SESSION_ID_SIZE 32
234#define SSL3_RT_HEADER_LENGTH 5 234#define SSL3_RT_HEADER_LENGTH 5
235#define SSL3_CIPHER_VALUE_SIZE 2
235 236
236#ifndef SSL3_ALIGN_PAYLOAD 237#ifndef SSL3_ALIGN_PAYLOAD
237 /* Some will argue that this increases memory footprint, but it's 238 /* Some will argue that this increases memory footprint, but it's