/pidgin/main: 5bc654243432: ciphers cleanup: set_salt - add const
Tomasz Wasilczyk
tomkiewicz at cpw.pidgin.im
Mon May 6 08:50:07 EDT 2013
Changeset: 5bc6542434326287e19011ade99b16226ca135d7
Author: Tomasz Wasilczyk <tomkiewicz at cpw.pidgin.im>
Date: 2013-05-06 14:50 +0200
Branch: default
URL: https://hg.pidgin.im/pidgin/main/rev/5bc654243432
Description:
ciphers cleanup: set_salt - add const
diffstat:
libpurple/cipher.c | 2 +-
libpurple/cipher.h | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diffs (33 lines):
diff --git a/libpurple/cipher.c b/libpurple/cipher.c
--- a/libpurple/cipher.c
+++ b/libpurple/cipher.c
@@ -551,7 +551,7 @@ purple_cipher_context_decrypt(PurpleCiph
}
void
-purple_cipher_context_set_salt(PurpleCipherContext *context, guchar *salt, size_t len) {
+purple_cipher_context_set_salt(PurpleCipherContext *context, const guchar *salt, size_t len) {
PurpleCipher *cipher = NULL;
g_return_if_fail(context);
diff --git a/libpurple/cipher.h b/libpurple/cipher.h
--- a/libpurple/cipher.h
+++ b/libpurple/cipher.h
@@ -113,7 +113,7 @@ struct _PurpleCipherOps {
ssize_t (*decrypt)(PurpleCipherContext *context, const guchar input[], size_t in_len, guchar output[], size_t out_size);
/** The set salt function */
- void (*set_salt)(PurpleCipherContext *context, guchar *salt, size_t len);
+ void (*set_salt)(PurpleCipherContext *context, const guchar *salt, size_t len);
/** The get salt size function */
size_t (*get_salt_size)(PurpleCipherContext *context);
@@ -393,7 +393,7 @@ ssize_t purple_cipher_context_decrypt(Pu
* @param salt The salt
* @param len The length of the salt
*/
-void purple_cipher_context_set_salt(PurpleCipherContext *context, guchar *salt, size_t len);
+void purple_cipher_context_set_salt(PurpleCipherContext *context, const guchar *salt, size_t len);
/**
* Gets the size of the salt if the cipher supports it
More information about the Commits
mailing list