OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef NET_QUIC_CRYPTO_CRYPTO_HANDSHAKE_H_ | 5 #ifndef NET_QUIC_CRYPTO_CRYPTO_HANDSHAKE_H_ |
6 #define NET_QUIC_CRYPTO_CRYPTO_HANDSHAKE_H_ | 6 #define NET_QUIC_CRYPTO_CRYPTO_HANDSHAKE_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 // The source-address token has expired. | 80 // The source-address token has expired. |
81 SOURCE_ADDRESS_TOKEN_EXPIRED_FAILURE = 19, | 81 SOURCE_ADDRESS_TOKEN_EXPIRED_FAILURE = 19, |
82 | 82 |
83 // The expected leaf certificate hash could not be validated. | 83 // The expected leaf certificate hash could not be validated. |
84 INVALID_EXPECTED_LEAF_CERTIFICATE = 21, | 84 INVALID_EXPECTED_LEAF_CERTIFICATE = 21, |
85 | 85 |
86 MAX_FAILURE_REASON = 22, | 86 MAX_FAILURE_REASON = 22, |
87 }; | 87 }; |
88 | 88 |
89 // These errors will be packed into an uint32_t and we don't want to set the | 89 // These errors will be packed into an uint32_t and we don't want to set the |
90 // most | 90 // most significant bit, which may be misinterpreted as the sign bit. |
91 // significant bit, which may be misinterpreted as the sign bit. | |
92 static_assert(MAX_FAILURE_REASON <= 32, "failure reason out of sync"); | 91 static_assert(MAX_FAILURE_REASON <= 32, "failure reason out of sync"); |
93 | 92 |
94 // A CrypterPair contains the encrypter and decrypter for an encryption level. | 93 // A CrypterPair contains the encrypter and decrypter for an encryption level. |
95 struct NET_EXPORT_PRIVATE CrypterPair { | 94 struct NET_EXPORT_PRIVATE CrypterPair { |
96 CrypterPair(); | 95 CrypterPair(); |
97 ~CrypterPair(); | 96 ~CrypterPair(); |
98 scoped_ptr<QuicEncrypter> encrypter; | 97 scoped_ptr<QuicEncrypter> encrypter; |
99 scoped_ptr<QuicDecrypter> decrypter; | 98 scoped_ptr<QuicDecrypter> decrypter; |
100 }; | 99 }; |
101 | 100 |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 | 179 |
181 const CommonCertSets* common_cert_sets; | 180 const CommonCertSets* common_cert_sets; |
182 | 181 |
183 private: | 182 private: |
184 DISALLOW_COPY_AND_ASSIGN(QuicCryptoConfig); | 183 DISALLOW_COPY_AND_ASSIGN(QuicCryptoConfig); |
185 }; | 184 }; |
186 | 185 |
187 } // namespace net | 186 } // namespace net |
188 | 187 |
189 #endif // NET_QUIC_CRYPTO_CRYPTO_HANDSHAKE_H_ | 188 #endif // NET_QUIC_CRYPTO_CRYPTO_HANDSHAKE_H_ |
OLD | NEW |