Default RSA key length is 2048 bits (old 1024 bits).
[silc.git] / apps / irssi / src / silc / core / clientutil.c
index f9699738eeee47aa421b31106fbd9ac007aa3982..f660af3bff5bc2df25dd2ec4c3731626d8d49b78 100644 (file)
@@ -157,9 +157,9 @@ New pair of keys will be created.  Please, answer to following questions.\n\
 
   if (!bits) {
     char *length = NULL;
-    length = silc_get_input("Key length in bits [1024]: ", FALSE);
+    length = silc_get_input("Key length in bits [2048]: ", FALSE);
     if (!length)
-      bits = 1024;
+      bits = 2048;
     else
       bits = atoi(length);
   }
@@ -217,7 +217,7 @@ New pair of keys will be created.  Please, answer to following questions.\n\
 
   /* Save public key into file */
   key = silc_pkcs_get_public_key(pkcs, &key_len);
-  pub_key = silc_pkcs_public_key_alloc(pkcs->pkcs->name, identifier,
+  pub_key = silc_pkcs_public_key_alloc(silc_pkcs_get_name(pkcs), identifier,
                                       key, key_len);
   silc_pkcs_save_public_key(pkfile, pub_key, SILC_PKCS_FILE_PEM);
   if (ret_pub_key)
@@ -228,8 +228,8 @@ New pair of keys will be created.  Please, answer to following questions.\n\
 
   /* Save private key into file */
   key = silc_pkcs_get_private_key(pkcs, &key_len);
-  prv_key = silc_pkcs_private_key_alloc(pkcs->pkcs->name, key, key_len);
-
+  prv_key = silc_pkcs_private_key_alloc(silc_pkcs_get_name(pkcs),
+                                       key, key_len);
   silc_pkcs_save_private_key(prvfile, prv_key, NULL, SILC_PKCS_FILE_BIN);
   if (ret_prv_key)
     *ret_prv_key = prv_key;