ben> The weird thing, though, is that the error is wrong. c2l does _not_
ben> modify its first argument, only the second.
Could be a good thing to check the facts. From des_locl.h:
[...]
#define c2l(c,l) (l =((DES_LONG)(*((c)++))) , \
l|=((DES_LONG)(*((c)++)))<< 8L, \
l|=((DES_LONG)(*((c)++)))<<16L, \
l|=((DES_LONG)(*((c)++)))<<24L)
[...]
The first argument is definitely being changed. What is weird,
though, is that des_cblock is basically an array of char, thus making
in a char pointer, but I assume this is a declaration technicality in
ANSI C. As it is declared right now ("const des_cblock in"), it
probably means that in itself is a constant, possibly as well as the
contents of the array. Unfortunately, I do not have the ANSI C spec.
handy, so I can't verify this...
--
Richard Levitte \ Spannv�gen 38, II \ [EMAIL PROTECTED]
Redakteur@Stacken \ S-161 43 BROMMA \ T: +46-8-26 52 47
\ SWEDEN \ or +46-708-26 53 44
Procurator Odiosus Ex Infernis -- [EMAIL PROTECTED]
Unsolicited commercial email is subject to an archival fee of $400.
See <http://www.stacken.kth.se/~levitte/mail/> for more info.
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]