15 SSLC_DefaultRootCert_Nintendo_CA = 0x1,
16 SSLC_DefaultRootCert_Nintendo_CA_G2 = 0x2,
17 SSLC_DefaultRootCert_Nintendo_CA_G3 = 0x3,
18 SSLC_DefaultRootCert_Nintendo_Class2_CA = 0x4,
19 SSLC_DefaultRootCert_Nintendo_Class2_CA_G2 = 0x5,
20 SSLC_DefaultRootCert_Nintendo_Class2_CA_G3 = 0x6,
21 SSLC_DefaultRootCert_CyberTrust = 0x7,
22 SSLC_DefaultRootCert_AddTrust_External_CA = 0x8,
23 SSLC_DefaultRootCert_COMODO = 0x9,
24 SSLC_DefaultRootCert_USERTrust = 0xA,
25 SSLC_DefaultRootCert_DigiCert_EV = 0xB
26 } SSLC_DefaultRootCert;
29 SSLC_DefaultClientCert_ClCertA = 0x40
30 } SSLC_DefaultClientCert;
35 SSLCOPT_DisableVerify =
BIT(9),
36 SSLCOPT_TLSv10 =
BIT(11)
228 Result sslcContextGetProtocolCipher(
sslcContext *context,
char *outprotocols,
u32 outprotocols_maxsize,
char *outcipher,
u32 outcipher_maxsize);
Result sslcSeedRNG(void)
This uses ps:ps SeedRNG internally.
void sslcExit(void)
Exits SSLC.
Result sslcCloseClientCertContext(u32 ClientCert_contexthandle)
Closes the specified ClientCert-context.
Result sslcGenerateRandomData(u8 *buf, u32 size)
This uses ps:ps GenerateRandomData internally.
Result sslcCreateContext(sslcContext *context, int sockfd, u32 input_opt, const char *hostname)
Creates a sslc context.
Result sslcDestroy8CertChain(u32 CertChain_contexthandle)
Destroys a CertChain from sslcCreate8CertChain().
Result sslc8CertChainAddDefaultCert(u32 CertChain_contexthandle, u8 certID, u32 *cert_contexthandle)
Adds a default cert to a CertChain from sslcCreate8CertChain().
Result sslcInit(Handle session_handle)
Initializes SSLC. Normally session_handle should be 0. When non-zero this will use the specified hand...
Result sslcOpenClientCertContext(const u8 *cert, u32 certsize, const u8 *key, u32 keysize, u32 *ClientCert_contexthandle)
Opens a new ClientCert-context.
Result sslcRootCertChainAddDefaultCert(u32 RootCertChain_contexthandle, SSLC_DefaultRootCert certID, u32 *cert_contexthandle)
Adds a default RootCA cert to a RootCertChain.
Result sslcCreate8CertChain(u32 *CertChain_contexthandle)
Creates an unknown CertChain.
Result sslcCreateRootCertChain(u32 *RootCertChain_contexthandle)
Creates a RootCertChain.
Result sslcRootCertChainRemoveCert(u32 RootCertChain_contexthandle, u32 cert_contexthandle)
Removes the specified cert from the RootCertChain.
Result sslcAddTrustedRootCA(u32 RootCertChain_contexthandle, const u8 *cert, u32 certsize, u32 *cert_contexthandle)
Adds a trusted RootCA cert to a RootCertChain.
Result sslc8CertChainRemoveCert(u32 CertChain_contexthandle, u32 cert_contexthandle)
Removes the specified cert from the CertChain from sslcCreate8CertChain().
Result sslcDestroyRootCertChain(u32 RootCertChain_contexthandle)
Destroys a RootCertChain.
Result sslc8CertChainAddCert(u32 CertChain_contexthandle, const u8 *cert, u32 certsize, u32 *cert_contexthandle)
Adds a cert to a CertChain from sslcCreate8CertChain().
Result sslcOpenDefaultClientCertContext(SSLC_DefaultClientCert certID, u32 *ClientCert_contexthandle)
Opens a ClientCert-context with a default certID.
sslc context.
Definition: sslc.h:8
Handle servhandle
Service handle.
Definition: sslc.h:9
u32 sslchandle
SSLC handle.
Definition: sslc.h:10
#define BIT(n)
Creates a bitmask from a bit number.
Definition: types.h:47
uint8_t u8
would be nice if newlib had this already
Definition: types.h:21
u32 Handle
Resource handle.
Definition: types.h:41
s32 Result
Function result.
Definition: types.h:42
uint32_t u32
32-bit unsigned integer
Definition: types.h:23