ERR_SET_MARK(3)
π ERR_set_mark / ERR_pop_to_mark β set marks and pop OpenSSL errors until mark π
Hey bestie! Welcome to the ERR_SET_MARK(3) manual page. This is all about marking errors and popping them like it's hot. Let's get into it π
β¨ NAME β¨
ERR_set_mark, ERR_pop_to_mark β set marks and pop OpenSSL errors until mark
πΈ SYNOPSIS πΈ
library βlibcryptoβ #include <openssl/err.h>
int
ERR_set_mark(void);
int
ERR_pop_to_mark(void);
π¦ DESCRIPTION π¦
Okay so bestie, ERR_set_mark() is literally the main character here. It sets a mark on the current topmost error recordβif there is one, no cap. Think of it like putting a pin in your fave outfit so you can come back to it later π
.
Then ERR_pop_to_mark()? It pops the top of the error stack until it finds that mark. The mark gets removed, periodt. But if there's no mark? The whole stack is gone, bye π. So like, careful with that one, fr fr.
π RETURN VALUES π
Here's the vibe check on return values:
ERR_set_mark()returns0if the error stack is empty, otherwise1. Simple.ERR_pop_to_mark()returns0if there was no mark in the error stack, which implies that the stack became empty (yikes), otherwise1.
π₯ SEE ALSO π₯
You should also peek at ERR(3) β it's giving related content, iykyk.
π HISTORY π
Fun fact: ERR_set_mark() and ERR_pop_to_mark() first appeared in OpenSSL 0.9.8 and have been available since OpenBSD 4.5. So they're lowkey iconic at this point, ngl.
This page was brought to you by Debian, June 8, 2025, and the letters ERR. Slay π
π¦ where this page comes from
- alpine 3.24: libressl-doc 4.3.1-r0 Β· custom
- arch rolling: libressl 4.4.0-1 Β· ISC AND custom:OpenSSL
- Copyright (c) 2003 The OpenSSL Project. All rights reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms