SSLStartPartialRecord Function

Microchip TCP/IP Stack

Microchip TCP/IP Stack Help
SSLStartPartialRecord Function
C
void SSLStartPartialRecord(
    TCP_SOCKET hTCP, 
    BYTE sslStubID, 
    BYTE txProtocol, 
    WORD wLen
);
Description

This function allows messages longer than the TCP buffer to be sent, which is frequently the case for the Certificate handshake message. The final message length is required to be known in order to transmit the header. Once called, SSLFlushPartialRecord and SSLFinishPartialRecord must be called to write remaining data, finalize, and prepare for a new record.

Preconditions

The specified SSL stub is initialized and the TCP socket is connected.

Parameters
Parameters 
Description 
hTCP 
The TCP socket with data waiting to be transmitted 
id 
The active SSL stub ID 
txPortocol 
The SSL protocol number to attach to this record 
wLen 
The length of all the data to be sent 
Returns

None

Remarks

Partial messages do not support the current cipher spec, so this can only be used during the handshake procedure.

Microchip TCP/IP Stack 5.42.08 - June 15, 2013
Copyright © 2012 Microchip Technology, Inc.  All rights reserved.