Current File : //opt/cpanel/ea-openssl11/share/doc/openssl/html/man3/OpenSSL_version.html |
<?xml version="1.0" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>OPENSSL_VERSION_NUMBER</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rev="made" href="mailto:root@localhost" />
</head>
<body>
<ul id="index">
<li><a href="#NAME">NAME</a></li>
<li><a href="#SYNOPSIS">SYNOPSIS</a></li>
<li><a href="#DESCRIPTION">DESCRIPTION</a></li>
<li><a href="#RETURN-VALUES">RETURN VALUES</a></li>
<li><a href="#SEE-ALSO">SEE ALSO</a></li>
<li><a href="#COPYRIGHT">COPYRIGHT</a></li>
</ul>
<h1 id="NAME">NAME</h1>
<p>OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_TEXT, OpenSSL_version, OpenSSL_version_num - get OpenSSL version number</p>
<h1 id="SYNOPSIS">SYNOPSIS</h1>
<pre><code> #include <openssl/opensslv.h>
#define OPENSSL_VERSION_NUMBER 0xnnnnnnnnnL
#define OPENSSL_VERSION_TEXT "OpenSSL x.y.z xx XXX xxxx"
#include <openssl/crypto.h>
unsigned long OpenSSL_version_num();
const char *OpenSSL_version(int t);</code></pre>
<h1 id="DESCRIPTION">DESCRIPTION</h1>
<p>OPENSSL_VERSION_NUMBER is a numeric release version identifier:</p>
<pre><code> MNNFFPPS: major minor fix patch status</code></pre>
<p>The status nibble has one of the values 0 for development, 1 to e for betas 1 to 14, and f for release.</p>
<p>for example</p>
<pre><code> 0x000906000 == 0.9.6 dev
0x000906023 == 0.9.6b beta 3
0x00090605f == 0.9.6e release</code></pre>
<p>Versions prior to 0.9.3 have identifiers < 0x0930. Versions between 0.9.3 and 0.9.5 had a version identifier with this interpretation:</p>
<pre><code> MMNNFFRBB major minor fix final beta/patch</code></pre>
<p>for example</p>
<pre><code> 0x000904100 == 0.9.4 release
0x000905000 == 0.9.5 dev</code></pre>
<p>Version 0.9.5a had an interim interpretation that is like the current one, except the patch level got the highest bit set, to keep continuity. The number was therefore 0x0090581f.</p>
<p>OPENSSL_VERSION_TEXT is the text variant of the version number and the release date. For example, "OpenSSL 1.0.1a 15 Oct 2015".</p>
<p>OpenSSL_version_num() returns the version number.</p>
<p>OpenSSL_version() returns different strings depending on <b>t</b>:</p>
<dl>
<dt id="OPENSSL_VERSION">OPENSSL_VERSION</dt>
<dd>
<p>The text variant of the version number and the release date. For example, "OpenSSL 1.0.1a 15 Oct 2015".</p>
</dd>
<dt id="OPENSSL_CFLAGS">OPENSSL_CFLAGS</dt>
<dd>
<p>The compiler flags set for the compilation process in the form "compiler: ..." if available or "compiler: information not available" otherwise.</p>
</dd>
<dt id="OPENSSL_BUILT_ON">OPENSSL_BUILT_ON</dt>
<dd>
<p>The date of the build process in the form "built on: ..." if available or "built on: date not available" otherwise.</p>
</dd>
<dt id="OPENSSL_PLATFORM">OPENSSL_PLATFORM</dt>
<dd>
<p>The "Configure" target of the library build in the form "platform: ..." if available or "platform: information not available" otherwise.</p>
</dd>
<dt id="OPENSSL_DIR">OPENSSL_DIR</dt>
<dd>
<p>The "OPENSSLDIR" setting of the library build in the form "OPENSSLDIR: "..."" if available or "OPENSSLDIR: N/A" otherwise.</p>
</dd>
<dt id="OPENSSL_ENGINES_DIR">OPENSSL_ENGINES_DIR</dt>
<dd>
<p>The "ENGINESDIR" setting of the library build in the form "ENGINESDIR: "..."" if available or "ENGINESDIR: N/A" otherwise.</p>
</dd>
</dl>
<p>For an unknown <b>t</b>, the text "not available" is returned.</p>
<h1 id="RETURN-VALUES">RETURN VALUES</h1>
<p>OpenSSL_version_num() returns the version number.</p>
<p>OpenSSL_version() returns requested version strings.</p>
<h1 id="SEE-ALSO">SEE ALSO</h1>
<p><a href="../man7/crypto.html">crypto(7)</a></p>
<h1 id="COPYRIGHT">COPYRIGHT</h1>
<p>Copyright 2000-2018 The OpenSSL Project Authors. All Rights Reserved.</p>
<p>Licensed under the OpenSSL license (the "License"). You may not use this file except in compliance with the License. You can obtain a copy in the file LICENSE in the source distribution or at <a href="https://www.openssl.org/source/license.html">https://www.openssl.org/source/license.html</a>.</p>
</body>
</html>