Hi,

 

I was trying to compile test scripts (openssl-0.9.6b)

 

 ~/openssl-0.9.6b/demos/Maurice/*.c

 

When I try to make the file, I get the following error:

 

 Too few arguments to function PEM_ASN1_read

 

After digging around, I found the function definition at

 

  ~/openssl-0.9.6b/crypto/pem/pem_lib.c:

 

            char * PEM_ASN1_read(char* (*d2i)(),

                                                const char* name,

                                                FILE* fp,

                                                Char** x,

                                                Pem_password_cb* cb,

                                                Void *u);

 

Documentation at

 

 ~/openssl-0.9.6b/doc/ssleay.txt

 

show that PEM_ANS1_read should only have 5 parameters (without the last parameter, void* u).

 

Could someone knowledgeable please tell me what the functionality is the last parameter (void* u) in PEM_ASN1_read or I am looking at the wrong all the time?

 

Just for kicks, I also download and compiled openssl-0.9.1c. In this version, the test scripts compiles and runs fine. PEM_ASN1_read in ~/openssl-0.9.1c/crypto/pem/pem_lib.c does not have “void* u” parameter.

 

Thanks in advance,

 

Tie

 

Reply via email to