xref: /freebsd/secure/lib/libcrypto/man/man3/OpenSSL_version.3 (revision c8e7f78a3d28ff6e6223ed136ada8e1e2f34965e)
Automatically generated by Pod::Man 4.14 (Pod::Simple 3.42)

Standard preamble:
========================================================================
..
..
.. Set up some character translations and predefined strings. \*(-- will
give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
double quote, and \*(R" will give a right double quote. \*(C+ will
give a nicer C++. Capital omega is used to do unbreakable dashes and
therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
nothing in troff, for use with C<>.
.tr \(*W- . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\}
Escape single quotes in literal strings from groff's Unicode transform.

If the F register is >0, we'll generate index entries on stderr for
titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
entries marked with X<> in POD. Of course, you'll have to process the
output yourself in some meaningful fashion.

Avoid warning from groff about undefined register 'F'.
.. .nr rF 0 . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF Fear. Run. Save yourself. No user-serviceable parts.
. \" fudge factors for nroff and troff . ds #H 0 . ds #V .8m . ds #F .3m . ds #[ \f1 . ds #] .\} . ds #H ((1u-(\\\\n(.fu%2u))*.13m) . ds #V .6m . ds #F 0 . ds #[ \& . ds #] \& .\} . \" simple accents for nroff and troff . ds ' \& . ds ` \& . ds ^ \& . ds , \& . ds ~ ~ . ds / .\} . ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" . ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' . ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' . ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' . ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' . ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' .\} . \" troff and (daisy-wheel) nroff accents . \" corrections for vroff . \" for low resolution devices (crt and lpr) \{\ . ds : e . ds 8 ss . ds o a . ds d- d\h'-1'\(ga . ds D- D\h'-1'\(hy . ds th \o'bp' . ds Th \o'LP' . ds ae ae . ds Ae AE .\} ========================================================================

Title "OPENSSL_VERSION 3ossl"
OPENSSL_VERSION 3ossl "2023-09-19" "3.0.11" "OpenSSL"
For nroff, turn off justification. Always turn off hyphenation; it makes
way too many mistakes in technical documents.
"NAME"
OPENSSL_VERSION_MAJOR, OPENSSL_VERSION_MINOR, OPENSSL_VERSION_PATCH, OPENSSL_VERSION_PRE_RELEASE, OPENSSL_VERSION_BUILD_METADATA, OPENSSL_VERSION_TEXT, OPENSSL_VERSION_PREREQ, OPENSSL_version_major, OPENSSL_version_minor, OPENSSL_version_patch, OPENSSL_version_pre_release, OPENSSL_version_build_metadata, OpenSSL_version, OPENSSL_VERSION_NUMBER, OpenSSL_version_num, OPENSSL_info \- get OpenSSL version number and other information
"SYNOPSIS"
Header "SYNOPSIS" .Vb 1 #include <openssl/opensslv.h> \& #define OPENSSL_VERSION_MAJOR x #define OPENSSL_VERSION_MINOR y #define OPENSSL_VERSION_PATCH z \& /* The definitions here are typical release values */ #define OPENSSL_VERSION_PRE_RELEASE "" #define OPENSSL_VERSION_BUILD_METADATA "" \& #define OPENSSL_VERSION_TEXT "OpenSSL x.y.z xx XXX xxxx" \& #define OPENSSL_VERSION_PREREQ(maj,min) \& #include <openssl/crypto.h> \& unsigned int OPENSSL_version_major(void); unsigned int OPENSSL_version_minor(void); unsigned int OPENSSL_version_patch(void); const char *OPENSSL_version_pre_release(void); const char *OPENSSL_version_build_metadata(void); \& const char *OpenSSL_version(int t); \& const char *OPENSSL_info(int t); \& /* from openssl/opensslv.h */ #define OPENSSL_VERSION_NUMBER 0xnnnnnnnnL \& /* from openssl/crypto.h */ unsigned long OpenSSL_version_num(); .Ve
"DESCRIPTION"
Header "DESCRIPTION"
"Macros"
Subsection "Macros" The three macros \s-1OPENSSL_VERSION_MAJOR\s0, \s-1OPENSSL_VERSION_MINOR\s0 and \fB\s-1OPENSSL_VERSION_PATCH\s0 represent the three parts of a version identifier, \f(BI\s-1MAJOR\s0.\f(BI\s-1MINOR\s0.\f(BI\s-1PATCH\s0.

The macro \s-1OPENSSL_VERSION_PRE_RELEASE\s0 is an added bit of text that indicates that this is a pre-release version, such as "-dev" for an ongoing development snapshot or "-alpha3" for an alpha release. The value must be a string.

The macro \s-1OPENSSL_VERSION_BUILD_METADATA\s0 is extra information, reserved for other parties, such as "+fips", or "+vendor.1"). The OpenSSL project will not touch this macro (will leave it an empty string). The value must be a string.

\fB\s-1OPENSSL_VERSION_STR\s0 is a convenience macro to get the short version identifier string, "\f(CIMAJOR.\f(CIMINOR.\f(CIPATCH".

\fB\s-1OPENSSL_FULL_VERSION_STR\s0 is a convenience macro to get the longer version identifier string, which combines \s-1OPENSSL_VERSION_STR\s0, \fB\s-1OPENSSL_VERSION_PRE_RELEASE\s0 and \s-1OPENSSL_VERSION_BUILD_METADATA\s0.

\fB\s-1OPENSSL_VERSION_TEXT\s0 is a convenience macro to get a full descriptive version text, which includes \s-1OPENSSL_FULL_VERSION_STR\s0 and the release date.

\fB\s-1OPENSSL_VERSION_PREREQ\s0 is a useful macro for checking whether the OpenSSL version for the headers in use is at least at the given pre-requisite major (maj) and minor (min) number or not. It will evaluate to true if the header version number (\s-1OPENSSL_VERSION_MAJOR\s0.\s-1OPENSSL_VERSION_MINOR\s0) is greater than or equal to maj.min.

\fB\s-1OPENSSL_VERSION_NUMBER\s0 is a combination of the major, minor and patch version into a single integer 0xMNN00PP0L, where:

"M" 4
Item "M" is the number from \s-1OPENSSL_VERSION_MAJOR\s0, in hexadecimal notation
"\s-1NN\s0" 4
Item "NN" is the number from \s-1OPENSSL_VERSION_MINOR\s0, in hexadecimal notation
"\s-1PP\s0" 4
Item "PP" is the number from \s-1OPENSSL_VERSION_PATCH\s0, in hexadecimal notation
"Functions"
Subsection "Functions" \fBOPENSSL_version_major(), OPENSSL_version_minor(), OPENSSL_version_patch(), \fBOPENSSL_version_pre_release(), and OPENSSL_version_build_metadata() return the values of the macros above for the build of the library, respectively.

\fBOpenSSL_version() returns different strings depending on t:

"\s-1OPENSSL_VERSION\s0" 4
Item "OPENSSL_VERSION" The value of \s-1OPENSSL_VERSION_TEXT\s0
"\s-1OPENSSL_VERSION_STRING\s0" 4
Item "OPENSSL_VERSION_STRING" The value of \s-1OPENSSL_VERSION_STR\s0
"\s-1OPENSSL_FULL_VERSION_STRING\s0" 4
Item "OPENSSL_FULL_VERSION_STRING" The value of \s-1OPENSSL_FULL_VERSION_STR\s0
"\s-1OPENSSL_CFLAGS\s0" 4
Item "OPENSSL_CFLAGS" The compiler flags set for the compilation process in the form \f(CW\*(C`compiler: ...\*(C' if available, or \*(C`compiler: information not available\*(C' otherwise.
"\s-1OPENSSL_BUILT_ON\s0" 4
Item "OPENSSL_BUILT_ON" The date of the build process in the form \*(C`built on: ...\*(C' if available or \*(C`built on: date not available\*(C' otherwise. The date would not be available in a reproducible build, for example.
"\s-1OPENSSL_PLATFORM\s0" 4
Item "OPENSSL_PLATFORM" The \*(L"Configure\*(R" target of the library build in the form \*(C`platform: ...\*(C' if available, or \*(C`platform: information not available\*(C' otherwise.
"\s-1OPENSSL_DIR\s0" 4
Item "OPENSSL_DIR" The \s-1OPENSSLDIR\s0 setting of the library build in the form \*(C`OPENSSLDIR: "..."\*(C' if available, or \*(C`OPENSSLDIR: N/A\*(C' otherwise.
"\s-1OPENSSL_ENGINES_DIR\s0" 4
Item "OPENSSL_ENGINES_DIR" The \s-1ENGINESDIR\s0 setting of the library build in the form \*(C`ENGINESDIR: "..."\*(C' if available, or \*(C`ENGINESDIR: N/A\*(C' otherwise. This option is deprecated in OpenSSL 3.0.
"\s-1OPENSSL_MODULES_DIR\s0" 4
Item "OPENSSL_MODULES_DIR" The \s-1MODULESDIR\s0 setting of the library build in the form \*(C`MODULESDIR: "..."\*(C' if available, or \*(C`MODULESDIR: N/A\*(C' otherwise.
"\s-1OPENSSL_CPU_INFO\s0" 4
Item "OPENSSL_CPU_INFO" The current OpenSSL cpu settings. This is the current setting of the cpu capability flags. It is usually automatically configured but may be set via an environment variable. The value has the same syntax as the environment variable. For x86 the string looks like \*(C`CPUINFO: OPENSSL_ia32cap=0x123:0x456\*(C' or \*(C`CPUINFO: N/A\*(C' if not available.

For an unknown t, the text \*(C`not available\*(C' is returned.

\fBOPENSSL_info() also returns different strings depending on t:

"\s-1OPENSSL_INFO_CONFIG_DIR\s0" 4
Item "OPENSSL_INFO_CONFIG_DIR" The configured \*(C`OPENSSLDIR\*(C', which is the default location for OpenSSL configuration files.
"\s-1OPENSSL_INFO_ENGINES_DIR\s0" 4
Item "OPENSSL_INFO_ENGINES_DIR" The configured \*(C`ENGINESDIR\*(C', which is the default location for OpenSSL engines.
"\s-1OPENSSL_INFO_MODULES_DIR\s0" 4
Item "OPENSSL_INFO_MODULES_DIR" The configured \*(C`MODULESDIR\*(C', which is the default location for dynamically loadable OpenSSL modules other than engines.
"\s-1OPENSSL_INFO_DSO_EXTENSION\s0" 4
Item "OPENSSL_INFO_DSO_EXTENSION" The configured dynamically loadable module extension.
"\s-1OPENSSL_INFO_DIR_FILENAME_SEPARATOR\s0" 4
Item "OPENSSL_INFO_DIR_FILENAME_SEPARATOR" The separator between a directory specification and a filename. Note that on some operating systems, this is not the same as the separator between directory elements.
"\s-1OPENSSL_INFO_LIST_SEPARATOR\s0" 4
Item "OPENSSL_INFO_LIST_SEPARATOR" The OpenSSL list separator. This is typically used in strings that are lists of items, such as the value of the environment variable $PATH on Unix (where the separator is \*(C`:\*(C') or \*(C`%PATH%\*(C' on Windows (where the separator is \f(CW\*(C`;\*(C').
"\s-1OPENSSL_INFO_CPU_SETTINGS\s0" 4
Item "OPENSSL_INFO_CPU_SETTINGS" The current OpenSSL cpu settings. This is the current setting of the cpu capability flags. It is usually automatically configured but may be set via an environment variable. The value has the same syntax as the environment variable. For x86 the string looks like \*(C`OPENSSL_ia32cap=0x123:0x456\*(C'.

For an unknown t, \s-1NULL\s0 is returned.

\fBOpenSSL_version_num() returns the value of \s-1OPENSSL_VERSION_NUMBER\s0.

"RETURN VALUES"
Header "RETURN VALUES" \fBOPENSSL_version_major(), OPENSSL_version_minor() and OPENSSL_version_patch() return the version number parts as integers.

\fBOPENSSL_version_pre_release() and OPENSSL_version_build_metadata() return the values of \s-1OPENSSL_VERSION_PRE_RELEASE\s0 and \fB\s-1OPENSSL_VERSION_BUILD_METADATA\s0 respectively as constant strings. For any of them that is undefined, the empty string is returned.

\fBOpenSSL_version() returns constant strings.

"SEE ALSO"
Header "SEE ALSO" \fBcrypto\|(7)
"HISTORY"
Header "HISTORY" The macros and functions described here were added in OpenSSL 3.0, except for \s-1OPENSSL_VERSION_NUMBER\s0 and OpenSSL_version_num().
"COPYRIGHT"
Header "COPYRIGHT" Copyright 2018-2022 The OpenSSL Project Authors. All Rights Reserved.

Licensed under the Apache License 2.0 (the \*(L"License\*(R"). You may not use this file except in compliance with the License. You can obtain a copy in the file \s-1LICENSE\s0 in the source distribution or at <https://www.openssl.org/source/license.html>.