From: Pekka Riikonen Date: Sun, 6 May 2007 11:28:25 +0000 (+0000) Subject: Take public key type from correct public key. X-Git-Tag: 1.2.beta1~339 X-Git-Url: http://git.silcnet.org/gitweb/?p=crypto.git;a=commitdiff_plain;h=d1d469b08c5e2321080c993102518953fdbfa55a Take public key type from correct public key. --- diff --git a/apps/irssi/src/silc/core/silc-queries.c b/apps/irssi/src/silc/core/silc-queries.c index c81ae862..1e7f7513 100644 --- a/apps/irssi/src/silc/core/silc-queries.c +++ b/apps/irssi/src/silc/core/silc-queries.c @@ -874,13 +874,13 @@ void silc_query_attributes_print(SILC_SERVER_REC *server, unsigned char *verifyd; SilcUInt32 verify_len; - if (!strcmp(verify->userpk.type, "silc-rsa")) + if (!strcmp(serverpk.type, "silc-rsa")) type = SILC_PKCS_SILC; - else if (!strcmp(verify->userpk.type, "ssh-rsa")) + else if (!strcmp(serverpk.type, "ssh-rsa")) type = SILC_PKCS_SSH2; - else if (!strcmp(verify->userpk.type, "x509v3-sign-rsa")) + else if (!strcmp(serverpk.type, "x509v3-sign-rsa")) type = SILC_PKCS_X509V3; - else if (!strcmp(verify->userpk.type, "pgp-sign-rsa")) + else if (!strcmp(serverpk.type, "pgp-sign-rsa")) type = SILC_PKCS_OPENPGP; if (silc_pkcs_public_key_alloc(type, serverpk.data,