Lines Matching full:x509
15 #include <openssl/x509.h>
61 OPENSSL_PUT_ERROR(X509, X509_R_NOT_PKCS7_SIGNED_DATA);
76 OPENSSL_PUT_ERROR(X509, X509_R_BAD_PKCS7_VERSION);
92 int PKCS7_get_certificates(STACK_OF(X509) *out_certs, CBS *cbs) {
105 OPENSSL_PUT_ERROR(X509, X509_R_NO_CERTIFICATES_INCLUDED);
111 X509 *x509;
122 x509 = d2i_X509(NULL, &inp, (long)CBS_len(&cert));
123 if (!x509) {
129 if (sk_X509_push(out_certs, x509) == 0) {
130 X509_free(x509);
144 X509 *x509 = sk_X509_pop(out_certs);
145 X509_free(x509);
175 OPENSSL_PUT_ERROR(X509, X509_R_NO_CRLS_INCLUDED);
221 int PKCS7_get_PEM_certificates(STACK_OF(X509) *out_certs, BIO *pem_bio) {
296 const STACK_OF(X509) *certs = arg;
307 X509 *x509 = sk_X509_value(certs, i);
309 int len = i2d_X509(x509, NULL);
313 i2d_X509(x509, &buf) < 0) {
321 int PKCS7_bundle_certificates(CBB *out, const STACK_OF(X509) *certs) {