/openbsd/lib/libcrypto/bio/ |
H A D | bio.h | 285 DECLARE_STACK_OF(BIO) 533 int BIO_free(BIO *a); 534 int BIO_up_ref(BIO *bio); 541 void BIO_vfree(BIO *a); 554 BIO * BIO_push(BIO *b, BIO *append); 555 BIO * BIO_pop(BIO *b); 557 BIO * BIO_find_type(BIO *b, int bio_type); 558 BIO * BIO_next(BIO *b); 559 void BIO_set_next(BIO *b, BIO *next); 560 BIO * BIO_get_retry_BIO(BIO *bio, int *reason); [all …]
|
H A D | bio_lib.c | 134 BIO * 646 BIO * 647 BIO_push(BIO *b, BIO *bio) in BIO_push() 649 BIO *lb; in BIO_push() 669 BIO * 691 BIO * 725 BIO * 748 BIO * 762 BIO_set_next(BIO *bio, BIO *next) in BIO_set_next() 782 BIO *b; in BIO_free_all() [all …]
|
H A D | bss_null.c | 68 static int null_read(BIO *h, char *buf, int size); 69 static int null_puts(BIO *h, const char *str); 72 static int null_new(BIO *h); 73 static int null_free(BIO *data); 95 null_new(BIO *bi) in null_new() 104 null_free(BIO *a) in null_free() 112 null_read(BIO *b, char *out, int outl) in null_read() 118 null_write(BIO *b, const char *in, int inl) in null_write() 124 null_ctrl(BIO *b, int cmd, long num, void *ptr) in null_ctrl() 150 null_gets(BIO *bp, char *buf, int size) in null_gets() [all …]
|
H A D | bio_meth.c | 62 (*BIO_meth_get_read(const BIO_METHOD *biom))(BIO *, char *, int) in BIO_meth_get_read() 69 BIO_meth_set_read(BIO_METHOD *biom, int (*read)(BIO *, char *, int)) in BIO_meth_set_read() argument 77 (*BIO_meth_get_puts(const BIO_METHOD *biom))(BIO *, const char *) in BIO_meth_get_puts() 84 BIO_meth_set_puts(BIO_METHOD *biom, int (*puts)(BIO *, const char *)) in BIO_meth_set_puts() argument 92 (*BIO_meth_get_gets(const BIO_METHOD *biom))(BIO *, char *, int) in BIO_meth_get_gets() 99 BIO_meth_set_gets(BIO_METHOD *biom, int (*gets)(BIO *, char *, int)) in BIO_meth_set_gets() argument 122 (*BIO_meth_get_create(const BIO_METHOD *biom))(BIO *) in BIO_meth_get_create() 129 BIO_meth_set_create(BIO_METHOD *biom, int (*create)(BIO *)) in BIO_meth_set_create() argument 137 (*BIO_meth_get_destroy(const BIO_METHOD *biom))(BIO *) in BIO_meth_get_destroy() 144 BIO_meth_set_destroy(BIO_METHOD *biom, int (*destroy)(BIO *)) in BIO_meth_set_destroy() argument [all …]
|
H A D | bf_null.c | 70 static int nullf_read(BIO *h, char *buf, int size); 71 static int nullf_puts(BIO *h, const char *str); 74 static int nullf_new(BIO *h); 75 static int nullf_free(BIO *data); 99 nullf_new(BIO *bi) in nullf_new() 108 nullf_free(BIO *a) in nullf_free() 119 nullf_read(BIO *b, char *out, int outl) in nullf_read() 134 nullf_write(BIO *b, const char *in, int inl) in nullf_write() 149 nullf_ctrl(BIO *b, int cmd, long num, void *ptr) in nullf_ctrl() 186 nullf_gets(BIO *bp, char *buf, int size) in nullf_gets() [all …]
|
H A D | bss_log.c | 78 static int slg_puts(BIO *h, const char *str); 80 static int slg_new(BIO *h); 81 static int slg_free(BIO *data); 84 static void xcloselog(BIO* bp); 104 slg_new(BIO *bi) in slg_new() 114 slg_free(BIO *a) in slg_free() 123 slg_write(BIO *b, const char *in, int inl) in slg_write() 174 slg_ctrl(BIO *b, int cmd, long num, void *ptr) in slg_ctrl() 188 slg_puts(BIO *bp, const char *str) in slg_puts() 199 xopenlog(BIO* bp, char* name, int level) in xopenlog() [all …]
|
H A D | bf_nbio.c | 71 static int nbiof_read(BIO *h, char *buf, int size); 72 static int nbiof_puts(BIO *h, const char *str); 75 static int nbiof_new(BIO *h); 76 static int nbiof_free(BIO *data); 106 nbiof_new(BIO *bi) in nbiof_new() 121 nbiof_free(BIO *a) in nbiof_free() 133 nbiof_read(BIO *b, char *out, int outl) in nbiof_read() 164 nbiof_write(BIO *b, const char *in, int inl) in nbiof_write() 204 nbiof_ctrl(BIO *b, int cmd, long num, void *ptr) in nbiof_ctrl() 242 nbiof_gets(BIO *bp, char *buf, int size) in nbiof_gets() [all …]
|
H A D | bss_fd.c | 72 static int fd_puts(BIO *h, const char *str); 75 static int fd_new(BIO *h); 76 static int fd_free(BIO *data); 98 BIO * 101 BIO *ret; in BIO_new_fd() 111 fd_new(BIO *bi) in fd_new() 121 fd_free(BIO *a) in fd_free() 136 fd_read(BIO *b, char *out, int outl) in fd_read() 153 fd_write(BIO *b, const char *in, int inl) in fd_write() 219 fd_puts(BIO *bp, const char *str) in fd_puts() [all …]
|
H A D | bss_file.c | 100 static int file_new(BIO *h); 101 static int file_free(BIO *data); 115 BIO * 118 BIO *ret; in BIO_new_file() 142 BIO * 145 BIO *ret; in BIO_new_fp() 163 file_new(BIO *bi) in file_new() 173 file_free(BIO *a) in file_free() 189 file_read(BIO *b, char *out, int outl) in file_read() 301 file_gets(BIO *bp, char *buf, int size) in file_gets() [all …]
|
H A D | bss_sock.c | 72 static int sock_puts(BIO *h, const char *str); 74 static int sock_new(BIO *h); 75 static int sock_free(BIO *data); 96 BIO * 99 BIO *ret; in BIO_new_socket() 110 sock_new(BIO *bi) in sock_new() 120 sock_free(BIO *a) in sock_free() 136 sock_read(BIO *b, char *out, int outl) in sock_read() 153 sock_write(BIO *b, const char *in, int inl) in sock_write() 168 sock_ctrl(BIO *b, int cmd, long num, void *ptr) in sock_ctrl() [all …]
|
H A D | bio_local.h | 69 int (*bwrite)(BIO *, const char *, int); 70 int (*bread)(BIO *, char *, int); 71 int (*bputs)(BIO *, const char *); 72 int (*bgets)(BIO *, char *, int); 73 long (*ctrl)(BIO *, int, long, void *); 74 int (*create)(BIO *); 75 int (*destroy)(BIO *); 76 long (*callback_ctrl)(BIO *, int, BIO_info_cb *); 123 int BIO_vprintf(BIO *bio, const char *format, va_list args);
|
H A D | bss_bio.c | 89 static int bio_new(BIO *bio); 96 static int bio_make_pair(BIO *bio1, BIO *bio2); 137 bio_new(BIO *bio) in bio_new() 154 bio_free(BIO *bio) in bio_free() 362 BIO *other_bio = ptr; in bio_ctrl() 448 BIO *other_bio = ptr; in bio_ctrl() 469 BIO *other_bio = ptr; in bio_ctrl() 495 bio_make_pair(BIO *bio1, BIO *bio2) in bio_make_pair() 544 bio_destroy_pair(BIO *bio) in bio_destroy_pair() 549 BIO *peer_bio = b->peer; in bio_destroy_pair() [all …]
|
H A D | bss_acpt.c | 87 BIO *bio_chain; 94 static int acpt_new(BIO *h); 95 static int acpt_free(BIO *data); 124 acpt_new(BIO *bi) in acpt_new() 164 acpt_close_socket(BIO *bio) in acpt_close_socket() 178 acpt_free(BIO *a) in acpt_free() 197 acpt_state(BIO *b, BIO_ACCEPT *c) in acpt_state() 199 BIO *bio = NULL, *dbio; in acpt_state() 362 data->bio_chain = (BIO *)ptr; in acpt_ctrl() 441 BIO * [all …]
|
H A D | bss_conn.c | 102 static int conn_new(BIO *h); 103 static int conn_free(BIO *data); 124 conn_state(BIO *b, BIO_CONNECT *c) in conn_state() 332 conn_new(BIO *bi) in conn_new() 344 conn_close_socket(BIO *bio) in conn_close_socket() 359 conn_free(BIO *a) in conn_free() 428 BIO *dbio; in conn_ctrl() 520 dbio = (BIO *)ptr; in conn_ctrl() 574 conn_puts(BIO *bp, const char *str) in conn_puts() 583 BIO * [all …]
|
H A D | bss_mem.c | 90 static int mem_new(BIO *bio); 91 static int mem_free(BIO *bio); 94 static int mem_puts(BIO *bio, const char *in); 122 BIO * 126 BIO *bio; in BIO_new_mem_buf() 155 mem_new(BIO *bio) in mem_new() 175 mem_free(BIO *bio) in mem_free() 197 mem_read(BIO *bio, char *out, int out_len) in mem_read() 222 mem_write(BIO *bio, const char *in, int in_len) in mem_write() 328 mem_gets(BIO *bio, char *out, int out_len) in mem_gets() [all …]
|
/openbsd/regress/lib/libcrypto/bio/ |
H A D | bio_chain.c | 34 static BIO * 35 BIO_prev(BIO *bio) in BIO_prev() 48 BIO *prev; in bio_chain_create() 88 BIO *prev, *next; in bio_chain_pop_test() 196 walk(BIO *(*step)(BIO *), BIO *start, BIO **end, size_t *len) in walk() argument 199 BIO *next = start; in walk() 231 walk_forward(BIO *start, BIO *expected_end, size_t expected_len, in walk_forward() 234 BIO *end; in walk_forward() 244 walk_backward(BIO *expected_start, BIO *end, size_t expected_len, in walk_backward() 247 BIO *start; in walk_backward() [all …]
|
/openbsd/lib/libcrypto/cms/ |
H A D | cms.h | 137 BIO *CMS_dataInit(CMS_ContentInfo *cms, BIO *icont); 154 BIO *BIO_new_CMS(BIO *out, CMS_ContentInfo *cms); 155 int i2d_CMS_bio_stream(BIO *out, CMS_ContentInfo *cms, BIO *in, int flags); 156 int PEM_write_bio_CMS_stream(BIO *out, CMS_ContentInfo *cms, BIO *in, 158 CMS_ContentInfo *SMIME_read_CMS(BIO *bio, BIO **bcont); 159 int SMIME_write_CMS(BIO *bio, CMS_ContentInfo *cms, BIO *data, int flags); 172 int CMS_digest_verify(CMS_ContentInfo *cms, BIO *dcont, BIO *out, 178 size_t keylen, BIO *dcont, BIO *out, unsigned int flags); 187 X509_STORE *store, BIO *dcont, BIO *out, unsigned int flags); 198 BIO *dcont, BIO *out, unsigned int flags); [all …]
|
H A D | cms_io.c | 88 d2i_CMS_bio(BIO *bp, CMS_ContentInfo **cms) in d2i_CMS_bio() 95 i2d_CMS_bio(BIO *bp, CMS_ContentInfo *cms) in i2d_CMS_bio() 103 PEM_read_bio_CMS(BIO *bp, CMS_ContentInfo **x, pem_password_cb *cb, void *u) in PEM_read_bio_CMS() 119 PEM_write_bio_CMS(BIO *bp, const CMS_ContentInfo *x) in PEM_write_bio_CMS() 134 BIO * 135 BIO_new_CMS(BIO *out, CMS_ContentInfo *cms) in BIO_new_CMS() 144 i2d_CMS_bio_stream(BIO *out, CMS_ContentInfo *cms, BIO *in, int flags) in i2d_CMS_bio_stream() 152 PEM_write_bio_CMS_stream(BIO *out, CMS_ContentInfo *cms, BIO *in, int flags) in PEM_write_bio_CMS_stream() 160 SMIME_write_CMS(BIO *bio, CMS_ContentInfo *cms, BIO *data, int flags) in SMIME_write_CMS() 175 SMIME_read_CMS(BIO *bio, BIO **bcont) in SMIME_read_CMS()
|
H A D | cms_smime.c | 71 static BIO * 74 BIO *rbio; in cms_get_text_bio() 88 cms_copy_content(BIO *out, BIO *in, unsigned int flags) in cms_copy_content() 92 BIO *tmpout; in cms_copy_content() 148 do_free_upto(BIO *f, BIO *upto) in do_free_upto() 151 BIO *tbio; in do_free_upto() 165 BIO *cont; in CMS_data() 203 BIO *cont; in CMS_digest_verify() 253 BIO *cont; in CMS_EncryptedData_decrypt() 344 BIO *dcont, BIO *out, unsigned int flags) in CMS_verify() [all …]
|
/openbsd/lib/libcrypto/pkcs7/ |
H A D | pk7_mime.c | 64 BIO * 65 BIO_new_PKCS7(BIO *out, PKCS7 *p7) in BIO_new_PKCS7() 72 i2d_PKCS7_bio_stream(BIO *out, PKCS7 *p7, BIO *in, int flags) in i2d_PKCS7_bio_stream() 79 PEM_write_bio_PKCS7_stream(BIO *out, PKCS7 *p7, BIO *in, int flags) in PEM_write_bio_PKCS7_stream() 87 SMIME_write_PKCS7(BIO *bio, PKCS7 *p7, BIO *data, int flags) in SMIME_write_PKCS7() 106 SMIME_read_PKCS7(BIO *bio, BIO **bcont) in SMIME_read_PKCS7()
|
H A D | pkcs7.h | 269 int i2d_PKCS7_bio(BIO *bp, PKCS7 *p7); 270 int i2d_PKCS7_bio_stream(BIO *out, PKCS7 *p7, BIO *in, int flags); 271 int PEM_write_bio_PKCS7_stream(BIO *out, PKCS7 *p7, BIO *in, int flags); 341 BIO *PKCS7_dataInit(PKCS7 *p7, BIO *bio); 342 int PKCS7_dataFinal(PKCS7 *p7, BIO *bio); 343 BIO *PKCS7_dataDecode(PKCS7 *p7, EVP_PKEY *pkey, BIO *in_bio, X509 *pcert); 375 BIO *data, int flags); 383 BIO *indata, BIO *out, int flags); 399 int SMIME_write_PKCS7(BIO *bio, PKCS7 *p7, BIO *data, int flags); 400 PKCS7 *SMIME_read_PKCS7(BIO *bio, BIO **bcont); [all …]
|
/openbsd/lib/libcrypto/asn1/ |
H A D | bio_asn1.c | 118 static int asn1_bio_read(BIO *h, char *buf, int size); 119 static int asn1_bio_puts(BIO *h, const char *str); 120 static int asn1_bio_gets(BIO *h, char *str, int size); 122 static int asn1_bio_new(BIO *h); 123 static int asn1_bio_free(BIO *data); 152 asn1_bio_new(BIO *b) in asn1_bio_new() 176 asn1_bio_free(BIO *b) in asn1_bio_free() 197 asn1_bio_write(BIO *b, const char *in , int inl) in asn1_bio_write() 335 asn1_bio_read(BIO *b, char *in , int inl) in asn1_bio_read() 343 asn1_bio_puts(BIO *b, const char *str) in asn1_bio_puts() [all …]
|
H A D | bio_ndef.c | 91 BIO *ndef_bio; 93 BIO *out; 100 static int ndef_prefix(BIO *b, unsigned char **pbuf, int *plen, void *parg); 102 static int ndef_suffix(BIO *b, unsigned char **pbuf, int *plen, void *parg); 105 BIO * 106 BIO_new_NDEF(BIO *out, ASN1_VALUE *val, const ASN1_ITEM *it) in BIO_new_NDEF() 109 BIO *asn_bio = NULL, *pop_bio = NULL; in BIO_new_NDEF() 174 ndef_prefix(BIO *b, unsigned char **pbuf, int *plen, void *parg) in ndef_prefix() 200 ndef_prefix_free(BIO *b, unsigned char **pbuf, int *plen, void *parg) in ndef_prefix_free() 217 ndef_suffix_free(BIO *b, unsigned char **pbuf, int *plen, void *parg) in ndef_suffix_free() [all …]
|
/openbsd/lib/libcrypto/evp/ |
H A D | bio_md.c | 72 static int md_read(BIO *h, char *buf, int size); 74 static int md_gets(BIO *h, char *str, int size); 76 static int md_new(BIO *h); 77 static int md_free(BIO *data); 100 md_new(BIO *bi) in md_new() 115 md_free(BIO *a) in md_free() 127 md_read(BIO *b, char *out, int outl) in md_read() 153 md_write(BIO *b, const char *in, int inl) in md_write() 181 md_ctrl(BIO *b, int cmd, long num, void *ptr) in md_ctrl() 187 BIO *dbio; in md_ctrl() [all …]
|
/openbsd/usr.bin/openssl/ |
H A D | apps.h | 139 extern BIO *bio_err; 161 int dump_cert_text(BIO *out, X509 *x); 162 void print_name(BIO *out, const char *title, X509_NAME *nm, 170 int add_oid_section(BIO *err, CONF *conf); 171 X509 *load_cert(BIO *err, const char *file, int format, 181 X509_STORE *setup_verify(BIO *bp, char *CAfile, char *CApath); 184 OCSP_RESPONSE *process_responder(BIO *err, OCSP_REQUEST *req, 189 int load_config(BIO *err, CONF *cnf); 235 int args_verify(char ***pargs, int *pargc, int *badarg, BIO *err, 237 int bio_to_mem(unsigned char **out, int maxlen, BIO *in); [all …]
|