Mercurial > pidgin.yaz
changeset 13697:89ceef5203ac
[gaim-migrate @ 16100]
Minor constification
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Fri, 28 Apr 2006 03:39:14 +0000 |
parents | 0572a1513b25 |
children | 6bee2e80e42c |
files | src/cipher.c src/cipher.h |
diffstat | 2 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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);
--- 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