www.beck-ipc.com

@CHIP-RTOS C Library V2.06 - TCP/IP API


SSL_SessionProp

Use this function to set proposals for a SSL session. For a client session, the proposals are used to construct the Client Hello message. For a server session, the proposals are used to match Client Hello message in order to determine the final cipher suite to use.

int SSL_SessionProp(int sessionID, int far *proposals, int count,
                    int *error);

Parameters

sessionID

Session ID for SSL session

proposals

Array of integer with Session proposals

count

Number of entries in the proposal array

error

Output parameter:  Failure code, 0 on success.

Return Value

0: Suceess
-1: failed

Comments

To use this function on a server session, a previous call to function SSL_SessionOpt is needed. If the user doesn't call this function to set any session proposals, the default value is going to be used.

Possible proposals array entries:

            
TLS_RSA_NULL_MD5          = 0x0001
TLS_RSA_NULL_SHA          = 0x0002
TLS_RSA_EXPORT_RC4_40_MD5 = 0x0003
TLS_RSA_RC4_128_MD5       = 0x0004
TLS_RSA_RC4_128_SHA       = 0x0005
TLS_RSA_3DES_EDE_CBC_SHA  = 0x000A
TLS_RSA_AES_128_CBC_SHA   = 0x002F
TLS_RSA_AES_256_CBC_SHA   = 0x0035
TLS_RSA_EPT1K_RC4_56_SHA  = 0x0064

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

    SC12SC13SC11SC1x3
    n/an/an/aV1.07

Supported by @CHIP-RTOS C Library since version

    CLIB
    V2.02

This API List
List of C Libraries
@CHIP-RTOS Main Index


End of document