git.samba.org
/
metze
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a78e56
)
Prevent errors with data_blob() being a macro in s4 and function in s3.
author
Jelmer Vernooij
<jelmer@samba.org>
Sat, 11 Oct 2008 14:17:14 +0000
(16:17 +0200)
committer
Jelmer Vernooij
<jelmer@samba.org>
Sat, 11 Oct 2008 14:17:14 +0000
(16:17 +0200)
lib/crypto/arcfour.c
patch
|
blob
|
history
diff --git
a/lib/crypto/arcfour.c
b/lib/crypto/arcfour.c
index c57e05d0e9175c0d4615fea2952b50d25f89e23e..b4773f404148791f5eb5bf2bcc48785b1685dfdd 100644
(file)
--- 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);