=pod =head1 NAME PEM_X509_INFO_read_bio_ex, PEM_X509_INFO_read_ex - read PEM-encoded data structures into one or more B objects =head1 SYNOPSIS #include STACK_OF(X509_INFO) *PEM_X509_INFO_read_ex(FILE *fp, STACK_OF(X509_INFO) *sk, pem_password_cb *cb, void *u, OSSL_LIB_CTX *libctx, const char *propq); STACK_OF(X509_INFO) *PEM_X509_INFO_read_bio_ex(BIO *bio, STACK_OF(X509_INFO) *sk, pem_password_cb *cb, void *u, OSSL_LIB_CTX *libctx, const char *propq); =head1 DESCRIPTION PEM_X509_INFO_read_ex() loads the B objects from a file I. PEM_X509_INFO_read_bio_ex loads the B objects using a bio I. Each of the loaded B objects can contain a CRL, a certificate, and/or a private key. The elements are read sequentially, and as far as they are of different type than the elements read before, they are combined into the same B object. The idea behind this is that if, for instance, a certificate is followed by a private key, the private key is supposed to correspond to the certificate. If the input stack I is NULL a new stack is allocated, else the given stack is extended. The optional I and I parameters can be used for providing a pass phrase needed for decrypting encrypted PEM structures (normally only private keys). See L and L for details. The library context I and property query are used for fetching algorithms from providers. =head1 RETURN VALUES PEM_X509_INFO_read_ex() and PEM_X509_INFO_read_bio_ex() return a stack of B objects or NULL on failure. =head1 SEE ALSO L, L, L =head1 HISTORY The functions PEM_X509_INFO_read_ex() and PEM_X509_INFO_read_bio_ex() were added in OpenSSL 3.0. =head1 COPYRIGHT Copyright 2020-2021 The OpenSSL Project Authors. All Rights Reserved. Licensed under the Apache License 2.0 (the "License"). You may not use this file except in compliance with the License. You can obtain a copy in the file LICENSE in the source distribution or at L. =cut