NAME
Crypt::SSLeay::Version - Obtain OpenSSL version information
SYNOPSIS
use Crypt::SSLeay::Version qw(
openssl_cflags
openssl_hex_version
openssl_platform
openssl_version
);
my $version = openssl_version();
if (openssl_cflags() =~ /DOPENSSL_NO_HEARTBEATS/) {
print "OpenSSL was compiled without heartbeats\n";
}
SUMMARY
Exposes information provided by SSLeay_version.
EXPORTS
By default, the module exports nothing. You can ask for each subroutine bloew to be exported to your namespace.
SUBROUTINES
openssl_built_on
The date of the build process in the form "built on: ..." if available or ``built on: date not available'' otherwise.
openssl_cflags
The compiler flags set for the compilation process in the form "compiler: ..." if available or "compiler: information not available" otherwise.
openssl_dir
The OPENSSLDIR
setting of the library build in the form "OPENSSLDIR: ..." if available or "OPENSSLDIR: N/A" otherwise.
openssl_hex_version
The value of the OPENSSL_VERSION_NUMBER
macro as a hex string.
openssl_platform
The "Configure" target of the library build in the form "platform: ..." if available or "platform: information not available" otherwise.
openssl_version
The version of the OpenSSL library including the release date.
AUTHOR
A. Sinan Unur <nanis@cpan.org>
COPYRIGHT
Copyright (C) 2014 A. Sinan Unur.
LICENSE
This program is free software; you can redistribute it and/or modify it under the terms of Artistic License 2.0.