SSLRxServerCertificate Function

Microchip TCP/IP Stack

Microchip TCP/IP Stack Help
SSLRxServerCertificate Function
C
static void SSLRxServerCertificate(
    TCP_SOCKET hTCP
);
Description

Receives ServerCertificate from the remote server, locates the public key information, and executes RSA operation.

Preconditions

sslStub is synchronized and HSStart() has been called.

Parameters
Parameters 
Description 
hTCP 
the TCP Socket to read from 
Returns

None

Side Effects

None

Remarks

This shortcuts full parsing of the certificate by just finding the Public Key Algorithm identifier for RSA. From there, the following ASN.1 struct is the public key. That struct consists of the value for N, followed by the value for E.

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