CMSDK 2.0.1
Cross-platform C++ base library and SDK for the Psyclone AIOS platform
Loading...
Searching...
No Matches
PsySSL.h File Reference

Minimal OpenSSL-based TLS server helpers for the CMSDK. More...

#include "Utils.h"
Include dependency graph for PsySSL.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  cmlabs

Functions

int cmlabs::TestSSL (int port)
 Standalone smoke test for the SSL server functionality.

Detailed Description

Minimal OpenSSL-based TLS server helpers for the CMSDK.

Only compiled with real content when _USE_SSL_ is defined (requires linking against OpenSSL); otherwise only the TestSSL() stub declaration remains. Provides two small wrappers: PsySSLServer (context + certificate loading) and SSLServer (a select()-based accept loop dispatching each client connection to a pthread worker function).

Note
Platform: the socket/select usage follows the BSD API; on Windows the equivalent Winsock calls are used via the CMSDK utils layer. OpenSSL headers are only included inside the _USE_SSL_ branch.
Warning
The trailing include-guard comments in this header are misleading: the final #endif closes the include guard, not _USE_SSL_ (see source).

Definition in file PsySSL.h.