hi,
i've running mac osx 10.5.6, openssh 5.1 and openssl 0.9.8.
when i compile openssh under mac os, it compiles fine, pulling in the
include files from /usr/include/openssl, which come with the os.
i'm compiling ssh for the iphone, and we want to be based off of
openssl, not the mac os files, so i'm using the include files from
openssl.
the problem, (so far), seems to be with the files sha.h in openssl
and sha2.h in openssh.
the sha.h in the openssl version, (the mac version compiles ok), i'm
getting a bunch of these
(/Users/mickm/Applications/OpenSSL/openssl_arm/include/openssl/sha.h:
138: error: conflicting types for 'SHA256_CTX'
/Users/mickm/Applications/OpenSSL/openssl_arm/include/openssl/sha.h:
145: error: conflicting types for 'SHA256_Init'
so these symbols are defined in both files. it looks like i need
to do some ifdef'ing here, but do i assume that i use the definitions
of these from the sha2.h file (from openssh) rather than the
definitions from sha.h (openssl)?
has anyone else seen this problem?
thanks,
mickm