From: Pekka Riikonen Date: Thu, 6 Jul 2000 07:16:13 +0000 (+0000) Subject: Added SilcPublicKey's X-Git-Tag: SILC.0.1~496 X-Git-Url: http://git.silcnet.org/gitweb/?p=silc.git;a=commitdiff_plain;h=56185d87867a2bfa4855cfb591236dd05114f0f8 Added SilcPublicKey's --- diff --git a/apps/silcd/idlist.c b/apps/silcd/idlist.c index b45952a6..863d06be 100644 --- a/apps/silcd/idlist.c +++ b/apps/silcd/idlist.c @@ -20,6 +20,9 @@ /* * $Id$ * $Log$ + * Revision 1.4 2000/07/06 07:16:13 priikone + * Added SilcPublicKey's + * * Revision 1.3 2000/07/05 06:14:01 priikone * Global costemic changes. * @@ -63,7 +66,7 @@ void silc_idlist_add_server(SilcServerList **list, idlist->router = router; idlist->send_key = send_key; idlist->receive_key = receive_key; - idlist->public_key = public_key; + idlist->pkcs = public_key; idlist->hmac = hmac; idlist->next = idlist; idlist->prev = idlist; @@ -116,7 +119,7 @@ void silc_idlist_add_client(SilcClientList **list, char *nickname, idlist->router = router; idlist->send_key = send_key; idlist->receive_key = receive_key; - idlist->public_key = public_key; + idlist->pkcs = public_key; idlist->hmac = hmac; idlist->next = idlist; idlist->prev = idlist; @@ -157,8 +160,8 @@ void silc_idlist_del_client(SilcClientList **list, SilcClientList *entry) silc_cipher_free(entry->send_key); if (entry->receive_key) silc_cipher_free(entry->receive_key); - if (entry->public_key) - silc_pkcs_free(entry->public_key); + if (entry->pkcs) + silc_pkcs_free(entry->pkcs); if (entry->hmac) silc_hmac_free(entry->hmac); if (entry->hmac_key) { diff --git a/apps/silcd/idlist.h b/apps/silcd/idlist.h index b18b90dd..36ccb033 100644 --- a/apps/silcd/idlist.h +++ b/apps/silcd/idlist.h @@ -90,7 +90,8 @@ struct SilcServerListStruct { /* Keys */ SilcCipher send_key; SilcCipher receive_key; - SilcPKCS public_key; + SilcPKCS pkcs; + SilcPublicKey public_key; SilcHmac hmac; unsigned char *hmac_key; unsigned int hmac_key_len; @@ -175,9 +176,9 @@ struct SilcServerListStruct { The actual session key established by key exchange protcol between connecting parties. This is used for both encryption and decryption. - SilcPKCS public_key + SilcPKCS pkcs - Public key of the client. This maybe NULL. + PKCS of the client. This maybe NULL. SilcHmac hmac unsigned char *hmac_key @@ -210,7 +211,7 @@ struct SilcClientListStruct { /* Keys */ SilcCipher send_key; SilcCipher receive_key; - SilcPKCS public_key; + SilcPKCS pkcs; SilcHmac hmac; unsigned char *hmac_key; unsigned int hmac_key_len; @@ -385,6 +386,7 @@ typedef struct { SilcCipher send_key; SilcCipher receive_key; SilcPKCS pkcs; + SilcPublicKey public_key; SilcHmac hmac; unsigned char *hmac_key;