Loading src/socket.h +18 −1 Changes for src/socket.h: 18 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -52,7 +52,7 @@ namespace netplus { class buffer { public: buffer(size_t bsize){ data.buf = new char[bsize]; data.buf = new char[bsize](); size = bsize; ptr = false; } Loading Loading @@ -218,6 +218,7 @@ namespace netplus { private: // --- Cryptographic Components --- netplus::x509cert _cert; netplus::x509cert _peer_cert; netplus::rsa _rsa; // Encryption engines (One for sending, one for receiving) Loading @@ -239,6 +240,8 @@ namespace netplus { std::vector<uint8_t> _send_record; size_t _send_off = 0; std::vector<uint8_t> _recv_record; size_t _recv_off = 0; std::vector<uint8_t> _handshake_transcript; Loading Loading @@ -282,6 +285,20 @@ namespace netplus { uint16_t ver, const std::vector<uint8_t>& frag ); std::vector<uint8_t> _decryptRecordCBC( netplus::ssl *cssock, uint8_t recType, uint16_t ver, const std::vector<uint8_t>& frag ); void _sendEncryptedRecord( netplus::ssl *cssock, uint8_t recType, const std::vector<uint8_t>& content ); friend class poll; }; }; src/ssl.cpp +475 −225 File changed.Preview size limit exceeded, changes collapsed. Show changes Loading
src/socket.h +18 −1 Changes for src/socket.h: 18 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -52,7 +52,7 @@ namespace netplus { class buffer { public: buffer(size_t bsize){ data.buf = new char[bsize]; data.buf = new char[bsize](); size = bsize; ptr = false; } Loading Loading @@ -218,6 +218,7 @@ namespace netplus { private: // --- Cryptographic Components --- netplus::x509cert _cert; netplus::x509cert _peer_cert; netplus::rsa _rsa; // Encryption engines (One for sending, one for receiving) Loading @@ -239,6 +240,8 @@ namespace netplus { std::vector<uint8_t> _send_record; size_t _send_off = 0; std::vector<uint8_t> _recv_record; size_t _recv_off = 0; std::vector<uint8_t> _handshake_transcript; Loading Loading @@ -282,6 +285,20 @@ namespace netplus { uint16_t ver, const std::vector<uint8_t>& frag ); std::vector<uint8_t> _decryptRecordCBC( netplus::ssl *cssock, uint8_t recType, uint16_t ver, const std::vector<uint8_t>& frag ); void _sendEncryptedRecord( netplus::ssl *cssock, uint8_t recType, const std::vector<uint8_t>& content ); friend class poll; }; };