]> WPIA git - cassiopeia.git/blob - src/opensslBIO.h
add: wrapping of openssl-bios into cpp-classes (both directions)
[cassiopeia.git] / src / opensslBIO.h
1 #pragma once
2
3 #include "bios.h"
4
5 class OpensslBIOWrapper : public OpensslBIO {
6 private:
7     BIO* b;
8 public:
9     OpensslBIOWrapper( BIO* b );
10     virtual ~OpensslBIOWrapper();
11
12     int write( const char* buf, int num );
13     int read( char* buf, int size );
14     long ctrl( int cmod, long arg1, void* arg2 );
15
16     int puts( const char* str );
17     int gets( char* str, int size );
18
19     static const char* getName();
20 };