summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-10-11 16:17:14 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-10-11 16:17:14 +0200
commit033bc4682b7c7541966da4b2b43b65a4ba722b43 (patch)
tree6c256296c15f5202d63f815f888f6deb2c2f57d4 /lib
parent6a78e56277799672b7ac187c57e546836e136f79 (diff)
downloadsamba-033bc4682b7c7541966da4b2b43b65a4ba722b43.tar.gz
samba-033bc4682b7c7541966da4b2b43b65a4ba722b43.tar.bz2
samba-033bc4682b7c7541966da4b2b43b65a4ba722b43.zip
Prevent errors with data_blob() being a macro in s4 and function in s3.
Diffstat (limited to 'lib')
-rw-r--r--lib/crypto/arcfour.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/crypto/arcfour.c b/lib/crypto/arcfour.c
index c57e05d0e9..b4773f4041 100644
--- a/lib/crypto/arcfour.c
+++ b/lib/crypto/arcfour.c
@@ -81,7 +81,7 @@ _PUBLIC_ void arcfour_crypt_blob(uint8_t *data, int len, const DATA_BLOB *key)
*/
_PUBLIC_ void arcfour_crypt(uint8_t *data, const uint8_t keystr[16], int len)
{
- DATA_BLOB key = data_blob(keystr, 16);
+ DATA_BLOB key = { discard_const_p(uint8_t, keystr), 16 };
arcfour_crypt_blob(data, len, &key);