Copyright © 2001 - 2002 SILC Project SILC Project Website | SILC Toolkit Reference Manual Index

SILC Toolkit Reference Manual SILC Core Library SILC Authentication Interface SILC Message Interface SILC Channel Interface SILC Command Interface SILC Notify Interface SILC Status Types SILC Modes SILC ID Interface SILC ID Cache Interface SILC Argument Interface SILC Attributes Interface Packet Protocol Interface SILC Math Library SILC MP Interface SILC Math Interface SILC SFTP Library SILC SFTP Interface SFTP Filesystems Interface SILC Utility Library Basic SILC Types SILC Buffer Interface SILC Buffer Format Interface SILC Hash Table Interface SILC Logging Interface SILC Memory Interface SILC Mutex Interface SILC Thread Interface SILC Network Interface SILC Schedule Interface SILC Socket Interface SILC Protocol Interface SILC Config Interface SILC File Util Interface SILC String Util Interface SILC Util Interface SILC List Interface SILC Dynamic List Interface SILC VCard Interface SILC Application Utilities SILC Key Exchange Library SILC SKE Interface SKE Status Types SKE Diffie Hellman Groups SKE Payloads SILC Client Library Using SILC Client Library Tutorial Arguments for command_reply Client Operation Arguments for notify Client Operation Client Library Interface Reference SILC Crypto Library Introduction to SILC RNG SILC RNG Interface SILC Cipher API SILC PKCS API SILC Hash Interface SILC HMAC Interface Resource Links SILC Project Website SILC Protocol Documentation SILC White Paper SILC FAQ
Function silc_idcache_add SYNOPSIS
        bool silc_idcache_add(SilcIDCache cache, char *name, void *id,
                              void *context, int expire, SilcIDCacheEntry *ret);
DESCRIPTION
        Add new entry to the cache. Returns TRUE if the entry was added and
        FALSE if it could not be added. The `name' is the name associated with
        the ID, the `id' the actual ID and the `context' a user specific context.
        If the `expire' is non-zero the entry expires in that specified time.
        If zero the entry never expires from the cache.

        The `name', `id' and `context' pointers will be saved in the cache,
        and if the caller frees these pointers the caller is also responsible
        of deleting the cache entry.  Otherwise the cache will have the freed
        pointers stored.

        If the `ret' is non-NULL the created ID Cache entry is returned to
        that pointer.
SILC ID Cache Interface SilcIDCacheEntry SilcIDCache SilcIDCacheList SilcIDCacheDestructor silc_idcache_alloc silc_idcache_free silc_idcache_add silc_idcache_del silc_idcache_del_by_id silc_idcache_del_by_id_ext silc_idcache_del_by_context silc_idcache_del_all silc_idcache_purge silc_idcache_by_context silc_idcache_get_all silc_idcache_find_by_id silc_idcache_find_by_id_one silc_idcache_find_by_id_one_ext silc_idcache_find_by_context silc_idcache_find_by_name silc_idcache_find_by_name_one silc_idcache_list_count silc_idcache_list_first silc_idcache_list_next silc_idcache_list_free

Copyright © 2001 - 2002 SILC Project SILC Project Website | SILC Toolkit Reference Manual Index