From 033bc4682b7c7541966da4b2b43b65a4ba722b43 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Sat, 11 Oct 2008 16:17:14 +0200 Subject: Prevent errors with data_blob() being a macro in s4 and function in s3. --- lib/crypto/arcfour.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/crypto') 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); -- cgit