On Wed, Jun 05, 2002 at 10:05:08PM -0400, Dusty Phillips wrote:
> Is there no action on this list?
Well, no, there isn't. One reason is that Patrick hasn't had time to get
nightly snapshots working, so I'm embarrassed to talk about changes
immediately when we do them (eg. the recent really cool WvString ->
WvFastString/WvStringParm changes that get rid of the need for stupid
WvString::unique(), and the new experimental hierarchical WvConf stuff).
> I'm still having trouble compiling wvstreams...
That's not good.
> --> Making all in /usr/src/programsrc/wvstreams-3.70/src/crypto...
> make[2]: *** Warning: File `Makefile' has modification time in the future
> (2002-06-05 15:04:15 > 2002-06-05 10:08:53)
Building on NFS or something? You should check your clock.
> g++ $_R_CXXFLAGS -c wvcrypto.cc
> wvcrypto.cc: In method `WvRSAKey::WvRSAKey(const char *, bool)':
> wvcrypto.cc:162: passing `unsigned char **' as argument 2 of
> `d2i_RSAPrivateKey(RSA **, const unsigned char **, long int)' adds
> cv-quals without intervening `const'
> wvcrypto.cc:173: passing `unsigned char **' as argument 2 of
> `d2i_RSAPublicKey(RSA **, const unsigned char **, long int)' adds cv-quals
> without intervening `const'
I looked this up in google, and I found this message:
http://www.geocrawler.com/archives/3/362/1997/9/0/2036587/
...which explains where the error comes from.
It appears the openssl guys goofed in 0.97beta. The prototype for the
d2i_RSAPrivateKey function in 0.9.6c, which I use, is like this:
d2i_RSAPrivateKey(RSA **a, unsigned char **pp, long length);
ie., without a const on the second parameter. The const should have been
done like this (I think):
const unsigned char * const *pp
...which would be entirely backwards-compatible with old versions of
openssl.
As it is, there's no way I can write code that compiles with both the old
and new openssl, so we'll have to stick with the non-beta openssl for now.
> My gcc is version 2.95.3, and openssl was 0.97beta or whatever the latest
> release is (jun 2). I'm installing this on a fairly new linux from
> scratch system. What do these errors mean? what am I doing wrong?
I'm using gcc 2.95.3 and openssl 0.9.6c, and it works. I'll cc: this
message to the openssl guys while I'm here.
Thanks!
Avery
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]