Successful decrypt of client handshake!
This commit is contained in:
10
tlv.h
10
tlv.h
@@ -7,16 +7,20 @@ class TLVNode {
|
||||
public:
|
||||
TLVNode(const uint16_t type);
|
||||
TLVNode(const uint16_t type, const std::string value);
|
||||
~TLVNode();
|
||||
|
||||
static TLVNode* Decode(const std::string& input);
|
||||
|
||||
void AppendChild(const TLVNode& child);
|
||||
void AppendChild(TLVNode* child);
|
||||
|
||||
void Encode(std::string *output) const;
|
||||
TLVNode* FindChild(const uint16_t type) const;
|
||||
void Encode(std::string* output) const;
|
||||
bool IsContainer() const;
|
||||
uint16_t GetType() const;
|
||||
const std::string& GetValue() const;
|
||||
|
||||
private:
|
||||
const uint16_t type_;
|
||||
const std::string value_;
|
||||
std::list<TLVNode> children_;
|
||||
std::list<TLVNode*> children_;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user