xref: /freebsd/crypto/openssl/doc/man3/X509_STORE_new.pod (revision a7148ab39c03abd4d1a84997c70bf96f15dd2a09)
1e71b7053SJung-uk Kim=pod
2e71b7053SJung-uk Kim
3e71b7053SJung-uk Kim=head1 NAME
4e71b7053SJung-uk Kim
5b077aed3SPierre ProncheryX509_STORE_new, X509_STORE_up_ref, X509_STORE_free,
6b077aed3SPierre ProncheryX509_STORE_lock,X509_STORE_unlock
7b077aed3SPierre Pronchery- X509_STORE allocation, freeing and locking functions
8e71b7053SJung-uk Kim
9e71b7053SJung-uk Kim=head1 SYNOPSIS
10e71b7053SJung-uk Kim
11e71b7053SJung-uk Kim #include <openssl/x509_vfy.h>
12e71b7053SJung-uk Kim
13e71b7053SJung-uk Kim X509_STORE *X509_STORE_new(void);
14e71b7053SJung-uk Kim void X509_STORE_free(X509_STORE *v);
15e71b7053SJung-uk Kim int X509_STORE_lock(X509_STORE *v);
16e71b7053SJung-uk Kim int X509_STORE_unlock(X509_STORE *v);
17e71b7053SJung-uk Kim int X509_STORE_up_ref(X509_STORE *v);
18e71b7053SJung-uk Kim
19e71b7053SJung-uk Kim=head1 DESCRIPTION
20e71b7053SJung-uk Kim
21e71b7053SJung-uk KimThe X509_STORE_new() function returns a new X509_STORE.
22e71b7053SJung-uk Kim
23e71b7053SJung-uk KimX509_STORE_up_ref() increments the reference count associated with the
24e71b7053SJung-uk KimX509_STORE object.
25e71b7053SJung-uk Kim
26e71b7053SJung-uk KimX509_STORE_lock() locks the store from modification by other threads,
27da327cd2SJung-uk KimX509_STORE_unlock() unlocks it.
28e71b7053SJung-uk Kim
29e71b7053SJung-uk KimX509_STORE_free() frees up a single X509_STORE object.
30*a7148ab3SEnji CooperIf the argument is NULL, nothing is done.
31e71b7053SJung-uk Kim
32e71b7053SJung-uk Kim=head1 RETURN VALUES
33e71b7053SJung-uk Kim
34e71b7053SJung-uk KimX509_STORE_new() returns a newly created X509_STORE or NULL if the call fails.
35e71b7053SJung-uk Kim
36e71b7053SJung-uk KimX509_STORE_up_ref(), X509_STORE_lock() and X509_STORE_unlock() return
37e71b7053SJung-uk Kim1 for success and 0 for failure.
38e71b7053SJung-uk Kim
39e71b7053SJung-uk KimX509_STORE_free() does not return values.
40e71b7053SJung-uk Kim
41e71b7053SJung-uk Kim=head1 SEE ALSO
42e71b7053SJung-uk Kim
43e71b7053SJung-uk KimL<X509_STORE_set_verify_cb_func(3)>
44e71b7053SJung-uk KimL<X509_STORE_get0_param(3)>
45e71b7053SJung-uk Kim
46e71b7053SJung-uk Kim=head1 HISTORY
47e71b7053SJung-uk Kim
48e71b7053SJung-uk KimThe X509_STORE_up_ref(), X509_STORE_lock() and X509_STORE_unlock()
496935a639SJung-uk Kimfunctions were added in OpenSSL 1.1.0.
50e71b7053SJung-uk Kim
51e71b7053SJung-uk Kim=head1 COPYRIGHT
52e71b7053SJung-uk Kim
53*a7148ab3SEnji CooperCopyright 2016-2024 The OpenSSL Project Authors. All Rights Reserved.
54e71b7053SJung-uk Kim
55b077aed3SPierre ProncheryLicensed under the Apache License 2.0 (the "License").  You may not use
56e71b7053SJung-uk Kimthis file except in compliance with the License.  You can obtain a copy
57e71b7053SJung-uk Kimin the file LICENSE in the source distribution or at
58e71b7053SJung-uk KimL<https://www.openssl.org/source/license.html>.
59e71b7053SJung-uk Kim
60e71b7053SJung-uk Kim=cut
61