Fixed message signature crash.
authorPekka Riikonen <priikone@silcnet.org>
Sun, 10 Dec 2006 16:11:30 +0000 (16:11 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Sun, 10 Dec 2006 16:11:30 +0000 (16:11 +0000)
lib/silccore/silcmessage.c

index e7f06c0ee2f158b0ab979c50e649ac2103019743..be06879ec99bbdd357afebd152dce2bb09dc30a7 100644 (file)
@@ -192,7 +192,7 @@ silc_message_signed_payload_encode(const unsigned char *message_payload,
     if (!pk)
       return NULL;
   }
-  pk_type = silc_pkcs_get_type(public_key);
+  pk_type = silc_pkcs_get_type(private_key);
 
   /* Encode the data to be signed */
   sign = silc_message_signed_encode_data(message_payload,