The fix is to add an extra NULL argument at the end of the argument list in both places where this error occurs.
I've just commited a patch, so the above fix will be present in 0.9.6e. [[EMAIL PROTECTED] - Fri May 31 09:32:25 2002]: > > I've just installed openssl-0.9.6c on Linux, and I'm trying to figure out > the libcrypto API set by looking at the 'demos' examples. > > Compiling the maurice examples gives the compilation error > In function ReadPublicKey: too few arguments to function PEM_ASN1_read, > > > and indeed, the function signature in pem.h is: > char *PEM_ASN1_read(char *(*d2i)(), const char *name, > FILE *fp, char **x, > pem_password_cb *cb, > void *u); > > but is't invoked as: > FILE *fp... X509 *x509; EVP_PKEY *pkey; > x509 = (X509 *)PEM_ASN1_read ((char *(*)())d2i_X509, > PEM_STRING_X509, > fp, NULL, NULL); > > so one can sort of see the compiler's point. Perhaps tthe API set have > changed since the examples were written? Are there other changes that > compilers won't pick up? Any other sources of information on how to use the > API? > > Regards, > Judith > ______________________________________________________________________ > OpenSSL Project http://www.openssl.org > User Support Mailing List [EMAIL PROTECTED] > Automated List Manager [EMAIL PROTECTED] -- Richard Levitte [EMAIL PROTECTED] ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]