From 4b827db59acd438dee26e78d9c2932f8169cebd3 Mon Sep 17 00:00:00 2001 From: Pekka Riikonen Date: Tue, 7 Aug 2007 18:10:56 +0000 Subject: [PATCH] Changed unsigned char *name from all APIs to const char *name. --- lib/silccrypt/silccipher.c | 4 ++-- lib/silccrypt/silccipher.h | 8 ++++---- lib/silccrypt/silchash.c | 4 ++-- lib/silccrypt/silchash.h | 8 ++++---- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/lib/silccrypt/silccipher.c b/lib/silccrypt/silccipher.c index e34d7d40..f0fd3915 100644 --- a/lib/silccrypt/silccipher.c +++ b/lib/silccrypt/silccipher.c @@ -186,7 +186,7 @@ SilcBool silc_cipher_unregister_all(void) caller must set the key to the cipher after this function has returned by calling the ciphers set_key function. */ -SilcBool silc_cipher_alloc(const unsigned char *name, SilcCipher *new_cipher) +SilcBool silc_cipher_alloc(const char *name, SilcCipher *new_cipher) { SilcCipherObject *entry = NULL; int i; @@ -243,7 +243,7 @@ void silc_cipher_free(SilcCipher cipher) /* Returns TRUE if cipher `name' is supported. */ -SilcBool silc_cipher_is_supported(const unsigned char *name) +SilcBool silc_cipher_is_supported(const char *name) { SilcCipherObject *entry; int i; diff --git a/lib/silccrypt/silccipher.h b/lib/silccrypt/silccipher.h index 47f848e9..a0503c89 100644 --- a/lib/silccrypt/silccipher.h +++ b/lib/silccrypt/silccipher.h @@ -186,7 +186,7 @@ SilcBool silc_cipher_unregister_all(void); * * SYNOPSIS * - * SilcBool silc_cipher_alloc(const unsigned char *name, + * SilcBool silc_cipher_alloc(const char *name, * SilcCipher *new_cipher); * * DESCRIPTION @@ -211,7 +211,7 @@ SilcBool silc_cipher_unregister_all(void); * Notes about modes: * ***/ -SilcBool silc_cipher_alloc(const unsigned char *name, SilcCipher *new_cipher); +SilcBool silc_cipher_alloc(const char *name, SilcCipher *new_cipher); /****f* silccrypt/SilcCipherAPI/silc_cipher_free * @@ -230,14 +230,14 @@ void silc_cipher_free(SilcCipher cipher); * * SYNOPSIS * - * SilcBool silc_cipher_is_supported(const unsigned char *name); + * SilcBool silc_cipher_is_supported(const char *name); * * DESCRIPTION * * Returns TRUE if cipher `name' is supported. * ***/ -SilcBool silc_cipher_is_supported(const unsigned char *name); +SilcBool silc_cipher_is_supported(const char *name); /****f* silccrypt/SilcCipherAPI/silc_cipher_get_supported * diff --git a/lib/silccrypt/silchash.c b/lib/silccrypt/silchash.c index b67d43f2..b7196a04 100644 --- a/lib/silccrypt/silchash.c +++ b/lib/silccrypt/silchash.c @@ -164,7 +164,7 @@ SilcBool silc_hash_unregister_all(void) /* Allocates a new SilcHash object. New object is returned into new_hash argument. */ -SilcBool silc_hash_alloc(const unsigned char *name, SilcHash *new_hash) +SilcBool silc_hash_alloc(const char *name, SilcHash *new_hash) { SilcHashObject *entry = NULL; int i; @@ -294,7 +294,7 @@ const char *silc_hash_get_oid(SilcHash hash) /* Returns TRUE if hash algorithm `name' is supported. */ -SilcBool silc_hash_is_supported(const unsigned char *name) +SilcBool silc_hash_is_supported(const char *name) { SilcHashObject *entry; int i; diff --git a/lib/silccrypt/silchash.h b/lib/silccrypt/silchash.h index dee139ef..16e29727 100644 --- a/lib/silccrypt/silchash.h +++ b/lib/silccrypt/silchash.h @@ -187,7 +187,7 @@ SilcBool silc_hash_unregister_all(void); * * SYNOPSIS * - * SilcBool silc_hash_alloc(const unsigned char *name, SilcHash *new_hash); + * SilcBool silc_hash_alloc(const char *name, SilcHash *new_hash); * * DESCRIPTION * @@ -196,7 +196,7 @@ SilcBool silc_hash_unregister_all(void); * returns FALSE if such hash function does not exist. * ***/ -SilcBool silc_hash_alloc(const unsigned char *name, SilcHash *new_hash); +SilcBool silc_hash_alloc(const char *name, SilcHash *new_hash); /****f* silccrypt/SilcHashAPI/silc_hash_alloc_by_oid * @@ -230,14 +230,14 @@ void silc_hash_free(SilcHash hash); * * SYNOPSIS * - * SilcBool silc_hash_is_supported(const unsigned char *name); + * SilcBool silc_hash_is_supported(const char *name); * * DESCRIPTION * * Returns TRUE if the hash function indicated by the `name' exists. * ***/ -SilcBool silc_hash_is_supported(const unsigned char *name); +SilcBool silc_hash_is_supported(const char *name); /****f* silccrypt/SilcHashAPI/silc_hash_get_supported * -- 2.24.0