]> WPIA git - cassiopeia.git/blobdiff - src/io/opensslBIO.h
add: implement command chunking especially for FULL_CRL-commands
[cassiopeia.git] / src / io / opensslBIO.h
index a3d7188c02e74800808994edaf98793007e0763c..092fa9cf3a9ff36205b4b15c0d996e1097baab5f 100644 (file)
@@ -2,10 +2,14 @@
 
 #include <memory>
 #include "bios.h"
+#include <vector>
+#include <exception>
 
 class OpensslBIOWrapper : public OpensslBIO {
 private:
     std::shared_ptr<BIO> b;
+    std::vector<char> buffer;
+    int pos = 0;
 public:
     OpensslBIOWrapper( std::shared_ptr<BIO> b );
     virtual ~OpensslBIOWrapper();
@@ -18,4 +22,9 @@ public:
     int gets( char* str, int size );
 
     static const char* getName();
+
+    std::string readLine();
+};
+
+class EOFException : public std::exception{
 };