summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/man/ERR_set_mark.3
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/man/ERR_set_mark.3')
-rw-r--r--src/lib/libcrypto/man/ERR_set_mark.335
1 files changed, 35 insertions, 0 deletions
diff --git a/src/lib/libcrypto/man/ERR_set_mark.3 b/src/lib/libcrypto/man/ERR_set_mark.3
new file mode 100644
index 0000000000..e268271418
--- /dev/null
+++ b/src/lib/libcrypto/man/ERR_set_mark.3
@@ -0,0 +1,35 @@
1.Dd $Mdocdate: November 2 2016 $
2.Dt ERR_SET_MARK 3
3.Os
4.Sh NAME
5.Nm ERR_set_mark ,
6.Nm ERR_pop_to_mark
7.Nd set marks and pop OpenSSL errors until mark
8.Sh SYNOPSIS
9.In openssl/err.h
10.Ft int
11.Fn ERR_set_mark void
12.Ft int
13.Fn ERR_pop_to_mark void
14.Sh DESCRIPTION
15.Fn ERR_set_mark
16sets a mark on the current topmost error record if there is one.
17.Pp
18.Fn ERR_pop_to_mark
19will pop the top of the error stack until a mark is found.
20The mark is then removed.
21If there is no mark, the whole stack is removed.
22.Sh RETURN VALUES
23.Fn ERR_set_mark
24returns 0 if the error stack is empty, otherwise 1.
25.Pp
26.Fn ERR_pop_to_mark
27returns 0 if there was no mark in the error stack, which implies that
28the stack became empty, otherwise 1.
29.Sh SEE ALSO
30.Xr ERR 3
31.Sh HISTORY
32.Fn ERR_set_mark
33and
34.Fn ERR_pop_to_mark
35were added in OpenSSL 0.9.8.