Mercurial > pidgin
comparison src/cipher.c @ 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 | ff4e85e04adf |
| children | ff94569010f5 |
comparison
equal
deleted
inserted
replaced
| 13696:0572a1513b25 | 13697:89ceef5203ac |
|---|---|
| 895 * Fill a DES context with subkeys calculated from a 64bit key. | 895 * Fill a DES context with subkeys calculated from a 64bit key. |
| 896 * Does not check parity bits, but simply ignore them. | 896 * Does not check parity bits, but simply ignore them. |
| 897 * Does not check for weak keys. | 897 * Does not check for weak keys. |
| 898 **/ | 898 **/ |
| 899 static void | 899 static void |
| 900 des_set_key (GaimCipherContext *context, guchar * key) | 900 des_set_key (GaimCipherContext *context, const guchar * key) |
| 901 { | 901 { |
| 902 struct _des_ctx *ctx = gaim_cipher_context_get_data(context); | 902 struct _des_ctx *ctx = gaim_cipher_context_get_data(context); |
| 903 int i; | 903 int i; |
| 904 | 904 |
| 905 des_key_schedule (key, ctx->encrypt_subkeys); | 905 des_key_schedule (key, ctx->encrypt_subkeys); |
| 1732 return -1; | 1732 return -1; |
| 1733 } | 1733 } |
| 1734 } | 1734 } |
| 1735 | 1735 |
| 1736 void | 1736 void |
| 1737 gaim_cipher_context_set_key(GaimCipherContext *context, guchar *key) { | 1737 gaim_cipher_context_set_key(GaimCipherContext *context, const guchar *key) { |
| 1738 GaimCipher *cipher = NULL; | 1738 GaimCipher *cipher = NULL; |
| 1739 | 1739 |
| 1740 g_return_if_fail(context); | 1740 g_return_if_fail(context); |
| 1741 | 1741 |
| 1742 cipher = context->cipher; | 1742 cipher = context->cipher; |
