default to 2k rsa keys, for performance reasons you might want to generate 1k rsa keys though

This commit is contained in:
Love Hornquist Astrand
2010-10-03 14:58:18 -07:00
parent 5cc4d5d2bd
commit 97390e087d

View File

@@ -812,7 +812,7 @@ rsa_generate_private_key(hx509_context context,
unsigned long bits; unsigned long bits;
static const int default_rsa_e = 65537; static const int default_rsa_e = 65537;
static const int default_rsa_bits = 1024; static const int default_rsa_bits = 2048;
private_key->private_key.rsa = RSA_new(); private_key->private_key.rsa = RSA_new();
if (private_key->private_key.rsa == NULL) { if (private_key->private_key.rsa == NULL) {