Nigel Rantor / azure_c_shared_utility

Fork of azure_c_shared_utility by Azure IoT

Revision:
6:c55b013dfc2a
Parent:
5:921351ce6973
Child:
7:1af47e3a19b6
diff -r 921351ce6973 -r c55b013dfc2a wolfssl_connection.h
--- a/wolfssl_connection.h	Fri Jun 17 17:03:29 2016 -0700
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,32 +0,0 @@
-// Copyright (c) Microsoft. All rights reserved.
-// Licensed under the MIT license. See LICENSE file in the project root for full license information.
-
-#ifndef WOLFSSL_CONNECTION_H
-#define WOLFSSL_CONNECTION_H
-
-#include "wolfssl/ssl.h"
-#include "TCPSocketConnection.h"
-
-class WolfSSLConnection : public TCPSocketConnection
-{
-public:
-    WolfSSLConnection();
-    virtual ~WolfSSLConnection();
-    
-public:
-    int connect(const char* host, const int port);
-    bool is_connected(void);
-    int send(char* data, int length);
-    int send_all(char* data, int length);
-    int receive(char* data, int length);
-    int receive_all(char* data, int length);
-    bool close(bool shutdown = true);
-    bool load_certificate(const unsigned char* certificate, size_t size);
-    
-protected:
-    WOLFSSL_CTX* sslContext;
-    WOLFSSL* ssl;
-    bool isConnected;
-};
-
-#endif /* WOLFSSL_CONNECTION_H */