From: Pekka Riikonen Date: Tue, 5 Nov 2002 14:07:56 +0000 (+0000) Subject: update X-Git-Tag: 1.2.beta1~924 X-Git-Url: http://git.silcnet.org/gitweb/?a=commitdiff_plain;h=86b27b598786e41e8e004467eb053220a580cdb1;p=runtime.git update --- diff --git a/tutorial/mybot/mybot.c b/tutorial/mybot/mybot.c index aea502c5..cbb25d4d 100644 --- a/tutorial/mybot/mybot.c +++ b/tutorial/mybot/mybot.c @@ -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");