Hi,
Thanks.
Adopted.
On Monday, January 30, 2012 07:36:25 AM you wrote:
Show quoted text> Mon Jan 30 07:36:24 2012: Request 74528 was acted upon.
> Transaction: Ticket created by KMX
> Queue: Net-SSLeay
> Subject: CTX_use_PKCS12_file does not work on MS Windows
> Broken in: (no value)
> Severity: (no value)
> Owner: Nobody
> Requestors: kmx@cpan.org
> Status: new
> Ticket <URL:
https://rt.cpan.org/Ticket/Display.html?id=74528 >
>
>
> The fix for CTX_use_PKCS12_file(ctx, file, password) is easy:
>
> - fp = fopen (file, "r");
> + fp = fopen (file, "rb");
>
> The reason is that pkcs12 is binary file and opening it in "r" mode means
> "text mode" which ends in loading some damaged data - at least on MS
> Windows.
>
> --
> kmx
--
Mike McCauley mikem@open.com.au
Open System Consultants Pty. Ltd
9 Bulbul Place Currumbin Waters QLD 4223 Australia
http://www.open.com.au
Phone +61 7 5598-7474 Fax +61 7 5598-7070
Radiator: the most portable, flexible and configurable RADIUS server
anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald,
Platypus, Freeside, TACACS+, PAM, external, Active Directory, EAP, TLS,
TTLS, PEAP, TNC, WiMAX, RSA, Vasco, Yubikey, MOTP, HOTP, TOTP,
DIAMETER etc. Full source on Unix, Windows, MacOSX, Solaris, VMS, NetWare etc.