# HG changeset patch # User Mark Doliner # Date 1146195554 0 # Node ID 89ceef5203acb1a3ea85545824b48e47f3d85f04 # Parent 0572a1513b257d7955a158bc5731f7d3a00f486d [gaim-migrate @ 16100] Minor constification committer: Tailor Script diff -r 0572a1513b25 -r 89ceef5203ac src/cipher.c --- a/src/cipher.c Thu Apr 27 22:29:26 2006 +0000 +++ b/src/cipher.c Fri Apr 28 03:39:14 2006 +0000 @@ -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); diff -r 0572a1513b25 -r 89ceef5203ac src/cipher.h --- a/src/cipher.h Thu Apr 27 22:29:26 2006 +0000 +++ b/src/cipher.h Fri Apr 28 03:39:14 2006 +0000 @@ -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