Skip Menu |
 

This queue is for tickets about the Net-SSLeay CPAN distribution.

Report information
The Basics
Id: 74528
Status: resolved
Worked: 10 min
Priority: 0/
Queue: Net-SSLeay

People
Owner: MIKEM [...] cpan.org
Requestors: kmx [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: CTX_use_PKCS12_file does not work on MS Windows
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
Subject: Re: [rt.cpan.org #74528] CTX_use_PKCS12_file does not work on MS Windows
Date: Tue, 31 Jan 2012 07:34:03 +1000
To: bug-Net-SSLeay [...] rt.cpan.org
From: Mike McCauley <mikem [...] open.com.au>
Download (untitled) / with headers
text/plain 1.3k
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.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.