]> WPIA git - cassiopeia.git/blob - src/io/opensslBIO.h
cln: Move code around, cleanup structure
[cassiopeia.git] / src / io / opensslBIO.h
1 #pragma once
2
3 #include <memory>
4 #include "bios.h"
5
6 class OpensslBIOWrapper : public OpensslBIO {
7 private:
8     std::shared_ptr<BIO> b;
9 public:
10     OpensslBIOWrapper( std::shared_ptr<BIO> b );
11     virtual ~OpensslBIOWrapper();
12
13     int write( const char* buf, int num );
14     int read( char* buf, int size );
15     long ctrl( int cmod, long arg1, void* arg2 );
16
17     int puts( const char* str );
18     int gets( char* str, int size );
19
20     static const char* getName();
21 };