7 int write( BIO *b, const char *buf, int num ) {
8 return static_cast<OpensslBIO *>( b->ptr )->write( buf, num );
11 int read( BIO *b, char *buf, int size ) {
12 return static_cast<OpensslBIO *>( b->ptr )->read( buf, size );
15 int puts( BIO *b, const char *str ) {
16 return static_cast<OpensslBIO *>( b->ptr )->puts( str );
19 int gets( BIO *b, char *str, int size ) {
20 return static_cast<OpensslBIO *>( b->ptr )->gets( str, size );
23 long ctrl( BIO *b, int cmod, long arg1, void *arg2 ) {
24 return static_cast<OpensslBIO *>( b->ptr )->ctrl( cmod, arg1, arg2 );
28 delete static_cast<OpensslBIO *>( b->ptr );
35 OpensslBIO::~OpensslBIO() {}
37 int OpensslBIO::puts( const char *str ) {
41 int OpensslBIO::gets( char *str, int size ) {