ERR_set_mark.pod 1.1 KB

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