| 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 # http://www.iana.org/assignments/tls-parameters/tls-parameters.xhtml#tls-pa
rameters-2 |
| 17 rsa_sign = 1 | 18 rsa_sign = 1 |
| 18 dss_sign = 2 | 19 dss_sign = 2 |
| 19 rsa_fixed_dh = 3 | 20 rsa_fixed_dh = 3 |
| 20 dss_fixed_dh = 4 | 21 dss_fixed_dh = 4 |
| 22 ecdsa_sign = 64 |
| 23 rsa_fixed_ecdh = 65 |
| 24 ecdsa_fixed_ecdh = 66 |
| 21 | 25 |
| 22 class HandshakeType: | 26 class HandshakeType: |
| 23 hello_request = 0 | 27 hello_request = 0 |
| 24 client_hello = 1 | 28 client_hello = 1 |
| 25 server_hello = 2 | 29 server_hello = 2 |
| 26 certificate = 11 | 30 certificate = 11 |
| 27 server_key_exchange = 12 | 31 server_key_exchange = 12 |
| 28 certificate_request = 13 | 32 certificate_request = 13 |
| 29 server_hello_done = 14 | 33 server_hello_done = 14 |
| 30 certificate_verify = 15 | 34 certificate_verify = 15 |
| (...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 352 badUsername: "bad username",\ | 356 badUsername: "bad username",\ |
| 353 badPassword: "bad password",\ | 357 badPassword: "bad password",\ |
| 354 badA: "bad A",\ | 358 badA: "bad A",\ |
| 355 badPremasterPadding: "bad premaster padding",\ | 359 badPremasterPadding: "bad premaster padding",\ |
| 356 shortPremasterSecret: "short premaster secret",\ | 360 shortPremasterSecret: "short premaster secret",\ |
| 357 badVerifyMessage: "bad verify message",\ | 361 badVerifyMessage: "bad verify message",\ |
| 358 badFinished: "bad finished message",\ | 362 badFinished: "bad finished message",\ |
| 359 badMAC: "bad MAC",\ | 363 badMAC: "bad MAC",\ |
| 360 badPadding: "bad padding" | 364 badPadding: "bad padding" |
| 361 } | 365 } |
| OLD | NEW |