Search keys from repository with KEY_AGREEMENT usage.
authorPekka Riikonen <priikone@silcnet.org>
Sun, 26 Nov 2006 10:59:40 +0000 (10:59 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Sun, 26 Nov 2006 10:59:40 +0000 (10:59 +0000)
lib/silcske/silcske.c
lib/silcske/silcske.h

index 6cfaacb35ba3b3e4aca130bc7dcd102cf7213a11..021937c81df53d4da57d5d5bf850c3c4ed71d72c 100644 (file)
@@ -1321,6 +1321,7 @@ SILC_FSM_STATE(silc_ske_st_initiator_phase3)
       silc_skr_find_set_pkcs_type(find,
                                  silc_pkcs_get_type(ske->prop->public_key));
       silc_skr_find_set_public_key(find, ske->prop->public_key);
+      silc_skr_find_set_usage(find, SILC_SKR_USAGE_KEY_AGREEMENT);
 
       /* Find key from repository */
       SILC_FSM_CALL(silc_skr_find(ske->repository, find,
@@ -1842,6 +1843,7 @@ SILC_FSM_STATE(silc_ske_st_responder_phase2)
        silc_skr_find_set_pkcs_type(find,
                                    silc_pkcs_get_type(ske->prop->public_key));
        silc_skr_find_set_public_key(find, ske->prop->public_key);
+       silc_skr_find_set_usage(find, SILC_SKR_USAGE_KEY_AGREEMENT);
 
        /* Find key from repository */
        SILC_FSM_CALL(silc_skr_find(ske->repository, find,
index 92b803f440bf05b38f08aef1d9c8ee426413ebb1..c37dcf3ac8d6acec73ff5d8739c7803e2fdc8a83 100644 (file)
@@ -136,7 +136,7 @@ typedef struct {
  * DESCRIPTION
  *
  *    This is the key material structure, and is passed as argument by the
- *    application to silc_ske_process_key_material* functions. It includes
+ *    application to silc_ske_process_key_material_data function. It includes
  *    the processed key material which can be used as SILC session keys.
  *
  * SOURCE