2014-12-04
2014-12-04 19:25:10 by Henrik Grubbström (Grubba) <grubba@grubba.org>
-
118e8b8acd61a6ef0c2f24e5c78d6a30a7892647
(12 lines)
(+12/-0)
[
Show
| Annotate
]
Branch: bill/master_archive_support
SSL.https: Support ECDSA_MODE.
202: Inside #if constant(SSL.Cipher.CipherAlgorithm) and #if defined(HTTPS_CLIENT)
client(con);
return -17;
#else
+ #ifdef ECDSA_MODE
+ ecdsa = Crypto.ECC.SECP_521R1.ECDSA()->
+ set_random(Crypto.Random.random_string)->generate_key();
+ my_certificate =
+ Standards.X509.make_selfsigned_certificate(ecdsa, 3600*4, ([
+ "organizationName" : "Test",
+ "commonName" : "*",
+ ]));
+ ecdsa_mode();
+ #else
SSL3_DEBUG_MSG("Cert: '%s'\n", String.string2hex(my_certificate));
SSL3_DEBUG_MSG("Key: '%s'\n", String.string2hex(my_key));
#if 0
225:
#endif /* 0 */
// Make sure all cipher suites are available.
rsa_mode();
+ #endif
SSL3_DEBUG_MSG("Cipher suites:\n%s", fmt_cipher_suites(preferred_suites));
certificates = ({ my_certificate });
random = no_random()->read;