aboutsummaryrefslogtreecommitdiffstats
path: root/src/tls/tls_messages.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2012-01-20 13:52:54 +0000
committerlloyd <[email protected]>2012-01-20 13:52:54 +0000
commitf7f94a9ade8869caca24aed9bde92bce117991f7 (patch)
tree281baefc47b4ad9287a4b48d9c5d55dec32278fd /src/tls/tls_messages.h
parent4c3d3e1c56451c635fb81dadfb249ce1856af0ce (diff)
Many fixes for TLS 1.2 though some things in particular client auth
remain broken. New interface for querying the TLS extensions, much cleaner.
Diffstat (limited to 'src/tls/tls_messages.h')
-rw-r--r--src/tls/tls_messages.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/tls/tls_messages.h b/src/tls/tls_messages.h
index 9ea0b1a2d..95c1ba0a0 100644
--- a/src/tls/tls_messages.h
+++ b/src/tls/tls_messages.h
@@ -258,21 +258,22 @@ class Certificate_Req : public Handshake_Message
public:
Handshake_Type type() const { return CERTIFICATE_REQUEST; }
- std::vector<Certificate_Type> acceptable_types() const { return types; }
+ std::vector<byte> acceptable_types() const { return cert_types; }
std::vector<X509_DN> acceptable_CAs() const { return names; }
Certificate_Req(Record_Writer& writer,
TLS_Handshake_Hash& hash,
const std::vector<X509_Certificate>& allowed_cas,
- const std::vector<Certificate_Type>& types =
- std::vector<Certificate_Type>());
+ Version_Code version);
- Certificate_Req(const MemoryRegion<byte>& buf);
+ Certificate_Req(const MemoryRegion<byte>& buf,
+ Version_Code version);
private:
MemoryVector<byte> serialize() const;
std::vector<X509_DN> names;
- std::vector<Certificate_Type> types;
+ std::vector<byte> cert_types;
+ MemoryVector<byte> sig_and_hash_algos; // for TLS 1.2
};
/**
@@ -296,7 +297,8 @@ class Certificate_Verify : public Handshake_Message
RandomNumberGenerator& rng,
const Private_Key* key);
- Certificate_Verify(const MemoryRegion<byte>& buf);
+ Certificate_Verify(const MemoryRegion<byte>& buf,
+ Version_Code version);
private:
MemoryVector<byte> serialize() const;