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