X-Git-Url: https://code.wpia.club/?a=blobdiff_plain;f=test%2Fsrc%2FbioWrapper.cpp;h=aaf3ecc67939fdd740d5124534eb8df8106015bb;hb=128643d9008941e2e09e25ab23ba9d4844af4cc8;hp=a2706f8bab7ca4a45b84cf8800621c6ed29b0876;hpb=b96ef8b6ed1da29999800fbfd681b153de75bb72;p=cassiopeia.git diff --git a/test/src/bioWrapper.cpp b/test/src/bioWrapper.cpp index a2706f8..aaf3ecc 100644 --- a/test/src/bioWrapper.cpp +++ b/test/src/bioWrapper.cpp @@ -1,9 +1,7 @@ -#include - #include -#include "bios.h" -#include "opensslBIO.h" +#include "io/bios.h" +#include "io/opensslBIO.h" class OpensslBIO1 : public OpensslBIO { public: @@ -21,17 +19,20 @@ int OpensslBIO1::write( const char* buf, int num ) { ( void ) buf; return 0; } + int OpensslBIO1::read( char* buf, int size ) { state = size * 3; ( void ) buf; return 0; } + long OpensslBIO1::ctrl( int cmod, long arg1, void* arg2 ) { state = cmod * 7; ( void ) arg1; ( void ) arg2; return 0; } + const char* OpensslBIO1::getName() { return "dummyBIO"; }