@CHIP-RTOS C Library V2.06 - TCP/IP API
SSL_SessionNew
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,
int *error); Parameters
newSessionPtr
- New SSL structure
error
- Output parameter: Failure
code, 0 on success.
Return Value
- >0: Session ID
-1: failed
Comments
- Each session maintains its own connect information for the convenience
of reconsumption. 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.
See Also
RTOS API
- This library function invokes a RTOS software interrupt.
Refer to this RTOS API function's
documentation
for more details.
Supported since or modified in @CHIP-RTOS version-
SC12 | SC13 | SC11 | SC1x3 |
-
n/a | n/a | n/a | V0.91 |
Supported by @CHIP-RTOS C Library since version
This API List
List of C Libraries
@CHIP-RTOS Main Index
End of document
|