
#use wml::openssl-macros area=docs page=SSLeay_version

<title>Documents, SSLeay_version(3)</title>

<h1>SSLeay_version(3)</h1>

#use wml::imp::generic

{:
## What's this? [[s|(<STRONG>[^<].+?)</A>(</STRONG><DD>)|$1$2|sg]]
[[s|<P>\s+<P>|<P>|sg]]
[[s|<P>\s+</|</|sg]]
[[s|<DD>\s*<DT>|<DD>&nbsp;<DT>|sg]]
[[s|<DD>\s*</DL>|<DD>&nbsp;</DL>|sg]]
[[s|\[|&#91;|sg]]
[[s|\]|&#93;|sg]]

<!-- INDEX BEGIN -->

<UL>

	<LI><A HREF="#NAME">NAME</A>
	<LI><A HREF="#SYNOPSIS">SYNOPSIS</A>
	<LI><A HREF="#DESCRIPTION">DESCRIPTION</A>
	<LI><A HREF="#RETURN_VALUES">RETURN VALUES</A>
	<LI><A HREF="#SEE_ALSO">SEE ALSO</A>
	<LI><A HREF="#HISTORY">HISTORY</A>
</UL>
<!-- INDEX END -->

<HR>
<P>
<HR>
<H1><A NAME="NAME">NAME</A></H1>
<P>
SSLeay_version - retrieve version/build information about OpenSSL library

</P>
<P>
<HR>
<H1><A NAME="SYNOPSIS">SYNOPSIS</A></H1>
<PRE> #include &lt;openssl/crypto.h&gt;
</PRE>
<PRE> const char *SSLeay_version(int type);
</PRE>
<P>
<HR>
<H1><A NAME="DESCRIPTION">DESCRIPTION</A></H1>
<P>
<CODE>SSLeay_version()</CODE> returns a pointer to a constant string
describing the version of the OpenSSL library or giving information about
the library build.

</P>
<P>
The following <STRONG>type</STRONG> values are supported:

</P>
<DL>
<DT><STRONG><A NAME="item_SSLEAY_VERSION">SSLEAY_VERSION</A></STRONG><DD>
<P>
The version of the OpenSSL library including the release date.

</P>
<DT><STRONG><A NAME="item_SSLEAY_CFLAGS">SSLEAY_CFLAGS</A></STRONG><DD>
<P>
The compiler flags set for the compilation process in the form ``compiler:
...'' if available or ``compiler: information not available'' otherwise.

</P>
<DT><STRONG><A NAME="item_SSLEAY_BUILT_ON">SSLEAY_BUILT_ON</A></STRONG><DD>
<P>
The date of the build process in the form ``built on: ...'' if available or
``built on: date not available'' otherwise.

</P>
<DT><STRONG><A NAME="item_SSLEAY_PLATFORM">SSLEAY_PLATFORM</A></STRONG><DD>
<P>
The ``Configure'' target of the library build in the form ``platform: ...''
if available or ``platform: information not available'' otherwise.

</P>
<DT><STRONG><A NAME="item_SSLEAY_DIR">SSLEAY_DIR</A></STRONG><DD>
<P>
The ``OPENSSLDIR'' setting of the library build in the form ``OPENSSLDIR:
''...``'' if available or ``OPENSSLDIR: N/A'' otherwise.

</P>
</DL>
<P>
<HR>
<H1><A NAME="RETURN_VALUES">RETURN VALUES</A></H1>
<P>
The following return values can occur:

</P>
<DL>
<DT><STRONG><A NAME="item__not">"not available"</A></STRONG><DD>
<P>
An invalid value for <STRONG>type</STRONG> was given.

</P>
<DT><STRONG><A NAME="item_Pointer">Pointer to constant string</A></STRONG><DD>
<P>
Textual description.

</P>
</DL>
<P>
<HR>
<H1><A NAME="SEE_ALSO">SEE ALSO</A></H1>
<P>
<A HREF="../crypto/crypto.html#">crypto(3)</A>



</P>
<P>
<HR>
<H1><A NAME="HISTORY">HISTORY</A></H1>
<P>
<STRONG>SSLEAY_DIR</STRONG> was added in OpenSSL 0.9.7.

</P>
:}


