1ERR_SET_MARK(3ossl)                 OpenSSL                ERR_SET_MARK(3ossl)
2
3
4

NAME

6       ERR_set_mark, ERR_clear_last_mark, ERR_pop_to_mark - set mark, clear
7       mark and pop errors until mark
8

SYNOPSIS

10        #include <openssl/err.h>
11
12        int ERR_set_mark(void);
13        int ERR_pop_to_mark(void);
14        int ERR_clear_last_mark(void);
15

DESCRIPTION

17       ERR_set_mark() sets a mark on the current topmost error record if there
18       is one.
19
20       ERR_pop_to_mark() will pop the top of the error stack until a mark is
21       found.  The mark is then removed.  If there is no mark, the whole stack
22       is removed.
23
24       ERR_clear_last_mark() removes the last mark added if there is one.
25

RETURN VALUES

27       ERR_set_mark() returns 0 if the error stack is empty, otherwise 1.
28
29       ERR_clear_last_mark() and ERR_pop_to_mark() return 0 if there was no
30       mark in the error stack, which implies that the stack became empty,
31       otherwise 1.
32
34       Copyright 2003-2021 The OpenSSL Project Authors. All Rights Reserved.
35
36       Licensed under the Apache License 2.0 (the "License").  You may not use
37       this file except in compliance with the License.  You can obtain a copy
38       in the file LICENSE in the source distribution or at
39       <https://www.openssl.org/source/license.html>.
40
41
42
433.1.1                             2023-08-31               ERR_SET_MARK(3ossl)
Impressum