2014-01-14
2014-01-14 13:17:54 by Henrik Grubbström (Grubba) <grubba@grubba.org>
-
db61eebff98db33b6e41cad85c51a9d1f14e7f56
(12 lines)
(+12/-0)
[
Show
| Annotate
]
Branch: 8.0
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;