LIBRESSL-X509_STORE_SET_VERIFY_CB_FUNC(3)
π¦ NAME π¦
X509_STORE_set_verify_cb, X509_STORE_set_verify_cb_func, and X509_STORE_get_verify_cb β the little trio for setting and getting the verification callback, bestie. This is the X509_STORE_SET_VERIFY_CB(3) page from the Library Functions Manual, and it lives in libcrypto. Periodt.
π SYNOPSIS π
okay so first, library:
library βlibcryptoβ #include <openssl/x509_vfy.h>
void
X509_STORE_set_verify_cb(X509_STORE *st,
X509_STORE_CTX_verify_cb verify_cb);
void
X509_STORE_set_verify_cb_func(X509_STORE *st,
X509_STORE_CTX_verify_cb verify_cb);
X509_STORE_CTX_verify_cb
X509_STORE_get_verify_cb(X509_STORE *st);
π DESCRIPTION π
So X509_STORE_set_verify_cb() sets the verification callback of ctx to verify_cb, and it overwrites any existing callback β no stacking, no collecting them like PokΓ©mon, just a clean swap. (The page says ctx right there; Iβm keeping the lore exactly as written π«Ά.)
X509_STORE_set_verify_cb_func() also sets the verification callback, but plot twist: it is implemented as a macro. β¨
The verification callback from an X509_STORE gets inherited by the corresponding X509_STORE_CTX structure when it is initialized. Thatβs lowkey the useful part: it lets you set the verification callback when the X509_STORE_CTX is otherwise inaccessible β for example during S/MIME verification. Iykyk.
π RETURN VALUES π
X509_STORE_get_verify_cb() returns the function pointer set with X509_STORE_set_verify_cb(), or NULL if that function was not called on st. Thatβs it, bestie β no hidden drama.
π₯ SEE ALSO π₯
X509_STORE_CTX_new(3)X509_STORE_CTX_set_verify(3)X509_STORE_CTX_set_verify_cb(3)X509_STORE_new(3)X509_STORE_set_flags(3)X509_verify_cert(3)
π HISTORY π
X509_STORE_set_verify_cb_func()first appeared in SSLeay 0.8.0 and has been available since OpenBSD 2.4.X509_STORE_set_verify_cb()first appeared in OpenSSL 1.0.0 and has been available since OpenBSD 4.9.X509_STORE_get_verify_cb()first appeared in OpenSSL 1.1.0 and has been available since OpenBSD 7.2.
okay thatβs the whole page, bestie π This β¨ Debian β¨ edition of X509_STORE_SET_VERIFY_CB_FUNC(3) is dated June 8, 2025 β mwah, slay, and goodbye ππ¦
π¦ 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) 2009 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