projects
/
silc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8b519f9
)
update
author
Pekka Riikonen
<priikone@silcnet.org>
Tue, 5 Nov 2002 14:07:56 +0000
(14:07 +0000)
committer
Pekka Riikonen
<priikone@silcnet.org>
Tue, 5 Nov 2002 14:07:56 +0000
(14:07 +0000)
tutorial/mybot/mybot.c
patch
|
blob
|
history
diff --git
a/tutorial/mybot/mybot.c
b/tutorial/mybot/mybot.c
index aea502c5ad51ea0e7e8f5c6ecb2c2477f9223075..cbb25d4d393fd0dcb249f708e972e2f2b2bc4988 100644
(file)
--- 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. */
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)) {
&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,
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");
&mybot->client->public_key,
&mybot->client->private_key, FALSE)) {
perror("Could not generated key pair");