Hi Mick,

>     Function  PEM_ASN1_read  is missing a parameter, during the built I get
> an error : " too few  actuall parameters"

char * PEM_ASN1_read(char *(*d2i)(),const char *name,FILE *fp,char **x,
 pem_password_cb *cb, void *u);

The parameter that's missing is the last one, "void *u". This is a pointer to a 
userdata buffer, handed through whenever the password callback (pointed to by "cb") is 
called. That way, applications can pass data to their callbacks.

>  if I trie to put a NULL as an extra parameter , the program crashes with
> the " Unhandled exception in example.exe ( NTDLL.DLL) Access violation. "

Putting in a NULL as extra parameter at the end of the call to "PEM_ASN1_read" works 
fine for me. Probably you ran into another problem here - did you compile your code 
using the "Multithreaded DLL" run-time-lib setting? (see OpenSSL FAQ for that).

>    And another question , How do I know if I am mixing the static and
> dynamic versions of the run time library.

MS VC++ 6.0: Project\Settings\C/C++\Code generation\Use run-time library
You have to select "Multithreaded DLL" (or "Debug Multithreaded DLL" for OpenSSL debug 
build).

Cheers,
Steve
--
_____________________________________________________________________

   GINIT Technology GmbH           [EMAIL PROTECTED]
   Steve Wirth                             www.ginit-technology.com
   Emmy-Noether-Str. 11
                                           phone: +49-721-96681-0
   D-76131 Karlsruhe                         fax: +49-721-96681-111


______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to