diff options
| author | jsing <> | 2014-12-14 16:07:26 +0000 |
|---|---|---|
| committer | jsing <> | 2014-12-14 16:07:26 +0000 |
| commit | e2ae5544583a38410ebe312a44de7b1e30c8a533 (patch) | |
| tree | 0b3f794835578b05409792e2fce6c456572f9896 /src/lib/libssl/ssl3.h | |
| parent | 0a332f7b1f3c6198783e4a2fce3186bf5914e5b9 (diff) | |
| download | openbsd-e2ae5544583a38410ebe312a44de7b1e30c8a533.tar.gz openbsd-e2ae5544583a38410ebe312a44de7b1e30c8a533.tar.bz2 openbsd-e2ae5544583a38410ebe312a44de7b1e30c8a533.zip | |
Provide functions for starting, finishing and writing SSL handshake
messages. This will allow for removal of repeated/duplicated code.
Additionally, DTLS was written by wholesale copying of the SSL/TLS code,
with some DTLS specifics being added to the duplicated code. Since these
SSL handshake message functions know how to handle both SSL/TLS and DTLS,
upon conversion the duplicate versions will become identical (or close to),
at which point the DTLS versions can be removed and the SSL/TLS versions
used for both protocols.
Partially based on similar changes in OpenSSL.
ok miod@
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libssl/ssl3.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/libssl/ssl3.h b/src/lib/libssl/ssl3.h index 9270ded96f..b5df1056ab 100644 --- a/src/lib/libssl/ssl3.h +++ b/src/lib/libssl/ssl3.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: ssl3.h,v 1.31 2014/12/14 15:30:50 jsing Exp $ */ | 1 | /* $OpenBSD: ssl3.h,v 1.32 2014/12/14 16:07:26 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 | * |
| @@ -231,9 +231,11 @@ extern "C" { | |||
| 231 | #define SSL3_RANDOM_SIZE 32 | 231 | #define SSL3_RANDOM_SIZE 32 |
| 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 | ||
| 235 | #define SSL3_CIPHER_VALUE_SIZE 2 | 234 | #define SSL3_CIPHER_VALUE_SIZE 2 |
| 236 | 235 | ||
| 236 | #define SSL3_RT_HEADER_LENGTH 5 | ||
| 237 | #define SSL3_HM_HEADER_LENGTH 4 | ||
| 238 | |||
| 237 | #ifndef SSL3_ALIGN_PAYLOAD | 239 | #ifndef SSL3_ALIGN_PAYLOAD |
| 238 | /* Some will argue that this increases memory footprint, but it's | 240 | /* Some will argue that this increases memory footprint, but it's |
| 239 | * not actually true. Point is that malloc has to return at least | 241 | * not actually true. Point is that malloc has to return at least |
