X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=lib%2Fsilccrypt%2Fsilchmac.c;fp=lib%2Fsilccrypt%2Fsilchmac.c;h=56e3bc80bd212ece6d7910af3457fd6dfb7fb948;hb=fe64e3c36398fa08a8fc08cda4dafbd652c213ad;hp=fe4af46c2c37c04b62a6501f3b2feb4d2a2cf3c2;hpb=c27a4ecc3e616e8a5ee09b8ca888ed6ff3e501f7;p=silc.git diff --git a/lib/silccrypt/silchmac.c b/lib/silccrypt/silchmac.c index fe4af46c..56e3bc80 100644 --- a/lib/silccrypt/silchmac.c +++ b/lib/silccrypt/silchmac.c @@ -84,7 +84,7 @@ static void silc_hmac_init_internal(SilcHmac hmac, unsigned char *key, /* Registers a new HMAC into the SILC. This function is used at the initialization of the SILC. */ -bool silc_hmac_register(const SilcHmacObject *hmac) +SilcBool silc_hmac_register(const SilcHmacObject *hmac) { #ifndef SILC_EPOC SilcHmacObject *new; @@ -116,7 +116,7 @@ bool silc_hmac_register(const SilcHmacObject *hmac) /* Unregister a HMAC from the SILC. */ -bool silc_hmac_unregister(SilcHmacObject *hmac) +SilcBool silc_hmac_unregister(SilcHmacObject *hmac) { #ifndef SILC_EPOC SilcHmacObject *entry; @@ -150,7 +150,7 @@ bool silc_hmac_unregister(SilcHmacObject *hmac) The application may use this to register the default hmacs if specific hmacs in any specific order is not wanted. */ -bool silc_hmac_register_default(void) +SilcBool silc_hmac_register_default(void) { #ifndef SILC_EPOC int i; @@ -162,7 +162,7 @@ bool silc_hmac_register_default(void) return TRUE; } -bool silc_hmac_unregister_all(void) +SilcBool silc_hmac_unregister_all(void) { #ifndef SILC_EPOC SilcHmacObject *entry; @@ -185,7 +185,7 @@ bool silc_hmac_unregister_all(void) of the HMAC. If it is NULL then the hash function is allocated and the name of the hash algorithm is derived from the `name'. */ -bool silc_hmac_alloc(const char *name, SilcHash hash, SilcHmac *new_hmac) +SilcBool silc_hmac_alloc(const char *name, SilcHash hash, SilcHmac *new_hmac) { SILC_LOG_DEBUG(("Allocating new HMAC")); @@ -283,7 +283,7 @@ const char *silc_hmac_get_name(SilcHmac hmac) /* Returns TRUE if HMAC `name' is supported. */ -bool silc_hmac_is_supported(const char *name) +SilcBool silc_hmac_is_supported(const char *name) { #ifndef SILC_EPOC SilcHmacObject *entry;