summaryrefslogtreecommitdiffstats
path: root/doc/man3/ERR_set_mark.pod
diff options
context:
space:
mode:
authorHugo Landau <hlandau@openssl.org>2023-11-09 10:27:14 +0000
committerHugo Landau <hlandau@openssl.org>2023-12-21 08:12:06 +0000
commit5304d563359648ae2910cad4f9badc5dd1fc0210 (patch)
treebf57ba116384c798ef88ecd897b627097b4fff15 /doc/man3/ERR_set_mark.pod
parent0225d42bceca561a5d678b0cc4fa982b6afabfea (diff)
ERR: Add ERR_pop()
Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/22674)
Diffstat (limited to 'doc/man3/ERR_set_mark.pod')
-rw-r--r--doc/man3/ERR_set_mark.pod14
1 files changed, 12 insertions, 2 deletions
diff --git a/doc/man3/ERR_set_mark.pod b/doc/man3/ERR_set_mark.pod
index b2c0f7de0a..d6d715e2f6 100644
--- a/doc/man3/ERR_set_mark.pod
+++ b/doc/man3/ERR_set_mark.pod
@@ -2,8 +2,8 @@
=head1 NAME
-ERR_set_mark, ERR_clear_last_mark, ERR_pop_to_mark, ERR_count_to_mark - set
-mark, clear mark and pop errors until mark
+ERR_set_mark, ERR_clear_last_mark, ERR_pop_to_mark, ERR_count_to_mark, ERR_pop -
+set mark, clear mark and pop errors until mark
=head1 SYNOPSIS
@@ -13,6 +13,7 @@ mark, clear mark and pop errors until mark
int ERR_pop_to_mark(void);
int ERR_clear_last_mark(void);
int ERR_count_to_mark(void);
+ int ERR_pop(void);
=head1 DESCRIPTION
@@ -28,6 +29,9 @@ ERR_count_to_mark() returns the number of entries on the error stack above the
most recently marked entry, not including that entry. If there is no mark in the
error stack, the number of entries in the error stack is returned.
+ERR_pop() unconditionally pops a single error entry from the top of the error
+stack (which is the entry obtainable via L<ERR_peek_last_error(3)>).
+
=head1 RETURN VALUES
ERR_set_mark() returns 0 if the error stack is empty, otherwise 1.
@@ -38,6 +42,12 @@ error stack, which implies that the stack became empty, otherwise 1.
ERR_count_to_mark() returns the number of error stack entries found above the
most recent mark, if any, or the total number of error stack entries.
+ERR_pop() returns 1 if an error was popped or 0 if the error stack was empty.
+
+=head1 HISTORY
+
+ERR_pop() was added in OpenSSL 3.3.
+
=head1 COPYRIGHT
Copyright 2003-2023 The OpenSSL Project Authors. All Rights Reserved.