Searched refs:bio_mem (Results 1 - 6 of 6) sorted by relevance
/openbsd-current/regress/lib/libcrypto/cms/ |
H A D | cmstest.c | 151 BIO *bio_mem = NULL; local 164 if ((bio_mem = BIO_new_mem_buf(cms_cert_1, -1)) == NULL) 166 if ((cert = PEM_read_bio_X509(bio_mem, NULL, NULL, NULL)) == NULL) 171 BIO_free(bio_mem); 172 if ((bio_mem = BIO_new_mem_buf(cms_key_1, -1)) == NULL) 174 if ((pkey = PEM_read_bio_PrivateKey(bio_mem, NULL, NULL, NULL)) == NULL) 177 BIO_free(bio_mem); 178 if ((bio_mem = BIO_new_mem_buf(cms_msg, -1)) == NULL) 181 if ((ci = CMS_encrypt(certs, bio_mem, EVP_aes_256_cbc(), 0)) == NULL) { 194 BIO_free(bio_mem); 248 BIO *bio_mem = NULL; local [all...] |
/openbsd-current/regress/lib/libcrypto/base64/ |
H A D | base64test.c | 283 BIO *bio_b64, *bio_mem; local 296 bio_mem = BIO_new(BIO_s_mem()); 297 if (bio_mem == NULL) 300 bio_mem = BIO_push(bio_b64, bio_mem); 305 len = BIO_write(bio_mem, bt->in, bt->in_len); 312 if (BIO_flush(bio_mem) < 0) { 329 len = BIO_get_mem_data(bio_mem, &out); 356 BIO_free_all(bio_mem); 365 BIO *bio_b64, *bio_mem; local [all...] |
/openbsd-current/lib/libcrypto/bio/ |
H A D | bss_mem.c | 70 struct bio_mem { struct 76 bio_mem_pending(struct bio_mem *bm) 85 bio_mem_read_ptr(struct bio_mem *bm) 125 struct bio_mem *bm; 157 struct bio_mem *bm; 177 struct bio_mem *bm; 199 struct bio_mem *bm = bio->ptr; 224 struct bio_mem *bm = bio->ptr; 263 struct bio_mem *bm = bio->ptr; 330 struct bio_mem *b [all...] |
/openbsd-current/regress/lib/libcrypto/bio/ |
H A D | Makefile | 7 PROGS += bio_mem
|
/openbsd-current/regress/lib/libcrypto/asn1/ |
H A D | asn1x509.c | 266 BIO *bio_mem = NULL; local 272 if ((bio_mem = BIO_new_mem_buf(dh_test_key, -1)) == NULL) 275 if ((pkey = PEM_read_bio_PrivateKey(bio_mem, NULL, NULL, NULL)) == NULL) { 283 BIO_free_all(bio_mem); 284 if ((bio_mem = BIO_new(BIO_s_mem())) == NULL) 287 if (!PEM_write_bio_PrivateKey(bio_mem, pkey, NULL, NULL, 0, 0, NULL)) { 292 len = BIO_get_mem_data(bio_mem, &data); 334 BIO_free_all(bio_mem); 352 BIO *bio_mem = NULL; local 358 if ((bio_mem 553 BIO *bio_mem = NULL; local 704 BIO *bio_mem = NULL; local [all...] |
/openbsd-current/regress/lib/libcrypto/ec/ |
H A D | ec_asn1_test.c | 103 BIO *bio_mem = NULL; local 147 if ((bio_mem = BIO_new(BIO_s_mem())) == NULL) 150 if ((len = i2d_ECPKParameters_bio(bio_mem, group_a)) < 0) { 155 len = BIO_get_mem_data(bio_mem, &data); 160 if ((group_b = d2i_ECPKParameters_bio(bio_mem, NULL)) == NULL) { 173 BIO_free_all(bio_mem);
|
Completed in 159 milliseconds