3moeller> What's the cleanest way to solve this? Exile the command
3moeller> list
Run something like the following during compilation of the test
directory:
$(CC) $(CFLAGS) -E testenc_methods.c | sed -e 'd/^$/' |\
sed -e 's/_/-/g' > testenc_methods
Replace the appropriate for line in test/testenc with this:
for i in `cat testenc_methods`
testenc_methods.c should contain this (here indented by tabs):
#ifndef NO_DES
des_cfb des_ede_cfb des_ede3_cfb des_ofb des_ede_ofb
des_ede3_ofb des_ecb des_ede des_ede3 desx des_cbc
des_ede_cbc des_ede3_cbc
#endif
#ifndef NO_IDEA
idea_ecb idea_cfb idea_ofb idea_cbc
#endif
#ifndef NO_RC2
rc2_ecb rc2_cfb rc2_ofb rc2_cbc
#endif
#ifndef NO_BF
bf_ecb bf_cfb bf_ofb bf_cbc
#endif
#ifndef NO_RC4
rc4
#endif
#ifndef NO_CAST
cast5_ecb cast5_cfb cast5_ofb cast5_cbc
#endif
You may wonder why I use _ instead of - in testenc_methods.c. The
reason is that some preprocessors put spaces between tokens if there
are none already, so for example des-ede-cbc would suddenly become
"des - ede - cbc". Using underscores instead makes sure they are
treated as symbols and, so to say, stay together. The last sed does
the conversion back...
Looks simple enough, doesn't it?
(I may have gotten som paths wrong. I haven't tested this. Please
forgive me for that...)
--
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]