Use correct public key in public key auth as responder.
authorPekka Riikonen <priikone@silcnet.org>
Sun, 11 Nov 2007 11:19:40 +0000 (11:19 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Sun, 11 Nov 2007 11:19:40 +0000 (11:19 +0000)
lib/silcske/silcconnauth.c

index c3799a8187ead72e327813bf6c7e6b76fb8bf84b..70cc29680181e9b314baf92e647a252c6902ff60 100644 (file)
@@ -597,8 +597,9 @@ SILC_FSM_STATE(silc_connauth_st_responder_authenticate)
       return SILC_FSM_CONTINUE;
     }
 
-    silc_skr_find_set_pkcs_type(find, connauth->ske->pk_type);
-    silc_skr_find_set_public_key(find, connauth->ske->public_key);
+    silc_skr_find_set_pkcs_type(
+                 find, silc_pkcs_get_type(connauth->ske->prop->public_key));
+    silc_skr_find_set_public_key(find, connauth->ske->prop->public_key);
     silc_skr_find_set_usage(find, (SILC_SKR_USAGE_AUTH |
                                   SILC_SKR_USAGE_KEY_AGREEMENT));
 
@@ -652,6 +653,8 @@ SILC_FSM_STATE(silc_connauth_st_responder_authenticate_pk)
 
   silc_free(connauth->auth_data);
 
+  SILC_LOG_DEBUG(("Signature is Ok"));
+
   /** Authentication successful */
   silc_fsm_next(fsm, silc_connauth_st_responder_success);
   return SILC_FSM_CONTINUE;