Subject: | VERSION_openssl_hex_version() returns a string |
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