Home | History | Annotate | Download | only in base

Lines Matching defs:bio

31 #include <openssl/bio.h>
176 BIO* temp_memory_bio = BIO_new(BIO_s_mem());
178 LOG_F(LS_ERROR) << "Failed to allocate temporary memory bio";
209 BIO* bio = BIO_new_mem_buf(const_cast<char*>(pem_string.c_str()), -1);
210 if (!bio)
212 (void)BIO_set_close(bio, BIO_NOCLOSE);
213 BIO_set_mem_eof_return(bio, 0);
214 X509 *x509 = PEM_read_bio_X509(bio, NULL, NULL,
217 int remaining_length = BIO_get_mem_data(bio, &ptr);
218 BIO_free(bio);
232 BIO* bio = BIO_new(BIO_s_mem());
233 if (!bio)
235 if (!PEM_write_bio_X509(bio, x509_)) {
236 BIO_free(bio);
239 BIO_write(bio, "\0", 1);
241 BIO_get_mem_data(bio, &buffer);
243 BIO_free(bio);