Lennart Bong wrote:
>
> Just finnished a compilation of openssl (snap 0301) for a RTOS on
> powerpc with DIAB compiler. Got some comments/findings:
>
> My patch to avoid this one use of sscanf is below:
>
[patch omitted]
> Since inet_addr may not be available for non-socket system
> openssl should include a local version of it (plenty around).
>
> openssl would be easier to run embedded if sscanf was avoided
> in the future.
Fair enough. I'll modify this bit ASAP. I felt decidedly uneasy using
sscanf myself :-)
>
> #3 Possible lack of syslog. The syslog BIO module 'bss_log.c'
> wants syslog but the OS may not have that functionality.
> Not sure how openssl group want to handle stuff like this
> so I have no suggestion here. I simply removed bss_log
> from the Makefile in crypto/bio to continue.
>
Hmm... I've got this currently with #ifdef'ed out when "generic" WIN32
is used: i.e. WIN32 but not WINNT defined. I could surround it in a
NO_SYSLOG and have generic WIN32 define this.
>
> #6 ctx_size in crypto/pem. I have CC to my DIAB cross
> compiler but ctz_size is part of the build and needs
> to be built with a host compiler. ctz_size is also
> built with CC though :( Suggestions/changes plz.
>
I don't know if this will help but...
This was a pain for Windoze as well because the Windoze build
environment can't handle it. If you look in Configure line 233:
# Miscellaneous hacks: this is designed to allow environments where the
"one
# makefile" option does not auto build all files.
# The first six fields are the hard coded versions of the stuff
generated by
# ctx_size for pem.h: that is EVP_ENCODE_CTX_SIZE, EVP_MD_SIZE
EVP_MD_CTX_SIZE
# EVP_CIPHER_SIZE, EVP_CIPHER_CTX_SIZE and EVP_MAX_MD_SIZE respectively.
# If the seventh field is 1 then auto generate
# crypto/date.h
# Need to add Win16 and others here.
my %misc_table = (
"VC-WIN32", "96:60:152:40:4212:20:1",
"VC-NT", "96:60:152:40:4212:20:1"
);
If you can work out what the values should be somehow then you can hard
code them into this table. Then when you run Configure pem.h will be
auto generated.
I'll have to check to see if the Makefile needs a tweak to ensure that
it doesn't try to build ctx_size if pem.h is newer than pem.org.
Steve.
--
Dr Stephen N. Henson. http://www.drh-consultancy.demon.co.uk/
Senior crypto engineer, Celo Communications: http://www.celocom.com/
OpenSSL core developer. Email: [EMAIL PROTECTED]
PGP key: via homepage.
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]