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

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: review comments 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
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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 badA: "bad A",\ 232 badA: "bad A",\
228 badIdentifier: "bad identifier",\ 233 badIdentifier: "bad identifier",\
229 badSharedKey: "bad sharedkey",\ 234 badSharedKey: "bad sharedkey",\
230 badPremasterPadding: "bad premaster padding",\ 235 badPremasterPadding: "bad premaster padding",\
231 shortPremasterSecret: "short premaster secret",\ 236 shortPremasterSecret: "short premaster secret",\
232 badVerifyMessage: "bad verify message",\ 237 badVerifyMessage: "bad verify message",\
233 badFinished: "bad finished message",\ 238 badFinished: "bad finished message",\
234 badMAC: "bad MAC",\ 239 badMAC: "bad MAC",\
235 badPadding: "bad padding" 240 badPadding: "bad padding"
236 } 241 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698