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

Side by Side Diff: third_party/tlslite/tlslite/constants.py

Issue 92443002: Extract Certificate Transparency SCTs from stapled OCSP responses (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@extract_scts
Patch Set: Fix C++11 compile error Created 7 years 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
« no previous file with comments | « third_party/tlslite/tlslite/TLSConnection.py ('k') | third_party/tlslite/tlslite/messages.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 """Constants used in various places.""" 1 """Constants used in various places."""
2 2
3 class CertificateType: 3 class CertificateType:
4 x509 = 0 4 x509 = 0
5 openpgp = 1 5 openpgp = 1
6 cryptoID = 2 6 cryptoID = 2
7 7
8 class ClientCertificateType: 8 class ClientCertificateType:
9 rsa_sign = 1 9 rsa_sign = 1
10 dss_sign = 2 10 dss_sign = 2
11 rsa_fixed_dh = 3 11 rsa_fixed_dh = 3
12 dss_fixed_dh = 4 12 dss_fixed_dh = 4
13 13
14 class HandshakeType: 14 class HandshakeType:
15 hello_request = 0 15 hello_request = 0
16 client_hello = 1 16 client_hello = 1
17 server_hello = 2 17 server_hello = 2
18 certificate = 11 18 certificate = 11
19 server_key_exchange = 12 19 server_key_exchange = 12
20 certificate_request = 13 20 certificate_request = 13
21 server_hello_done = 14 21 server_hello_done = 14
22 certificate_verify = 15 22 certificate_verify = 15
23 client_key_exchange = 16 23 client_key_exchange = 16
24 finished = 20 24 finished = 20
25 certificate_status = 22
25 encrypted_extensions = 203 26 encrypted_extensions = 203
26 27
27 class ContentType: 28 class ContentType:
28 change_cipher_spec = 20 29 change_cipher_spec = 20
29 alert = 21 30 alert = 21
30 handshake = 22 31 handshake = 22
31 application_data = 23 32 application_data = 23
32 all = (20,21,22,23) 33 all = (20,21,22,23)
33 34
35 class CertificateStatusType:
36 ocsp = 1
37
34 class ExtensionType: 38 class ExtensionType:
39 status_request = 5 # OCSP stapling
35 signed_cert_timestamps = 18 # signed_certificate_timestamp in RFC 6962 40 signed_cert_timestamps = 18 # signed_certificate_timestamp in RFC 6962
36 channel_id = 30031 41 channel_id = 30031
37 42
38 class AlertLevel: 43 class AlertLevel:
39 warning = 1 44 warning = 1
40 fatal = 2 45 fatal = 2
41 46
42 class AlertDescription: 47 class AlertDescription:
43 """ 48 """
44 @cvar bad_record_mac: A TLS record failed to decrypt properly. 49 @cvar bad_record_mac: A TLS record failed to decrypt properly.
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 badA: "bad A",\ 233 badA: "bad A",\
229 badIdentifier: "bad identifier",\ 234 badIdentifier: "bad identifier",\
230 badSharedKey: "bad sharedkey",\ 235 badSharedKey: "bad sharedkey",\
231 badPremasterPadding: "bad premaster padding",\ 236 badPremasterPadding: "bad premaster padding",\
232 shortPremasterSecret: "short premaster secret",\ 237 shortPremasterSecret: "short premaster secret",\
233 badVerifyMessage: "bad verify message",\ 238 badVerifyMessage: "bad verify message",\
234 badFinished: "bad finished message",\ 239 badFinished: "bad finished message",\
235 badMAC: "bad MAC",\ 240 badMAC: "bad MAC",\
236 badPadding: "bad padding" 241 badPadding: "bad padding"
237 } 242 }
OLDNEW
« no previous file with comments | « third_party/tlslite/tlslite/TLSConnection.py ('k') | third_party/tlslite/tlslite/messages.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698