summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_locl.h
diff options
context:
space:
mode:
authorjsing <>2015-09-12 15:03:39 +0000
committerjsing <>2015-09-12 15:03:39 +0000
commit55878a118f9914f78e196c906ef6d76b6f2e269c (patch)
treef43b2c4f0a83343ac09872bb9dd4075c5d209246 /src/lib/libssl/ssl_locl.h
parentbb3dc274c59720dc1e231a536edf176cf9687b2e (diff)
downloadopenbsd-55878a118f9914f78e196c906ef6d76b6f2e269c.tar.gz
openbsd-55878a118f9914f78e196c906ef6d76b6f2e269c.tar.bz2
openbsd-55878a118f9914f78e196c906ef6d76b6f2e269c.zip
Move handshake message header length determination into a separate
ssl3_handshake_msg_hdr_len() function. Use this to correct several places that have magic numbers with header lengths hardcoded as '4'. ok beck@
Diffstat (limited to 'src/lib/libssl/ssl_locl.h')
-rw-r--r--src/lib/libssl/ssl_locl.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/libssl/ssl_locl.h b/src/lib/libssl/ssl_locl.h
index 130482dbba..cb7889ffb7 100644
--- a/src/lib/libssl/ssl_locl.h
+++ b/src/lib/libssl/ssl_locl.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl_locl.h,v 1.126 2015/09/12 14:32:24 jsing Exp $ */ 1/* $OpenBSD: ssl_locl.h,v 1.127 2015/09/12 15:03:39 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 *
@@ -641,6 +641,7 @@ long ssl3_callback_ctrl(SSL *s, int cmd, void (*fp)(void));
641long ssl3_ctx_callback_ctrl(SSL_CTX *s, int cmd, void (*fp)(void)); 641long ssl3_ctx_callback_ctrl(SSL_CTX *s, int cmd, void (*fp)(void));
642int ssl3_pending(const SSL *s); 642int ssl3_pending(const SSL *s);
643 643
644int ssl3_handshake_msg_hdr_len(SSL *s);
644unsigned char *ssl3_handshake_msg_start(SSL *s, uint8_t htype); 645unsigned char *ssl3_handshake_msg_start(SSL *s, uint8_t htype);
645void ssl3_handshake_msg_finish(SSL *s, unsigned int len); 646void ssl3_handshake_msg_finish(SSL *s, unsigned int len);
646int ssl3_handshake_write(SSL *s); 647int ssl3_handshake_write(SSL *s);