From: Pekka Riikonen Date: Sun, 26 Nov 2006 10:59:40 +0000 (+0000) Subject: Search keys from repository with KEY_AGREEMENT usage. X-Git-Tag: silc.client.1.1.beta1~174 X-Git-Url: http://git.silcnet.org/gitweb/?p=silc.git;a=commitdiff_plain;h=bb18c1721daf2844ecc160711f3e953d45459b7e Search keys from repository with KEY_AGREEMENT usage. --- diff --git a/lib/silcske/silcske.c b/lib/silcske/silcske.c index 6cfaacb3..021937c8 100644 --- a/lib/silcske/silcske.c +++ b/lib/silcske/silcske.c @@ -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, diff --git a/lib/silcske/silcske.h b/lib/silcske/silcske.h index 92b803f4..c37dcf3a 100644 --- a/lib/silcske/silcske.h +++ b/lib/silcske/silcske.h @@ -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