X509_STORE_new.pod 1.5 KB

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