Lines Matching refs:bio
3774 BIO *bio = NULL;
3778 if ((bio = BIO_new(BIO_s_mem())) == NULL)
3783 success = PEM_write_bio_DSAPrivateKey(bio, key->dsa,
3788 success = PEM_write_bio_ECPrivateKey(bio, key->ecdsa,
3793 success = PEM_write_bio_RSAPrivateKey(bio, key->rsa,
3804 if ((blen = BIO_get_mem_data(bio, &bptr)) <= 0) {
3812 BIO_free(bio);
3928 BIO *bio = NULL;
3934 if ((bio = BIO_new(BIO_s_mem())) == NULL || sshbuf_len(blob) > INT_MAX)
3936 if (BIO_write(bio, sshbuf_ptr(blob), sshbuf_len(blob)) !=
3943 if ((pk = PEM_read_bio_PrivateKey(bio, NULL, pem_passphrase_cb,
4018 BIO_free(bio);