Skip to content

Commit 3c50a39

Browse files
committed
deimos.openssl.bio: Add new BIO functions
1 parent 8ce88c1 commit 3c50a39

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

deimos/openssl/bio.d

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ enum BIO_FLAGS_MEM_RDONLY = 0x200;
239239

240240
alias bio_st BIO;
241241

242+
int BIO_get_new_index();
242243
void BIO_set_flags(BIO* b, int flags);
243244
int BIO_test_flags(const(BIO)* b, int flags);
244245
void BIO_clear_flags(BIO* b, int flags);
@@ -306,6 +307,7 @@ const(char)* BIO_method_name(const(BIO)* b);
306307
int BIO_method_type(const(BIO)* b);
307308

308309
alias typeof(*(ExternC!(void function(bio_st*, int, const(char)*, int, c_long, c_long))).init) bio_info_cb;
310+
alias BIO_info_cb = bio_info_cb;
309311

310312
struct bio_method_st {
311313
int type;
@@ -763,6 +765,30 @@ int BIO_vprintf(BIO* bio, const(char)* format, va_list args);
763765
int BIO_snprintf(char* buf, size_t n, const(char)* format, ...);
764766
int BIO_vsnprintf(char* buf, size_t n, const(char)* format, va_list args);
765767

768+
BIO_METHOD *BIO_meth_new(int type, const char *name);
769+
void BIO_meth_free(BIO_METHOD *biom);
770+
int function(BIO_METHOD *biom) BIO_meth_get_write(BIO *, const char *, int);
771+
int BIO_meth_set_write(BIO_METHOD *biom,
772+
int function(BIO *, const char *, int) write);
773+
int function(BIO_METHOD *biom) BIO_meth_get_read(BIO *, char *, int);
774+
int BIO_meth_set_read(BIO_METHOD *biom,
775+
int function(BIO *, char *, int) read);
776+
int function(BIO_METHOD *biom) BIO_meth_get_puts(BIO *, const char *);
777+
int BIO_meth_set_puts(BIO_METHOD *biom,
778+
int function(BIO *, const char *) puts);
779+
int function(BIO_METHOD *biom) BIO_meth_get_gets(BIO *, char *, int);
780+
int BIO_meth_set_gets(BIO_METHOD *biom,
781+
int function(BIO *, char *, int) gets);
782+
long function(BIO_METHOD *biom) BIO_meth_get_ctrl(BIO *, int, long, void *);
783+
int BIO_meth_set_ctrl(BIO_METHOD *biom,
784+
long function(BIO *, int, long, void *) ctrl);
785+
int function(BIO_METHOD *bion) BIO_meth_get_create(BIO *);
786+
int BIO_meth_set_create(BIO_METHOD *biom, int function(BIO *) create);
787+
int function(BIO_METHOD *biom) BIO_meth_get_destroy(BIO *);
788+
int BIO_meth_set_destroy(BIO_METHOD *biom, int function(BIO *) destroy);
789+
long function(BIO *, int, BIO_info_cb *) BIO_meth_get_callback_ctrl(BIO_METHOD *biom);
790+
int BIO_meth_set_callback_ctrl(BIO_METHOD *biom, long function(BIO *, int, BIO_info_cb *) callback_ctrl);
791+
766792
/* BEGIN ERROR CODES */
767793
/* The following lines are auto generated by the script mkerr.pl. Any changes
768794
* made after this point may be overwritten when the script is next run.

0 commit comments

Comments
 (0)