Lines Matching defs:bio
207 BIO *PKCS7_dataInit(PKCS7 *p7, BIO *bio)
356 if (bio == NULL) {
358 bio = BIO_new(BIO_s_null());
360 bio = BIO_new_mem_buf(os->data, os->length);
362 bio = BIO_new(BIO_s_mem());
363 if (bio == NULL)
365 BIO_set_mem_eof_return(bio, 0);
367 if (bio == NULL)
371 BIO_push(out, bio);
373 out = bio;
398 BIO *out = NULL, *btmp = NULL, *etmp = NULL, *bio = NULL;
648 bio = in_bio;
651 bio = BIO_new_mem_buf(data_body->data, data_body->length);
653 bio = BIO_new(BIO_s_mem());
654 if (bio == NULL)
656 BIO_set_mem_eof_return(bio, 0);
658 if (bio == NULL)
661 BIO_push(out, bio);
662 bio = NULL;
673 BIO_free_all(bio);
677 static BIO *PKCS7_find_digest(EVP_MD_CTX **pmd, BIO *bio, int nid)
680 bio = BIO_find_type(bio, BIO_TYPE_MD);
681 if (bio == NULL) {
685 BIO_get_md_ctx(bio, pmd);
691 return bio;
692 bio = BIO_next(bio);
727 int PKCS7_dataFinal(PKCS7 *p7, BIO *bio)
823 btmp = bio;
866 if (!PKCS7_find_digest(&mdc, bio,
885 btmp = BIO_find_type(bio, BIO_TYPE_MEM);
960 int PKCS7_dataVerify(X509_STORE *cert_store, X509_STORE_CTX *ctx, BIO *bio,
1009 return PKCS7_signatureVerify(bio, p7, si, x509);
1014 int PKCS7_signatureVerify(BIO *bio, PKCS7 *p7, PKCS7_SIGNER_INFO *si,
1044 btmp = bio;