Take public key type from correct public key.
authorPekka Riikonen <priikone@silcnet.org>
Sun, 6 May 2007 11:28:25 +0000 (11:28 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Sun, 6 May 2007 11:28:25 +0000 (11:28 +0000)
apps/irssi/src/silc/core/silc-queries.c

index c81ae8626cbac5a25c4144e1835da23f3b37f5ec..1e7f75132230b18e746d7825f4ed9b32c89f8883 100644 (file)
@@ -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,