From: <the...@us...> - 2006-04-28 03:39:21
|
Revision: 16100 Author: thekingant Date: 2006-04-27 20:39:14 -0700 (Thu, 27 Apr 2006) ViewCVS: http://svn.sourceforge.net/gaim/?rev=16100&view=rev Log Message: ----------- Minor constification Modified Paths: -------------- trunk/src/cipher.c trunk/src/cipher.h Modified: trunk/src/cipher.c =================================================================== --- trunk/src/cipher.c 2006-04-27 22:29:26 UTC (rev 16099) +++ trunk/src/cipher.c 2006-04-28 03:39:14 UTC (rev 16100) @@ -897,7 +897,7 @@ * Does not check for weak keys. **/ static void -des_set_key (GaimCipherContext *context, guchar * key) +des_set_key (GaimCipherContext *context, const guchar * key) { struct _des_ctx *ctx = gaim_cipher_context_get_data(context); int i; @@ -1734,7 +1734,7 @@ } void -gaim_cipher_context_set_key(GaimCipherContext *context, guchar *key) { +gaim_cipher_context_set_key(GaimCipherContext *context, const guchar *key) { GaimCipher *cipher = NULL; g_return_if_fail(context); Modified: trunk/src/cipher.h =================================================================== --- trunk/src/cipher.h 2006-04-27 22:29:26 UTC (rev 16099) +++ trunk/src/cipher.h 2006-04-28 03:39:14 UTC (rev 16100) @@ -98,7 +98,7 @@ size_t (*get_salt_size)(GaimCipherContext *context); /** The set key function */ - void (*set_key)(GaimCipherContext *context, guchar *key); + void (*set_key)(GaimCipherContext *context, const guchar *key); /** The get key size function */ size_t (*get_key_size)(GaimCipherContext *context); @@ -358,7 +358,7 @@ * @param context The context who's key to set * @param key The key */ -void gaim_cipher_context_set_key(GaimCipherContext *context, guchar *key); +void gaim_cipher_context_set_key(GaimCipherContext *context, const guchar *key); /** * Gets the key size for a context This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |