Lines Matching refs:BIO
44 static BIO *BIO_from_keystore(const char *key)
46 BIO *bio = NULL;
49 if (length != -1 && (bio = BIO_new(BIO_s_mem())) != NULL) {
50 BIO_write(bio, value, length);
52 return bio;
60 BIO *ssl_in, *ssl_out;
914 "Failed to create a new BIO for ssl_in");
923 "Failed to create a new BIO for ssl_out");
1163 BIO *bio = BIO_from_keystore(&ca_cert[11]);
1166 if (bio) {
1167 stack = PEM_X509_INFO_read_bio(bio, NULL, NULL, NULL);
1168 BIO_free(bio);
1345 BIO *bio = BIO_from_keystore(&client_cert[11]);
1348 if (bio) {
1349 x509 = PEM_read_bio_X509(bio, NULL, NULL, NULL);
1350 BIO_free(bio);
1653 BIO *bio = BIO_from_keystore(&private_key[11]);
1655 if (bio) {
1656 pkey = PEM_read_bio_PrivateKey(bio, NULL, NULL, NULL);
1657 BIO_free(bio);
1792 BIO *bio;
1800 bio = BIO_new_file(dh_file, "r");
1801 if (bio == NULL) {
1806 dh = PEM_read_bio_DHparams(bio, NULL, NULL, NULL);
1807 BIO_free(bio);
1814 bio = BIO_new_file(dh_file, "r");
1815 if (bio == NULL)
1817 dsa = PEM_read_bio_DSAparams(bio, NULL, NULL, NULL);
1818 BIO_free(bio);