| OLD | NEW |
| 1 /* ssl/dtls1.h */ | 1 /* ssl/dtls1.h */ |
| 2 /* | 2 /* |
| 3 * DTLS implementation written by Nagendra Modadugu | 3 * DTLS implementation written by Nagendra Modadugu |
| 4 * (nagendra@cs.stanford.edu) for the OpenSSL project 2005. | 4 * (nagendra@cs.stanford.edu) for the OpenSSL project 2005. |
| 5 */ | 5 */ |
| 6 /* ==================================================================== | 6 /* ==================================================================== |
| 7 * Copyright (c) 1999-2005 The OpenSSL Project. All rights reserved. | 7 * Copyright (c) 1999-2005 The OpenSSL Project. All rights reserved. |
| 8 * | 8 * |
| 9 * Redistribution and use in source and binary forms, with or without | 9 * Redistribution and use in source and binary forms, with or without |
| 10 * modification, are permitted provided that the following conditions | 10 * modification, are permitted provided that the following conditions |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 | 101 |
| 102 #ifdef DTLS1_AD_MISSING_HANDSHAKE_MESSAGE | 102 #ifdef DTLS1_AD_MISSING_HANDSHAKE_MESSAGE |
| 103 #define DTLS1_AL_HEADER_LENGTH 7 | 103 #define DTLS1_AL_HEADER_LENGTH 7 |
| 104 #else | 104 #else |
| 105 #define DTLS1_AL_HEADER_LENGTH 2 | 105 #define DTLS1_AL_HEADER_LENGTH 2 |
| 106 #endif | 106 #endif |
| 107 | 107 |
| 108 | 108 |
| 109 typedef struct dtls1_bitmap_st | 109 typedef struct dtls1_bitmap_st |
| 110 { | 110 { |
| 111 » PQ_64BIT map; | 111 » unsigned long map;» » /* track 32 packets on 32-bit systems |
| 112 » unsigned long length; /* sizeof the bitmap in bits */ | 112 » » » » » and 64 - on 64-bit systems */ |
| 113 » PQ_64BIT max_seq_num; /* max record number seen so far */ | 113 » unsigned char max_seq_num[8];» /* max record number seen so far, |
| 114 » » » » » 64-bit value in big-endian |
| 115 » » » » » encoding */ |
| 114 } DTLS1_BITMAP; | 116 } DTLS1_BITMAP; |
| 115 | 117 |
| 116 struct dtls1_retransmit_state | 118 struct dtls1_retransmit_state |
| 117 { | 119 { |
| 118 EVP_CIPHER_CTX *enc_write_ctx; /* cryptographic state */ | 120 EVP_CIPHER_CTX *enc_write_ctx; /* cryptographic state */ |
| 119 » const EVP_MD *write_hash;» » /* used for mac generation */ | 121 » EVP_MD_CTX *write_hash;»» » /* used for mac generation */ |
| 120 #ifndef OPENSSL_NO_COMP | 122 #ifndef OPENSSL_NO_COMP |
| 121 COMP_CTX *compress; /* compression */ | 123 COMP_CTX *compress; /* compression */ |
| 122 #else | 124 #else |
| 123 char *compress; | 125 char *compress; |
| 124 #endif | 126 #endif |
| 125 SSL_SESSION *session; | 127 SSL_SESSION *session; |
| 126 unsigned short epoch; | 128 unsigned short epoch; |
| 127 }; | 129 }; |
| 128 | 130 |
| 129 struct hm_header_st | 131 struct hm_header_st |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 #define DTLS1_TMO_READ_COUNT 2 | 258 #define DTLS1_TMO_READ_COUNT 2 |
| 257 #define DTLS1_TMO_WRITE_COUNT 2 | 259 #define DTLS1_TMO_WRITE_COUNT 2 |
| 258 | 260 |
| 259 #define DTLS1_TMO_ALERT_COUNT 12 | 261 #define DTLS1_TMO_ALERT_COUNT 12 |
| 260 | 262 |
| 261 #ifdef __cplusplus | 263 #ifdef __cplusplus |
| 262 } | 264 } |
| 263 #endif | 265 #endif |
| 264 #endif | 266 #endif |
| 265 | 267 |
| OLD | NEW |