X509_STORE_NEW(3)
okay so welcome to X509_STORE_NEW(3), bestie β this page lives in the Library Functions Manual, and itβs all about the allocation + freeing of X.509 certificate stores π
β¨
π NAME π
X509_STORE_new, X509_STORE_up_ref, X509_STORE_free β allocate and free X.509 certificate stores π
πΈ SYNOPSIS πΈ
first up, the actual signatures β keep these exactly as written, no cap:
library βlibcryptoβ
#include <openssl/x509_vfy.h>
X509_STORE *
X509_STORE_new(void);
int
X509_STORE_up_ref(X509_STORE *store);
void
X509_STORE_free(X509_STORE *store);
π¦ DESCRIPTION π¦
okay so hereβs the vibe check on these three functions:
X509_STORE_new(void)β allocates and initializes an empty X.509 certificate store, and sets its reference count to1β¨X509_STORE_up_ref(X509_STORE *store)β increments the reference count ofstoreby1π«ΆX509_STORE_free(X509_STORE *store)β decrements the reference count ofstoreby1. If the reference count reaches0, all resources used by the store, including all certificates contained in it, are released andstoreitself is freed. Ifstoreis aNULLpointer, no action occurs π
β¨ RETURN VALUES β¨
X509_STORE_new()returns a newly createdX509_STOREobject orNULLif an error occurs πX509_STORE_up_ref()returns1for success and0for failure β thatβs the whole return tea π΅
π SEE ALSO π
go sip some more manpages, bestie π«Ά:
PKCS7_verify(3)SSL_CTX_set_cert_store(3)X509_load_cert_file(3)X509_LOOKUP_hash_dir(3)X509_OBJECT_get0_X509(3)X509_STORE_CTX_new(3)X509_STORE_get_ex_new_index(3)X509_STORE_load_locations(3)X509_STORE_set1_param(3)X509_STORE_set_verify_cb(3)X509_verify_cert(3)
π HISTORY π
X509_STORE_new()andX509_STORE_free()first appeared inSSLeay 0.8.0and have been available sinceOpenBSD 2.4πX509_STORE_up_ref()first appeared inOpenSSL 1.1.0and has been available sinceOpenBSD 6.3β
okay thatβs the page, bestie β mwah ππ«Ά. this footer tea is from Debian, dated June 8, 2025.
π¦ 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) 2018 Ingo Schwarze <schwarze@openbsd.org>
- Copyright (c) 2016 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