From 863fc12c6ebcc96ed10a7c8896fea033a78fbb5d Mon Sep 17 00:00:00 2001 From: Juraj Somorovsky Date: Sat, 17 Sep 2016 14:44:40 +0200 Subject: New TLS positive and negative tests. TLS message parsing: - CertificateVerify - HelloVerify - ClientHello (with extensions) - ServerHello (with extensions) - NewSessionTicket - Alert TLS message processing: - HelloVerify TLS Policy tests Unit tests with TLS client authentication Added test_throws method that checks the correct exception message. --- src/lib/tls/tls_extensions.h | 2 +- src/lib/tls/tls_messages.h | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'src/lib') diff --git a/src/lib/tls/tls_extensions.h b/src/lib/tls/tls_extensions.h index 4bd564a85..c270bf23a 100644 --- a/src/lib/tls/tls_extensions.h +++ b/src/lib/tls/tls_extensions.h @@ -366,7 +366,7 @@ class Encrypt_then_MAC final : public Extension /** * Represents a block of extensions in a hello message */ -class Extensions +class BOTAN_DLL Extensions { public: std::set extension_types() const; diff --git a/src/lib/tls/tls_messages.h b/src/lib/tls/tls_messages.h index cf35053f2..698dbc99f 100644 --- a/src/lib/tls/tls_messages.h +++ b/src/lib/tls/tls_messages.h @@ -40,7 +40,7 @@ std::vector make_hello_random(RandomNumberGenerator& rng, /** * DTLS Hello Verify Request */ -class Hello_Verify_Request final : public Handshake_Message +class BOTAN_DLL Hello_Verify_Request final : public Handshake_Message { public: std::vector serialize() const override; @@ -60,7 +60,7 @@ class Hello_Verify_Request final : public Handshake_Message /** * Client Hello Message */ -class Client_Hello final : public Handshake_Message +class BOTAN_DLL Client_Hello final : public Handshake_Message { public: class Settings @@ -234,7 +234,7 @@ class Client_Hello final : public Handshake_Message /** * Server Hello Message */ -class Server_Hello final : public Handshake_Message +class BOTAN_DLL Server_Hello final : public Handshake_Message { public: class Settings @@ -452,7 +452,7 @@ class Certificate_Req final : public Handshake_Message /** * Certificate Verify Message */ -class Certificate_Verify final : public Handshake_Message +class BOTAN_DLL Certificate_Verify final : public Handshake_Message { public: Handshake_Type type() const override { return CERTIFICATE_VERIFY; } @@ -510,7 +510,7 @@ class Finished final : public Handshake_Message /** * Hello Request Message */ -class Hello_Request final : public Handshake_Message +class BOTAN_DLL Hello_Request final : public Handshake_Message { public: Handshake_Type type() const override { return HELLO_REQUEST; } @@ -592,7 +592,7 @@ class Server_Hello_Done final : public Handshake_Message /** * New Session Ticket Message */ -class New_Session_Ticket final : public Handshake_Message +class BOTAN_DLL New_Session_Ticket final : public Handshake_Message { public: Handshake_Type type() const override { return NEW_SESSION_TICKET; } -- cgit v1.2.3