Go to main content

man pages section 3: Extended Library Functions, Volume 1

Exit Print View

Updated: Wednesday, July 27, 2022
 
 

OPENSSL_VERSION_NUMBER (3openssl)

Name

OPENSSL_VERSION_NUMBER - retrieve version/build information about OpenSSL library

Synopsis

#include <openssl/crypto.h>

const char *SSLeay_version(int type);

Description

SSLeay_version(3openssl)            OpenSSL           SSLeay_version(3openssl)



NAME
       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.


ATTRIBUTES
       See attributes(7) for descriptions of the following attributes:


       +---------------+--------------------------+
       |ATTRIBUTE TYPE |     ATTRIBUTE VALUE      |
       +---------------+--------------------------+
       |Availability   | library/security/openssl |
       +---------------+--------------------------+
       |Stability      | Pass-through uncommitted |
       +---------------+--------------------------+

SEE ALSO
       crypto(3)

HISTORY
       SSLEAY_DIR was added in OpenSSL 0.9.7.



NOTES
       Source code for open source software components in Oracle Solaris can
       be found at https://www.oracle.com/downloads/opensource/solaris-source-
       code-downloads.html.

       This software was built from source available at
       https://github.com/oracle/solaris-userland.  The original community
       source was downloaded from
       https://www.openssl.org/source/openssl-1.0.2ze.tar.gz.

       Further information about this software can be found on the open source
       community website at https://www.openssl.org/.



1.0.2ze                           2022-05-03          SSLeay_version(3openssl)