diff options
author | Nils Larsch <nils@openssl.org> | 2006-11-29 20:54:57 +0000 |
---|---|---|
committer | Nils Larsch <nils@openssl.org> | 2006-11-29 20:54:57 +0000 |
commit | 7806f3dd4b44a0de379b4b8ac3ffc0fc8f249415 (patch) | |
tree | feb5a2ce0100e392703a4989d658fa251e016d01 /crypto/bio/bio_lib.c | |
parent | 1e24b3a09e31b10649e5024b502ac3d7276923fe (diff) |
replace macros with functions
Submitted by: Tracy Camp <tracyx.e.camp@intel.com>
Diffstat (limited to 'crypto/bio/bio_lib.c')
-rw-r--r-- | crypto/bio/bio_lib.c | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/crypto/bio/bio_lib.c b/crypto/bio/bio_lib.c index dcc989f9d6..3f52ae953c 100644 --- a/crypto/bio/bio_lib.c +++ b/crypto/bio/bio_lib.c @@ -141,6 +141,52 @@ int BIO_free(BIO *a) void BIO_vfree(BIO *a) { BIO_free(a); } +void BIO_clear_flags(BIO *b, int flags) + { + b->flags &= ~flags; + } + +int BIO_test_flags(const BIO *b, int flags) + { + return (b->flags & flags); + } + +void BIO_set_flags(BIO *b, int flags) + { + b->flags |= flags; + } + +long (*BIO_get_callback(const BIO *b))(struct bio_st *,int,const char *,int, long,long) + { + return b->callback; + } + +void BIO_set_callback(BIO *b, long (*cb)(struct bio_st *,int,const char *,int, long,long)) + { + b->callback = cb; + } + +void BIO_set_callback_arg(BIO *b, char *arg) + { + b->cb_arg = arg; + } + +char * BIO_get_callback_arg(const BIO *b) + { + return b->cb_arg; + } + +const char * BIO_method_name(const BIO *b) + { + return b->method->name; + } + +int BIO_method_type(const BIO *b) + { + return b->method->type; + } + + int BIO_read(BIO *b, void *out, int outl) { int i; |