aboutsummaryrefslogtreecommitdiffstats
path: root/src/ssl/tls_connection.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2011-12-23 16:14:45 +0000
committerlloyd <[email protected]>2011-12-23 16:14:45 +0000
commitd363602f95f1514b4b595d9912fba2e503edcb21 (patch)
tree70d036ff58e67629103a4ac6c1374ec90b6bd3db /src/ssl/tls_connection.h
parenta3d81efbd2c56749d4abf9e6a27cb36cbbb10702 (diff)
First stab at an event driven TLS client.
Diffstat (limited to 'src/ssl/tls_connection.h')
-rw-r--r--src/ssl/tls_connection.h36
1 files changed, 0 insertions, 36 deletions
diff --git a/src/ssl/tls_connection.h b/src/ssl/tls_connection.h
deleted file mode 100644
index bbefa2114..000000000
--- a/src/ssl/tls_connection.h
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
-* TLS Connection
-* (C) 2004-2006 Jack Lloyd
-*
-* Released under the terms of the Botan license
-*/
-
-#ifndef BOTAN_TLS_CONNECTION_H__
-#define BOTAN_TLS_CONNECTION_H__
-
-#include <botan/x509cert.h>
-#include <vector>
-
-namespace Botan {
-
-/**
-* TLS Connection
-*/
-class BOTAN_DLL TLS_Connection
- {
- public:
- virtual size_t read(byte[], size_t) = 0;
- virtual void write(const byte[], size_t) = 0;
- size_t read(byte& in) { return read(&in, 1); }
- void write(byte out) { write(&out, 1); }
-
- virtual std::vector<X509_Certificate> peer_cert_chain() const = 0;
-
- virtual void close() = 0;
-
- virtual ~TLS_Connection() {}
- };
-
-}
-
-#endif