![]() |
TrustCore SDK NanoSSL API reference
version 7.0
|
Asynchronous NanoSSL server functions. More...
Functions | |
MOC_EXTERN sbyte4 | SSL_ASYNC_acceptConnection (TCP_SOCKET tempSocket, struct certStore *pCertStore) |
Register a secure asynchronous SSL/TLS connection. More... | |
MOC_EXTERN sbyte4 | SSL_ASYNC_acceptConnectionAlt (TCP_SOCKET tempSocket, void *pCertStore) |
Wrapper function to register a secure asynchronous SSL/TLS connection. More... | |
MOC_EXTERN sbyte4 SSL_ASYNC_acceptConnection | ( | TCP_SOCKET | tempSocket, |
struct certStore * | pCertStore | ||
) |
This function registers a secure asynchronous SSL/TLS connection.
To enable this function, the following flag must be defined in moptions.h:
__ENABLE_MOCANA_SSL_ASYNC_SERVER_API__
tempSocket | Socket or TCP 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
MOC_EXTERN sbyte4 SSL_ASYNC_acceptConnectionAlt | ( | TCP_SOCKET | tempSocket, |
void * | pCertStore | ||
) |
This function is used by the NanoSSL Shim layer to register a secure asynchronous SSL/TLS connection.
To enable this function, the following flag must be defined in moptions.h:
__ENABLE_MOCANA_SSL_ASYNC_SERVER_API__
__ENABLE_MOCANA_OPENSSL_SHIM__
tempSocket | Socket or TCP identifier returned by a call to accept(). |
pCertStore | Pointer to the SoT Platform certificate store that contains the SSL connection's certificates. |
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