projects
/
runtime.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f6db2a9
)
Global costemic changes.
author
Pekka Riikonen
<priikone@silcnet.org>
Wed, 5 Jul 2000 06:14:01 +0000
(06:14 +0000)
committer
Pekka Riikonen
<priikone@silcnet.org>
Wed, 5 Jul 2000 06:14:01 +0000
(06:14 +0000)
apps/silcd/command_reply.c
patch
|
blob
|
history
apps/silcd/idlist.c
patch
|
blob
|
history
apps/silcd/route.c
patch
|
blob
|
history
apps/silcd/server.c
patch
|
blob
|
history
apps/silcd/server_version.c
patch
|
blob
|
history
apps/silcd/serverconfig.c
patch
|
blob
|
history
apps/silcd/silcd.c
patch
|
blob
|
history
diff --git
a/apps/silcd/command_reply.c
b/apps/silcd/command_reply.c
index 1c49b82f9d5bc10109931272696a47aec490efd3..9bf7e1c77d1014e5601434386261fc39440951e6 100644
(file)
--- a/
apps/silcd/command_reply.c
+++ b/
apps/silcd/command_reply.c
@@
-20,11
+20,14
@@
/*
* $Id$
* $Log$
/*
* $Id$
* $Log$
+ * Revision 1.3 2000/07/05 06:14:01 priikone
+ * Global costemic changes.
+ *
* Revision 1.2 2000/07/03 05:52:22 priikone
* Implemented LEAVE command.
*
* Revision 1.1.1.1 2000/06/27 11:36:56 priikone
* Revision 1.2 2000/07/03 05:52:22 priikone
* Implemented LEAVE command.
*
* Revision 1.1.1.1 2000/06/27 11:36:56 priikone
- * Importe
t
from internal CVS/Added Log headers.
+ * Importe
d
from internal CVS/Added Log headers.
*
*
*/
*
*
*/
diff --git
a/apps/silcd/idlist.c
b/apps/silcd/idlist.c
index bc79e9dfd656733a5e8390155bb67cfc040364f3..b45952a6e908d7c0ae8485ebb74ad7f471f2fc09 100644
(file)
--- a/
apps/silcd/idlist.c
+++ b/
apps/silcd/idlist.c
@@
-20,11
+20,14
@@
/*
* $Id$
* $Log$
/*
* $Id$
* $Log$
+ * Revision 1.3 2000/07/05 06:14:01 priikone
+ * Global costemic changes.
+ *
* Revision 1.2 2000/07/03 05:52:11 priikone
* Fixed typo and a bug.
*
* Revision 1.1.1.1 2000/06/27 11:36:56 priikone
* Revision 1.2 2000/07/03 05:52:11 priikone
* Fixed typo and a bug.
*
* Revision 1.1.1.1 2000/06/27 11:36:56 priikone
- * Importe
t
from internal CVS/Added Log headers.
+ * Importe
d
from internal CVS/Added Log headers.
*
*
*/
*
*
*/
diff --git
a/apps/silcd/route.c
b/apps/silcd/route.c
index 98520474bc39177a7733db71ed2f79a15652fb80..a46ed51fe44e207ec6829b3b38f7521db2038a9a 100644
(file)
--- a/
apps/silcd/route.c
+++ b/
apps/silcd/route.c
@@
-25,12
+25,15
@@
/*
* $Id$
* $Log$
/*
* $Id$
* $Log$
+ * Revision 1.3 2000/07/05 06:14:01 priikone
+ * Global costemic changes.
+ *
* Revision 1.2 2000/07/04 08:30:24 priikone
* Added silc_server_get_route to return communication object
* for fastest route.
*
* Revision 1.1.1.1 2000/06/27 11:36:56 priikone
* Revision 1.2 2000/07/04 08:30:24 priikone
* Added silc_server_get_route to return communication object
* for fastest route.
*
* Revision 1.1.1.1 2000/06/27 11:36:56 priikone
- * Importe
t
from internal CVS/Added Log headers.
+ * Importe
d
from internal CVS/Added Log headers.
*
*
*/
*
*
*/
diff --git
a/apps/silcd/server.c
b/apps/silcd/server.c
index 372087ac0caf4a4cafae2b24902995d7b56c0e34..d0a1ccfb22e941073da44059611d5b0e599b2d3b 100644
(file)
--- a/
apps/silcd/server.c
+++ b/
apps/silcd/server.c
@@
-25,12
+25,15
@@
/*
* $Id$
* $Log$
/*
* $Id$
* $Log$
+ * Revision 1.4 2000/07/05 06:14:01 priikone
+ * Global costemic changes.
+ *
* Revision 1.3 2000/07/04 08:13:53 priikone
* Changed message route discovery to use silc_server_get_route.
* Added silc_server_client_on_channel function.
*
* Revision 1.1.1.1 2000/06/27 11:36:56 priikone
* Revision 1.3 2000/07/04 08:13:53 priikone
* Changed message route discovery to use silc_server_get_route.
* Added silc_server_client_on_channel function.
*
* Revision 1.1.1.1 2000/06/27 11:36:56 priikone
- * Importe
t
from internal CVS/Added Log headers.
+ * Importe
d
from internal CVS/Added Log headers.
*
*
*/
*
*
*/
@@
-160,6
+163,8
@@
int silc_server_init(SilcServer server)
unsigned char *public_key;
unsigned char *private_key;
unsigned int pk_len, prv_len;
unsigned char *public_key;
unsigned char *private_key;
unsigned int pk_len, prv_len;
+ SilcPublicKey pub_key;
+ SilcPrivateKey prv_key;
if (silc_pkcs_alloc("rsa", &server->public_key) == FALSE) {
SILC_LOG_ERROR(("Could not create RSA key pair"));
if (silc_pkcs_alloc("rsa", &server->public_key) == FALSE) {
SILC_LOG_ERROR(("Could not create RSA key pair"));
@@
-182,14
+187,20
@@
int silc_server_init(SilcServer server)
SILC_LOG_HEXDUMP(("public key"), public_key, pk_len);
SILC_LOG_HEXDUMP(("private key"), private_key, prv_len);
SILC_LOG_HEXDUMP(("public key"), public_key, pk_len);
SILC_LOG_HEXDUMP(("private key"), private_key, prv_len);
+ pub_key = silc_pkcs_public_key_alloc("rsa", "UN=root, HN=dummy",
+ public_key, pk_len);
+ prv_key = silc_pkcs_private_key_alloc("rsa", private_key, prv_len);
+
/* XXX Save keys */
/* XXX Save keys */
- silc_pkcs_save_public_key(
server->public_key, "pubkey.pub",
-
public_key, pk_len
);
+ silc_pkcs_save_public_key(
"pubkey.pub", pub_key);
+
silc_pkcs_save_private_key("privkey.prv", prv_key, NULL
);
memset(public_key, 0, pk_len);
memset(private_key, 0, prv_len);
silc_free(public_key);
silc_free(private_key);
memset(public_key, 0, pk_len);
memset(private_key, 0, prv_len);
silc_free(public_key);
silc_free(private_key);
+ silc_pkcs_public_key_free(pub_key);
+ silc_pkcs_private_key_free(prv_key);
}
/* Create a listening server. Note that our server can listen on
}
/* Create a listening server. Note that our server can listen on
diff --git
a/apps/silcd/server_version.c
b/apps/silcd/server_version.c
index 905750b2aa8b1608efbd680d6cbeff843005db49..7f392c4d619c308d0f05d817600dbda314717d8e 100644
(file)
--- a/
apps/silcd/server_version.c
+++ b/
apps/silcd/server_version.c
@@
-20,4
+20,4
@@
#include "serverincludes.h"
#include "serverincludes.h"
-const char server_version[] = "
2806
2000";
+const char server_version[] = "
0707
2000";
diff --git
a/apps/silcd/serverconfig.c
b/apps/silcd/serverconfig.c
index 326c133614a1543c82178746bf4748c8a85f0f85..0e95bd801cc76fe7c775e9ef1981563d79232bab 100644
(file)
--- a/
apps/silcd/serverconfig.c
+++ b/
apps/silcd/serverconfig.c
@@
-20,8
+20,11
@@
/*
* $Id$
* $Log$
/*
* $Id$
* $Log$
- * Revision 1.1 2000/06/27 11:36:56 priikone
- * Initial revision
+ * Revision 1.2 2000/07/05 06:14:01 priikone
+ * Global costemic changes.
+ *
+ * Revision 1.1.1.1 2000/06/27 11:36:56 priikone
+ * Imported from internal CVS/Added Log headers.
*
*
*/
*
*
*/
@@
-305,7
+308,7
@@
int silc_config_server_parse(SilcConfigServer config, SilcBuffer buffer,
/* Check for matching sections */
for (cptr = silc_config_server_sections; cptr->section; cptr++)
/* Check for matching sections */
for (cptr = silc_config_server_sections; cptr->section; cptr++)
- if (!str
cmp(cp, cptr->section
))
+ if (!str
ncasecmp(cp, cptr->section, strlen(cptr->section)
))
break;
if (!cptr->section) {
break;
if (!cptr->section) {
diff --git
a/apps/silcd/silcd.c
b/apps/silcd/silcd.c
index 584141dbd5d299e142dbcd6d777d552a44375d9a..ca2e5b88ac65dcf10bea045a0739d54028931fd5 100644
(file)
--- a/
apps/silcd/silcd.c
+++ b/
apps/silcd/silcd.c
@@
-26,8
+26,11
@@
/*
* $Id$
* $Log$
/*
* $Id$
* $Log$
- * Revision 1.1 2000/06/27 11:36:56 priikone
- * Initial revision
+ * Revision 1.2 2000/07/05 06:14:01 priikone
+ * Global costemic changes.
+ *
+ * Revision 1.1.1.1 2000/06/27 11:36:56 priikone
+ * Imported from internal CVS/Added Log headers.
*
*
*/
*
*
*/