![]() |
TrustCore SDK NanoSSL API reference
version 7.0
|
Synchronous NanoSSL server functions. More...
Functions | |
MOC_EXTERN sbyte4 | SSL_acceptConnection (TCP_SOCKET tempSocket, struct certStore *pCertStore) |
Create a synchronous server connection context. More... | |
MOC_EXTERN sbyte4 SSL_acceptConnection | ( | TCP_SOCKET | tempSocket, |
struct certStore * | pCertStore | ||
) |
This function performs SSL handshaking, establishing a secure connection between a server and client.
To enable this function, the following flag must be defined in moptions.h:
__ENABLE_MOCANA_SSL_SERVER__
tempSocket | Socket or TCB identifier returned by a call to accept(). |
pCertStore | Pointer to SoT Platform certificate store that contains the SSL connection's certificate (as a trust point or identity). |
OK
(0) if successful; otherwise a negative number error code definition from merrors.h. To retrieve a string containing an English text error identifier corresponding to the function's returned error status, use the DISPLAY_ERROR
macro.ssl.c