cleanups
authorPekka Riikonen <priikone@silcnet.org>
Wed, 6 Nov 2002 08:24:40 +0000 (08:24 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Wed, 6 Nov 2002 08:24:40 +0000 (08:24 +0000)
tutorial/mybot/mybot.c

index cbb25d4d393fd0dcb249f708e972e2f2b2bc4988..f6297c4481fd2b1672c1e2205d8d411ec7b59ead 100644 (file)
@@ -73,8 +73,7 @@ int mybot_start(void)
      application   - our application, ie. the MyBot of course!
      version       - silc version, provided by the library if we put NULL
   */
-  mybot->client = silc_client_alloc(&ops, NULL, mybot,
-                                   /* NULL */"SILC-1.1-0.9.4");
+  mybot->client = silc_client_alloc(&ops, NULL, mybot, NULL);
   if (!mybot->client) {
     perror("Could not allocate SILC Client");
     return 1;
@@ -106,8 +105,8 @@ int mybot_start(void)
     /* The keys don't exist.  Let's generate us a key pair then!  There's
        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,
-                             "", &mybot->client->pkcs,
+    if (!silc_create_key_pair("rsa", 2048, "mybot.pub", "mybot.prv", NULL, "",
+                             &mybot->client->pkcs,
                              &mybot->client->public_key,
                              &mybot->client->private_key, FALSE)) {
       perror("Could not generated key pair");