1 1.1 christos =pod 2 1.1 christos 3 1.1 christos =head1 NAME 4 1.1 christos 5 1.1.1.2 christos ERR_set_mark, ERR_clear_last_mark, ERR_pop_to_mark 6 1.1.1.2 christos - set mark, clear mark and pop errors until mark 7 1.1 christos 8 1.1 christos =head1 SYNOPSIS 9 1.1 christos 10 1.1 christos #include <openssl/err.h> 11 1.1 christos 12 1.1 christos int ERR_set_mark(void); 13 1.1 christos int ERR_pop_to_mark(void); 14 1.1.1.2 christos int ERR_clear_last_mark(void); 15 1.1 christos 16 1.1 christos =head1 DESCRIPTION 17 1.1 christos 18 1.1 christos ERR_set_mark() sets a mark on the current topmost error record if there 19 1.1 christos is one. 20 1.1 christos 21 1.1 christos ERR_pop_to_mark() will pop the top of the error stack until a mark is found. 22 1.1 christos The mark is then removed. If there is no mark, the whole stack is removed. 23 1.1 christos 24 1.1.1.2 christos ERR_clear_last_mark() removes the last mark added if there is one. 25 1.1.1.2 christos 26 1.1 christos =head1 RETURN VALUES 27 1.1 christos 28 1.1 christos ERR_set_mark() returns 0 if the error stack is empty, otherwise 1. 29 1.1 christos 30 1.1.1.2 christos ERR_clear_last_mark() and ERR_pop_to_mark() return 0 if there was no mark in the 31 1.1.1.2 christos error stack, which implies that the stack became empty, otherwise 1. 32 1.1 christos 33 1.1 christos =head1 COPYRIGHT 34 1.1 christos 35 1.1.1.2 christos Copyright 2003-2021 The OpenSSL Project Authors. All Rights Reserved. 36 1.1 christos 37 1.1.1.2 christos Licensed under the Apache License 2.0 (the "License"). You may not use 38 1.1 christos this file except in compliance with the License. You can obtain a copy 39 1.1 christos in the file LICENSE in the source distribution or at 40 1.1 christos L<https://www.openssl.org/source/license.html>. 41 1.1 christos 42 1.1 christos =cut 43