aboutsummaryrefslogtreecommitdiffstats
path: root/src/tls/tls_extensions.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2012-07-06 23:04:28 +0000
committerlloyd <[email protected]>2012-07-06 23:04:28 +0000
commit6edc224afb91fbd470206c49e60c4392e0beaaa8 (patch)
treebd6795658e1e734311351c8c324cec1b8400c625 /src/tls/tls_extensions.h
parent73929a5a9e4d56bc8d243cd318c95a78385c3539 (diff)
Doxygen comments
Diffstat (limited to 'src/tls/tls_extensions.h')
-rw-r--r--src/tls/tls_extensions.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/tls/tls_extensions.h b/src/tls/tls_extensions.h
index 542ac0a82..60a375ebe 100644
--- a/src/tls/tls_extensions.h
+++ b/src/tls/tls_extensions.h
@@ -47,10 +47,19 @@ enum Handshake_Extension_Type {
class Extension
{
public:
+ /**
+ * @return code number of the extension
+ */
virtual Handshake_Extension_Type type() const = 0;
+ /**
+ * @return serialized binary for the extension
+ */
virtual std::vector<byte> serialize() const = 0;
+ /**
+ * @return if we should encode this extension or not
+ */
virtual bool empty() const = 0;
virtual ~Extension() {}
@@ -211,6 +220,9 @@ class Next_Protocol_Notification : public Extension
std::vector<std::string> m_protocols;
};
+/**
+* Session Ticket Extension (RFC 5077)
+*/
class Session_Ticket : public Extension
{
public:
@@ -219,6 +231,9 @@ class Session_Ticket : public Extension
Handshake_Extension_Type type() const { return static_type(); }
+ /**
+ * @return contents of the session ticket
+ */
const std::vector<byte>& contents() const { return m_ticket; }
/**