Lines Matching defs:bio
66 BIO *ssl_in, *ssl_out;
937 "Failed to create a new BIO for ssl_in");
946 "Failed to create a new BIO for ssl_out");
1315 static BIO * BIO_from_keystore(const char *key)
1317 BIO *bio = NULL;
1320 if (length != -1 && (bio = BIO_new(BIO_s_mem())) != NULL)
1321 BIO_write(bio, value, length);
1322 return bio;
1419 BIO *bio = BIO_from_keystore(&ca_cert[11]);
1423 if (bio) {
1424 stack = PEM_X509_INFO_read_bio(bio, NULL, NULL, NULL);
1425 BIO_free(bio);
1619 BIO *bio = BIO_from_keystore(&client_cert[11]);
1622 if (bio) {
1623 x509 = PEM_read_bio_X509(bio, NULL, NULL, NULL);
1624 BIO_free(bio);
2018 BIO *bio = BIO_from_keystore(&private_key[11]);
2020 if (bio) {
2021 pkey = PEM_read_bio_PrivateKey(bio, NULL, NULL, NULL);
2022 BIO_free(bio);
2151 BIO *bio;
2159 bio = BIO_new_file(dh_file, "r");
2160 if (bio == NULL) {
2165 dh = PEM_read_bio_DHparams(bio, NULL, NULL, NULL);
2166 BIO_free(bio);
2173 bio = BIO_new_file(dh_file, "r");
2174 if (bio == NULL)
2176 dsa = PEM_read_bio_DSAparams(bio, NULL, NULL, NULL);
2177 BIO_free(bio);
2225 BIO *bio;
2233 bio = BIO_new_file(dh_file, "r");
2234 if (bio == NULL) {
2239 dh = PEM_read_bio_DHparams(bio, NULL, NULL, NULL);
2240 BIO_free(bio);
2247 bio = BIO_new_file(dh_file, "r");
2248 if (bio == NULL)
2250 dsa = PEM_read_bio_DSAparams(bio, NULL, NULL, NULL);
2251 BIO_free(bio);