X509_STORE_new.pod 1.5 KB

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