PEM_X509_INFO_read_bio_ex.pod 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. =pod
  2. =head1 NAME
  3. PEM_X509_INFO_read_bio_ex, PEM_X509_INFO_read_ex
  4. - read a PEM-encoded data structure from a bio into one or more B<X509_INFO>
  5. object's
  6. =head1 SYNOPSIS
  7. #include <openssl/pem.h>
  8. STACK_OF(X509_INFO) *PEM_X509_INFO_read_ex(FILE *fp, STACK_OF(X509_INFO) *sk,
  9. pem_password_cb *cb, void *u,
  10. OPENSSL_CTX *libctx,
  11. const char *propq);
  12. STACK_OF(X509_INFO) *PEM_X509_INFO_read_bio_ex(BIO *bio,
  13. STACK_OF(X509_INFO) *sk,
  14. pem_password_cb *cb, void *u,
  15. OPENSSL_CTX *libctx,
  16. const char *propq);
  17. =head1 DESCRIPTION
  18. The loaded B<X509_INFO> object's can contain a CRL, a certificate and a
  19. corresponding private key.
  20. PEM_X509_INFO_read_ex() loads the B<X509_INFO> objects from a file I<fp>.
  21. The library context I<libctx> and property query <propq> are used for fetching
  22. algorithms from providers.
  23. PEM_X509_INFO_read_bio_ex loads the B<X509_INFO> objects using a bio
  24. I<bp>. The library context I<libctx> and property query <propq> are used for
  25. fetching algorithms from providers.
  26. =head1 RETURN VALUES
  27. PEM_X509_INFO_read_ex() and PEM_X509_INFO_read_bio_ex() return
  28. a stack of B<X509_INFO> objects or NULL on failure.
  29. =head1 SEE ALSO
  30. L<PEM_read_bio_ex(3)>,
  31. L<passphrase-encoding(7)>
  32. =head1 HISTORY
  33. The functions PEM_X509_INFO_read_ex() and
  34. PEM_X509_INFO_read_bio_ex() were added in OpenSSL 3.0.
  35. =head1 COPYRIGHT
  36. Copyright 2020 The OpenSSL Project Authors. All Rights Reserved.
  37. Licensed under the Apache License 2.0 (the "License"). You may not use
  38. this file except in compliance with the License. You can obtain a copy
  39. in the file LICENSE in the source distribution or at
  40. L<https://www.openssl.org/source/license.html>.
  41. =cut