ossl_cmp_X509_STORE_add1_certs.pod 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. =pod
  2. =head1 NAME
  3. ossl_cmp_X509_STORE_add1_certs,
  4. ossl_cmp_X509_STORE_get1_certs
  5. - functions manipulating stores of certificates
  6. =head1 SYNOPSIS
  7. #include <openssl/cmp_util.h>
  8. int ossl_cmp_X509_STORE_add1_certs(X509_STORE *store, STACK_OF(X509) *certs,
  9. int only_self_signed);
  10. STACK_OF(X509) *ossl_cmp_X509_STORE_get1_certs(X509_STORE *store);
  11. =head1 DESCRIPTION
  12. ossl_cmp_X509_STORE_add1_certs() adds all or only self-signed certificates from
  13. the given stack to given store. The I<certs> parameter may be NULL.
  14. ossl_cmp_X509_STORE_get1_certs() retrieves a copy of all certificates in the
  15. given store.
  16. =head1 RETURN VALUES
  17. ossl_cmp_X509_STORE_add1_certs() returns 1 on success, 0 on error.
  18. ossl_cmp_X509_STORE_get1_certs() returns a list of certificates, NULL on error.
  19. =head1 HISTORY
  20. The OpenSSL CMP support was added in OpenSSL 3.0.
  21. =head1 COPYRIGHT
  22. Copyright 2007-2020 The OpenSSL Project Authors. All Rights Reserved.
  23. Licensed under the Apache License 2.0 (the "License"). You may not use
  24. this file except in compliance with the License. You can obtain a copy
  25. in the file LICENSE in the source distribution or at
  26. L<https://www.openssl.org/source/license.html>.
  27. =cut