Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(274)

Side by Side Diff: openssl/ssl/dtls1.h

Issue 9254031: Upgrade chrome's OpenSSL to same version Android ships with. (Closed) Base URL: http://src.chromium.org/svn/trunk/deps/third_party/openssl/
Patch Set: '' Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « openssl/ssl/d1_srvr.c ('k') | openssl/ssl/fnv1a64.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « openssl/ssl/d1_srvr.c ('k') | openssl/ssl/fnv1a64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698