Hi all,

I am trying to port the TLS application on Windows CE. I have built
the Openssl libraries and DLL's successfully and linked with the
application. While running the application, i find that the
PEM_read_DHparams is always returning NULL while reading the dhparam
file in pem format.

The code is given below.

fp = fopen("\\cert\\pem\\cert_rsa\\dhparam.pem","r");

dh = PEM_read_DHparams(fp, NULL, NULL, NULL);

Please inform what is going wrong in the code. The same application
works fine in Windows and other ports.


Thanks in advance....

Re: PEM_read_DHparams function of Openssl library returns NULL by Igor

Igor
Mon May 02 20:00:54 CDT 2005

Windows CE comes with both an SCHANNEL library and the SSL LSP.
Have you consider using either of those?


-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Igor Dvorkin ( igord at microsoft dot com)
This posting is provided "AS IS" with no warranties, and confers no rights.


* sam <spbl@indiatimes.com>:
> Hi all,
>
> I am trying to port the TLS application on Windows CE. I have built
> the Openssl libraries and DLL's successfully and linked with the
> application. While running the application, i find that the
> PEM_read_DHparams is always returning NULL while reading the dhparam
> file in pem format.
>
> The code is given below.
>
> fp = fopen("\\cert\\pem\\cert_rsa\\dhparam.pem","r");
>
> dh = PEM_read_DHparams(fp, NULL, NULL, NULL);
>
> Please inform what is going wrong in the code. The same application
> works fine in Windows and other ports.
>
>
> Thanks in advance....