@CHIP-RTOS C Library - TCP/IP API
Open a new SSL session. Could be used as either SSL
server session or SSL client session. If it is used as a server session
the field certIdentity
in the structure should be non-null,
otherwise the SSL server can't run on this session.
int SSL_SessionNew(SSL_SESSION_NEW_EntryPtr newSessionPtr,
- New SSL structure
- Output parameter:
- zero - Success
- -222 - Invalid argument (Version not supported.)
- -255 - TCP/IP stack memory allocation failed
- -202 - Maximum of 8 SSL sessions exceeded
- >0: Session ID
-1: failed (See error
- Each session maintains its own connect information for the convenience
of resumption. You can resume a previous connection only if the current
connect attempt and the previous one are in the same SSL session, and
your previous connection cache hasn't been overwritten yet.
For SSL server, all connections spawned from a single listening socket
belong to one session, you should assign the session ID to the listening
socket. All accepted sockets will inherit that session ID.
For SSL client, user determines which session one connection belongs to.
For example, users may decide that any connection to the same SSL server
uses a single session ID, so that when user is trying to connect to the
same server again, he may resume the previous connection.
- This library function invokes a RTOS software interrupt.
Refer to this RTOS API function's
for more details.
Supported since or modified in @CHIP-RTOS version
Supported by @CHIP-RTOS C Library since version
This API List
List of C Libraries
@CHIP-RTOS Main Index
End of document