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]
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to