A fork of the TLS_cyassl embedded SSL library with certificate validation disabled.
Fork of TLS_cyassl by
TLSServer.h@4:86a5029194b4, 2013-09-18 (annotated)
- 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?
User | Revision | Line number | New 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 |