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

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

<h1>ERR_set_mark(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_set_mark, ERR_pop_to_mark - set marks and pop errors until mark

</P>
<P>
<HR>
<H1><A NAME="SYNOPSIS">SYNOPSIS</A></H1>
<PRE> #include &lt;openssl/err.h&gt;
</PRE>
<PRE> int ERR_set_mark(void);
</PRE>
<PRE> int ERR_pop_to_mark(void);
</PRE>
<P>
<HR>
<H1><A NAME="DESCRIPTION">DESCRIPTION</A></H1>
<P>
<CODE>ERR_set_mark()</CODE> sets a mark on the current topmost error record
if there is one.

</P>
<P>
<CODE>ERR_pop_to_mark()</CODE> will pop the top of the error stack until a
mark is found. The mark is then removed. If there is no mark, the whole
stack is removed.

</P>
<P>
<HR>
<H1><A NAME="RETURN_VALUES">RETURN VALUES</A></H1>
<P>
<CODE>ERR_set_mark()</CODE> returns 0 if the error stack is empty,
otherwise 1.

</P>
<P>
<CODE>ERR_pop_to_mark()</CODE> returns 0 if there was no mark in the error
stack, which implies that the stack became empty, otherwise 1.

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



</P>
<P>
<HR>
<H1><A NAME="HISTORY">HISTORY</A></H1>
<P>
<CODE>ERR_set_mark()</CODE> and <CODE>ERR_pop_to_mark()</CODE> were added
in OpenSSL 0.9.8.

</P>
:}

