OLD | NEW |
---|---|
1 # Authors: | 1 # Authors: |
2 # Trevor Perrin | 2 # Trevor Perrin |
3 # Google - defining ClientCertificateType | 3 # Google - defining ClientCertificateType |
4 # Google (adapted by Sam Rushing) - NPN support | 4 # Google (adapted by Sam Rushing) - NPN support |
5 # Dimitris Moraitis - Anon ciphersuites | 5 # Dimitris Moraitis - Anon ciphersuites |
6 # Dave Baggett (Arcode Corporation) - canonicalCipherName | 6 # Dave Baggett (Arcode Corporation) - canonicalCipherName |
7 # | 7 # |
8 # See the LICENSE file for legal information regarding use of this file. | 8 # See the LICENSE file for legal information regarding use of this file. |
9 | 9 |
10 """Constants used in various places.""" | 10 """Constants used in various places.""" |
11 | 11 |
12 class CertificateType: | 12 class CertificateType: |
13 x509 = 0 | 13 x509 = 0 |
14 openpgp = 1 | 14 openpgp = 1 |
15 | 15 |
16 class ClientCertificateType: | 16 class ClientCertificateType: |
17 rsa_sign = 1 | 17 rsa_sign = 1 |
18 dss_sign = 2 | 18 dss_sign = 2 |
19 rsa_fixed_dh = 3 | 19 rsa_fixed_dh = 3 |
20 dss_fixed_dh = 4 | 20 dss_fixed_dh = 4 |
21 ecdsa_sign = 64 # RFC 4492 | |
22 rsa_fixed_ecdh = 65 # RFC 4492 | |
23 ecdsa_fixed_ecdh = 66 # RFC 4492 | |
wtc
2014/04/25 18:52:40
Nit: rather than referencing RFC 4492, you can jus
davidben
2014/04/25 20:52:31
Done.
| |
21 | 24 |
22 class HandshakeType: | 25 class HandshakeType: |
23 hello_request = 0 | 26 hello_request = 0 |
24 client_hello = 1 | 27 client_hello = 1 |
25 server_hello = 2 | 28 server_hello = 2 |
26 certificate = 11 | 29 certificate = 11 |
27 server_key_exchange = 12 | 30 server_key_exchange = 12 |
28 certificate_request = 13 | 31 certificate_request = 13 |
29 server_hello_done = 14 | 32 server_hello_done = 14 |
30 certificate_verify = 15 | 33 certificate_verify = 15 |
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
352 badUsername: "bad username",\ | 355 badUsername: "bad username",\ |
353 badPassword: "bad password",\ | 356 badPassword: "bad password",\ |
354 badA: "bad A",\ | 357 badA: "bad A",\ |
355 badPremasterPadding: "bad premaster padding",\ | 358 badPremasterPadding: "bad premaster padding",\ |
356 shortPremasterSecret: "short premaster secret",\ | 359 shortPremasterSecret: "short premaster secret",\ |
357 badVerifyMessage: "bad verify message",\ | 360 badVerifyMessage: "bad verify message",\ |
358 badFinished: "bad finished message",\ | 361 badFinished: "bad finished message",\ |
359 badMAC: "bad MAC",\ | 362 badMAC: "bad MAC",\ |
360 badPadding: "bad padding" | 363 badPadding: "bad padding" |
361 } | 364 } |
OLD | NEW |