diff options
| author | jsing <> | 2014-12-14 16:07:26 +0000 |
|---|---|---|
| committer | jsing <> | 2014-12-14 16:07:26 +0000 |
| commit | 07ed3281a22942e6f12d90c428ffd29e5f4f1ddb (patch) | |
| tree | 0b3f794835578b05409792e2fce6c456572f9896 /src/lib/libssl/ssl3.h | |
| parent | 4756f9cf06b8309fcf4d75e1791149090f6740cd (diff) | |
| download | openbsd-07ed3281a22942e6f12d90c428ffd29e5f4f1ddb.tar.gz openbsd-07ed3281a22942e6f12d90c428ffd29e5f4f1ddb.tar.bz2 openbsd-07ed3281a22942e6f12d90c428ffd29e5f4f1ddb.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 'src/lib/libssl/ssl3.h')
| -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 |
