update
authorPekka Riikonen <priikone@silcnet.org>
Tue, 5 Nov 2002 14:07:56 +0000 (14:07 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Tue, 5 Nov 2002 14:07:56 +0000 (14:07 +0000)
tutorial/mybot/mybot.c

index aea502c5ad51ea0e7e8f5c6ecb2c2477f9223075..cbb25d4d393fd0dcb249f708e972e2f2b2bc4988 100644 (file)
@@ -99,7 +99,7 @@ int mybot_start(void)
 
      Oh, and if the key pair doesn't exist, we create one here
      automatically, and save them to files for future. */
-  if (!silc_load_key_pair("mybot.pub", "mybot.prv", NULL,
+  if (!silc_load_key_pair("mybot.pub", "mybot.prv", "",
                          &mybot->client->pkcs,
                          &mybot->client->public_key,
                          &mybot->client->private_key)) {
@@ -107,7 +107,7 @@ int mybot_start(void)
        nice ready routine for that too.  Let's do 2048 bit RSA key pair. */
     fprintf(stdout, "MyBot: Key pair does not exist, generating it.\n");
     if (!silc_create_key_pair("rsa", 2048, "mybot.pub", "mybot.prv", NULL,
-                             NULL, &mybot->client->pkcs,
+                             "", &mybot->client->pkcs,
                              &mybot->client->public_key,
                              &mybot->client->private_key, FALSE)) {
       perror("Could not generated key pair");