OPENSSL_VERSION_NUMBER.3ssl man page

SSLeay_version — retrieve version/build information about OpenSSL library

Synopsis

 #include <openssl/crypto.h>

 const char *SSLeay_version(int type);

Description

SSLeay_version() returns a pointer to a constant string describing the version of the OpenSSL library or giving information about the library build.

The following type values are supported:

SSLEAY_VERSION

The version of the OpenSSL library including the release date.

SSLEAY_CFLAGS

The compiler flags set for the compilation process in the form "compiler: ..."  if available or "compiler: information not available" otherwise.

SSLEAY_BUILT_ON

The date of the build process in the form "built on: ..." if available or "built on: date not available" otherwise.

SSLEAY_PLATFORM

The "Configure" target of the library build in the form "platform: ..." if available or "platform: information not available" otherwise.

SSLEAY_DIR

The "OPENSSLDIR" setting of the library build in the form "OPENSSLDIR: "..."" if available or "OPENSSLDIR: N/A" otherwise.

Return Values

The following return values can occur:

"not available"

An invalid value for type was given.

Pointer to constant string

Textual description.

See Also

crypto(3)

History

SSLEAY_DIR was added in OpenSSL 0.9.7.

Referenced By

crypto.3ssl(3).

2017-11-02 1.0.2m OpenSSL