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

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

<h1>ERR_load_crypto_strings(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>
ERR_load_crypto_strings, SSL_load_error_strings, ERR_free_strings - load
and free error strings

</P>
<P>
<HR>
<H1><A NAME="SYNOPSIS">SYNOPSIS</A></H1>
<PRE> #include &lt;openssl/err.h&gt;
</PRE>
<PRE> void ERR_load_crypto_strings(void);
 void ERR_free_strings(void);
</PRE>
<PRE> #include &lt;openssl/ssl.h&gt;
</PRE>
<PRE> void SSL_load_error_strings(void);
</PRE>
<P>
<HR>
<H1><A NAME="DESCRIPTION">DESCRIPTION</A></H1>
<P>
<CODE>ERR_load_crypto_strings()</CODE> registers the error strings for all
<STRONG>libcrypto</STRONG> functions. <CODE>SSL_load_error_strings()</CODE> does the same, but also
registers the <STRONG>libssl</STRONG> error strings.

</P>
<P>
One of these functions should be called before generating textual error
messages. However, this is not required when memory usage is an issue.

</P>
<P>
<CODE>ERR_free_strings()</CODE> frees all previously loaded error strings.

</P>
<P>
<HR>
<H1><A NAME="RETURN_VALUES">RETURN VALUES</A></H1>
<P>
<CODE>ERR_load_crypto_strings(),</CODE>
<CODE>SSL_load_error_strings()</CODE> and <CODE>ERR_free_strings()</CODE>
return no values.

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



</P>
<P>
<HR>
<H1><A NAME="HISTORY">HISTORY</A></H1>
<P>
<CODE>ERR_load_error_strings(),</CODE>
<CODE>SSL_load_error_strings()</CODE> and <CODE>ERR_free_strings()</CODE>
are available in all versions of SSLeay and OpenSSL.

</P>
:}


