Lines Matching refs:bio
484 BIO *bio = BIO_from_android(CAfile); local
489 if (!bio) {
492 stack = PEM_X509_INFO_read_bio(bio, NULL, NULL, NULL);
493 BIO_free(bio);
803 BIO *bio = NULL; local
813 bio = BIO_new(BIO_s_mem());
814 if (bio == NULL)
817 error = X509_print(bio, x509);
824 len = BIO_get_mem_data(bio, (char**) &bp);
826 len = BIO_get_mem_data(bio, &bp);
844 if (bio)
845 BIO_free(bio);
869 BIO *bio; local
872 bio = BIO_new(BIO_s_mem());
873 if (bio == NULL)
875 len = BIO_write(bio, cert->v, cert->l);
878 x509 = PEM_read_bio_X509(bio, NULL, NULL, NULL);
879 BIO_free(bio);
907 BIO *bio = BIO_from_android(path); local
908 if (!bio) {
911 x509 = PEM_read_bio_X509(bio, NULL, NULL, NULL);
912 BIO_free(bio);
1017 BIO *bio = BIO_from_android(path); local
1018 if (!bio) {
1021 evp = PEM_read_bio_PrivateKey(bio, NULL, NULL, NULL);
1022 BIO_free(bio);
2637 BIO *bio=NULL, *b64=NULL; in base64_decode()
2645 bio = BIO_new_mem_buf(in, inlen); in base64_decode()
2648 bio = BIO_push(b64, bio); in base64_decode()
2650 outlen = BIO_read(bio, outb, inlen * 2); in base64_decode()
2665 if (bio) in base64_decode()
2666 BIO_free_all(bio); in base64_decode()
2690 BIO *bio=NULL, *b64=NULL; in base64_encode()
2695 bio = BIO_new(BIO_s_mem()); in base64_encode()
2698 bio = BIO_push(b64, bio); in base64_encode()
2700 BIO_write(bio, in, inlen); in base64_encode()
2701 BIO_flush(bio); in base64_encode()
2703 plen = BIO_get_mem_data(bio, &ptr); in base64_encode()
2712 if (bio) in base64_encode()
2713 BIO_free_all(bio); in base64_encode()