Home | History | Annotate | Download | only in racoon

Lines Matching refs:BIO

440 static BIO *BIO_from_keystore(char *key)
442 BIO *bio = NULL;
445 if (length != -1 && (bio = BIO_new(BIO_s_mem())) != NULL) {
446 BIO_write(bio, value, length);
448 return bio;
497 BIO *bio = BIO_from_keystore(CAfile);
502 if (!bio) {
505 stack = PEM_X509_INFO_read_bio(bio, NULL, NULL, NULL);
506 BIO_free(bio);
797 BIO *bio = NULL;
807 bio = BIO_new(BIO_s_mem());
808 if (bio == NULL)
811 error = X509_print(bio, x509);
817 len = BIO_get_mem_data(bio, &bp);
834 if (bio)
835 BIO_free(bio);
859 BIO *bio;
862 bio = BIO_new(BIO_s_mem());
863 if (bio == NULL)
865 len = BIO_write(bio, cert->v, cert->l);
868 x509 = PEM_read_bio_X509(bio, NULL, NULL, NULL);
869 BIO_free(bio);
896 BIO *bio = BIO_from_keystore(path);
898 if (bio) {
899 x509 = PEM_read_bio_X509(bio, NULL, NULL, NULL);
900 BIO_free(bio);
1002 BIO *bio = BIO_from_keystore(path);
1003 if (bio) {
1004 evp = PEM_read_bio_PrivateKey(bio, NULL, NULL, NULL);
1005 BIO_free(bio);
2568 BIO *bio=NULL, *b64=NULL;
2576 bio = BIO_new_mem_buf(in, inlen);
2579 bio = BIO_push(b64, bio);
2581 outlen = BIO_read(bio, outb, inlen * 2);
2596 if (bio)
2597 BIO_free_all(bio);
2605 BIO *bio=NULL, *b64=NULL;
2610 bio = BIO_new(BIO_s_mem());
2613 bio = BIO_push(b64, bio);
2615 BIO_write(bio, in, inlen);
2616 BIO_flush(bio);
2618 plen = BIO_get_mem_data(bio, &ptr);
2627 if (bio)
2628 BIO_free_all(bio);