wrapper of the mbed port of Cyassl. It's based of the work of Ashley Mills

Dependencies:   cyassl-lib

Dependents:   TLS_cyassl-Example TLS_cyassl-Example2 HTTPSClientExample2

Fork of TLS_cyassl by Francois Berder

Import programTLS_cyassl-Example

This program shows how to use TLS_cyassl to connect to mbed.org

Import programTLS_cyassl-Example2

This example show how to create a small TLS server using the TLS_cyassl library.

Committer:
feb11
Date:
Wed Sep 18 09:00:57 2013 +0000
Revision:
4:86a5029194b4
Child:
6:c12f49c210c2
added server

Who changed what in which revision?

UserRevisionLine numberNew contents of line
feb11 4:86a5029194b4 1 #ifndef TLSSERVER_H
feb11 4:86a5029194b4 2 #define TLSSERVER_H
feb11 4:86a5029194b4 3
feb11 4:86a5029194b4 4 #include "mbed.h"
feb11 4:86a5029194b4 5 #include "cyassl/ssl.h"
feb11 4:86a5029194b4 6 #include "TLSConnection.h"
feb11 4:86a5029194b4 7
feb11 4:86a5029194b4 8 class TLSServer : public Socket
feb11 4:86a5029194b4 9 {
feb11 4:86a5029194b4 10 public :
feb11 4:86a5029194b4 11
feb11 4:86a5029194b4 12 TLSServer();
feb11 4:86a5029194b4 13 ~TLSServer();
feb11 4:86a5029194b4 14
feb11 4:86a5029194b4 15 bool init();
feb11 4:86a5029194b4 16
feb11 4:86a5029194b4 17 bool accept(TLSConnection &con);
feb11 4:86a5029194b4 18
feb11 4:86a5029194b4 19
feb11 4:86a5029194b4 20 private :
feb11 4:86a5029194b4 21
feb11 4:86a5029194b4 22 CYASSL_CTX *_ssl_ctx;
feb11 4:86a5029194b4 23 };
feb11 4:86a5029194b4 24
feb11 4:86a5029194b4 25 #endif