Commit 75bc7207 authored by jan.koester's avatar jan.koester
Browse files

test

parent aedbae28
Loading
Loading
Loading
Loading
+18 −1
Changes for src/socket.h: 18 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -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;
            }
@@ -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)
@@ -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;

@@ -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;
    };
};
+475 −225

File changed.

Preview size limit exceeded, changes collapsed.