diff options
author | jsing <> | 2015-09-12 15:03:39 +0000 |
---|---|---|
committer | jsing <> | 2015-09-12 15:03:39 +0000 |
commit | 55878a118f9914f78e196c906ef6d76b6f2e269c (patch) | |
tree | f43b2c4f0a83343ac09872bb9dd4075c5d209246 /src/lib/libssl/ssl_locl.h | |
parent | bb3dc274c59720dc1e231a536edf176cf9687b2e (diff) | |
download | openbsd-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.h | 3 |
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)); | |||
641 | long ssl3_ctx_callback_ctrl(SSL_CTX *s, int cmd, void (*fp)(void)); | 641 | long ssl3_ctx_callback_ctrl(SSL_CTX *s, int cmd, void (*fp)(void)); |
642 | int ssl3_pending(const SSL *s); | 642 | int ssl3_pending(const SSL *s); |
643 | 643 | ||
644 | int ssl3_handshake_msg_hdr_len(SSL *s); | ||
644 | unsigned char *ssl3_handshake_msg_start(SSL *s, uint8_t htype); | 645 | unsigned char *ssl3_handshake_msg_start(SSL *s, uint8_t htype); |
645 | void ssl3_handshake_msg_finish(SSL *s, unsigned int len); | 646 | void ssl3_handshake_msg_finish(SSL *s, unsigned int len); |
646 | int ssl3_handshake_write(SSL *s); | 647 | int ssl3_handshake_write(SSL *s); |