Lines Matching refs:bio
299 BIO *bio; in init_from_pem_string() local
305 bio = BIO_new_mem_buf ((gpointer) pem, -1); in init_from_pem_string()
306 g_return_if_fail (bio); in init_from_pem_string()
308 priv->x509 = PEM_read_bio_X509 (bio, NULL, NULL, NULL); in init_from_pem_string()
315 (void) BIO_reset (bio); in init_from_pem_string()
317 priv->private_key = PEM_read_bio_PrivateKey (bio, NULL, NULL, NULL); in init_from_pem_string()
319 BIO_free (bio); in init_from_pem_string()
320 bio = NULL; in init_from_pem_string()
336 BIO *bio; in _gst_dtls_x509_to_pem() local
341 bio = BIO_new (BIO_s_mem ()); in _gst_dtls_x509_to_pem()
342 g_return_val_if_fail (bio, NULL); in _gst_dtls_x509_to_pem()
344 if (!PEM_write_bio_X509 (bio, (X509 *) x509)) { in _gst_dtls_x509_to_pem()
349 len = BIO_read (bio, buffer, GST_DTLS_BIO_BUFFER_SIZE); in _gst_dtls_x509_to_pem()
358 BIO_free (bio); in _gst_dtls_x509_to_pem()