Skip Menu |
 

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

Report information
The Basics
Id: 94828
Status: resolved
Priority: 0/
Queue: Crypt-SSLeay

People
Owner: nanis [...] runu.moc.invalid
Requestors: dolmen [...] cpan.org
Cc:
AdminCc:

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



Subject: VERSION_openssl_hex_version() returns a string
Download (untitled) / with headers
text/plain 489b
Hi, The new VERSION_openssl_hex_version() introduced in 0.65_13 returns a formated string version of the OPENSSL_VERSION_NUMBER: SV * VERSION_openssl_hex_version() CODE: RETVAL = newSVpvf("0x%8.8x", (unsigned) OPENSSL_VERSION_NUMBER); OUTPUT: RETVAL Why convert an integer to a string in an API? Why not instead just export OPENSSL_VERSION_NUMBER (which is a compile time constant) as an integer constant? -- Olivier Mengué - http://perlresume.org/DOLMEN
Download (untitled) / with headers
text/plain 548b
Good point. Will fix that. Thank you very much. -- Sinan On Thu Apr 17 05:55:07 2014, DOLMEN wrote: Show quoted text
> Hi, > > The new VERSION_openssl_hex_version() introduced in 0.65_13 returns a > formated string version of the OPENSSL_VERSION_NUMBER: > > SV * > VERSION_openssl_hex_version() > CODE: > > RETVAL = newSVpvf("0x%8.8x", (unsigned) OPENSSL_VERSION_NUMBER); > OUTPUT: > RETVAL > > Why convert an integer to a string in an API? > Why not instead just export OPENSSL_VERSION_NUMBER (which is a compile > time constant) as an integer constant?
Download (untitled) / with headers
text/plain 849b
As of 0.65_15 (which I am going to upload soon), openssl_hex_version has been replaced with openssl_version_number which just returns the value of the macro OPENSSL_VERSION_NUMBER. Thank you again. -- Sinan On Fri Apr 18 19:42:34 2014, NANIS wrote: Show quoted text
> Good point. Will fix that. Thank you very much. > > -- Sinan > > On Thu Apr 17 05:55:07 2014, DOLMEN wrote:
> > Hi, > > > > The new VERSION_openssl_hex_version() introduced in 0.65_13 returns a > > formated string version of the OPENSSL_VERSION_NUMBER: > > > > SV * > > VERSION_openssl_hex_version() > > CODE: > > > > RETVAL = newSVpvf("0x%8.8x", (unsigned) OPENSSL_VERSION_NUMBER); > > OUTPUT: > > RETVAL > > > > Why convert an integer to a string in an API? > > Why not instead just export OPENSSL_VERSION_NUMBER (which is a compile > > time constant) as an integer constant?
> >


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.