projects
/
silc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added SILC Thread Queue API
[silc.git]
/
lib
/
silcskr
/
silcskr.c
diff --git
a/lib/silcskr/silcskr.c
b/lib/silcskr/silcskr.c
index c61ac5fbfa51ea50aefcde55cfa0af230306bf12..7459d43242a02a9f49eb4d3aec58c6604cc176e0 100644
(file)
--- a/
lib/silcskr/silcskr.c
+++ b/
lib/silcskr/silcskr.c
@@
-168,7
+168,7
@@
static SilcUInt32 silc_skr_hash(void *key, void *user_context)
break;
}
break;
}
- return type->type + silc_hash_string(type->data, user_context);
+ return type->type + silc_hash_string
_case
(type->data, user_context);
}
/* Hash table comparison function for key entries */
}
/* Hash table comparison function for key entries */
@@
-492,6
+492,9
@@
static SilcSKRStatus silc_skr_add_silc_simple(SilcSKR skr,
{
SilcSKRKeyInternal key;
SilcSKRStatus status = SILC_SKR_ERROR;
{
SilcSKRKeyInternal key;
SilcSKRStatus status = SILC_SKR_ERROR;
+#if defined(SILC_DEBUG)
+ char tmp[256];
+#endif /* SILC_DEBUG */
SILC_LOG_DEBUG(("Adding SILC public key"));
SILC_LOG_DEBUG(("Adding SILC public key"));
@@
-516,6
+519,12
@@
static SilcSKRStatus silc_skr_add_silc_simple(SilcSKR skr,
key->key.key = public_key;
key->key.key_context = key_context;
key->key.key = public_key;
key->key.key_context = key_context;
+#if defined(SILC_DEBUG)
+ silc_skr_type_string(SILC_SKR_FIND_USAGE, SILC_32_TO_PTR(usage),
+ tmp, sizeof(tmp) - 1);
+ SILC_LOG_DEBUG(("Search cons %s", tmp));
+#endif /* SILC_DEBUG */
+
/* Add key specifics */
if (!silc_skr_add_entry(skr, SILC_SKR_FIND_PUBLIC_KEY,
/* Add key specifics */
if (!silc_skr_add_entry(skr, SILC_SKR_FIND_PUBLIC_KEY,