]> WPIA git - cassiopeia.git/blobdiff - src/io/opensslBIO.h
Merge "fmt: whitespace, padding and indentation formatting"
[cassiopeia.git] / src / io / opensslBIO.h
index a3d7188c02e74800808994edaf98793007e0763c..1cf96f89a82c6cefe96223552d004778a9970059 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 eof_exception : public std::exception {
 };