426 int32_t *outBytesRead);
454 int32_t *outBytesWritten);
NSSLError NSSLDestroyContext(NSSLContextHandle context)
Destroys a NSSL context.
NSSLError NSSLRead(NSSLConnectionHandle connection, const void *buffer, int32_t length, int32_t *outBytesRead)
Read data from an open NSSL connection into a given buffer.
NSSLErrors
List of errors returned by the NSSL library.
NSSLError NSSLAddServerPKI(NSSLContextHandle context, NSSLServerCertId pki)
Add a system root CA (one of NSSLServerCertId) to the given NSSL context.
NSSLServerCertId
The IDs of a system CA.
NSSLError NSSLInit()
Initialises the NSSL library for use.
NSSLConnectionHandle NSSLCreateConnection(NSSLContextHandle context, const char *host, int32_t hostLength, int32_t options, int32_t socket, int32_t block)
Open an SSL connection.
int32_t NSSLConnectionHandle
A handle to a NSSL connection created with NSSLCreateConnection().
int32_t NSSLError
An NSSL library return code.
NSSLError NSSLFinish()
Cleans up and finishes use of the NSSL library.
NSSLError NSSLDestroyConnection(NSSLConnectionHandle connection)
Close and destroy a NSSL connection.
NSSLError NSSLAddServerPKIExternal(NSSLContextHandle context, const void *cert, int32_t length, int32_t unk)
Add a custom root CA to the given NSSL context.
int32_t NSSLContextHandle
A handle to a NSSL context created with NSSLCreateContext().
NSSLError NSSLWrite(NSSLConnectionHandle connection, const void *buffer, int32_t length, int32_t *outBytesWritten)
Write data to an open NSSL connection from a given buffer.
NSSLContextHandle NSSLCreateContext(int32_t unk)
Creates a context to use with the NSSL library.
@ NSSL_ERROR_SSL_SHUTDOWN_ERROR
@ NSSL_ERROR_INVALID_PRIVATE_KEY
@ NSSL_ERROR_INVALID_STATE
@ NSSL_ERROR_CERT_STORE_ERROR
@ NSSL_ERROR_INVALID_HANDLE
@ NSSL_ERROR_INVALID_CERT
@ NSSL_ERROR_PRIVATE_KEY_READ_ERROR
@ NSSL_ERROR_CERT_NOT_EXPORTABLE
@ NSSL_ERROR_NO_PEER_CERT
@ NSSL_ERROR_INVALID_CERT_ID2
@ NSSL_ERROR_LIB_NOT_READY
@ NSSL_ERROR_CERT_STORE_INIT_FAILURE
@ NSSL_ERROR_INVALID_KEY_SIZE
@ NSSL_ERROR_OUT_OF_MEMORY
@ NSSL_ERROR_HANDSHAKE_ERROR
@ NSSL_ERROR_INVALID_NSSL_CONTEXT
@ NSSL_ERROR_PROCESS_MAX_CONNECTIONS
@ NSSL_ERROR_CERT_SIZE_LIMIT
@ NSSL_ERROR_NO_CERT_STORE
@ NSSL_ERROR_NSSL_LIB_ERROR
@ NSSL_ERROR_INVALID_NSSL_SESSION
@ NSSL_ERROR_ENCRYPTION_ERROR
@ NSSL_ERROR_PROCESS_MAX_CONTEXTS
@ NSSL_ERROR_RESOURCE_LIMIT
@ NSSL_ERROR_PROCESS_MAX_EXT_CERTS
@ NSSL_ERROR_CERT_NO_ACCESS
@ NSSL_ERROR_INVALID_CERT_ID
@ NSSL_ERROR_INSUFFICIENT_SIZE
@ NSSL_ERROR_INVALID_CERT_TYPE
@ NSSL_ERROR_INVALID_NSSL_CONNECTION
@ NSSL_ERROR_INVALID_CERT_SIZE
@ NSSL_ERROR_PRIVATE_KEY_SIZE_LIMIT
@ NSSL_ERROR_INVALID_KEY_TYPE
@ NSSL_ERROR_INVALID_CERT_ENCODING
@ NSSL_ERROR_INVALID_SIZE
@ NSSL_ERROR_CERT_READ_ERROR
@ NSSL_SERVER_CERT_ENTRUST_ROOT_CA
Entrust Root Certification Authority (SHA1: B3 1E B1 B7 40 E3 6C 84 02 DA DC 37 D4 4D F5 D4 67 49 52 ...
@ NSSL_SERVER_CERT_COMODO_CA
COMODO Certification Authority (SHA1: EE 86 93 87 FF FD 83 49 AB 5A D1 43 22 58 87 89 A4 57 B0 12)
@ NSSL_SERVER_CERT_GEOTRUST_PRIMARY_CA_G3
GeoTrust Primary Certification Authority - G3 (SHA1: 03 9E ED B8 0B E7 A0 3C 69 53 89 3B 20 D2 D9 32 ...
@ NSSL_SERVER_CERT_VERIZON_GLOBAL_ROOT_CA
Verizon Global Root (SHA1: 91 21 98 EE F2 3D CA C4 09 39 31 2F EE 97 DD 56 0B AE 49 B1)
@ NSSL_SERVER_CERT_CYBERTRUST_GLOBAL_ROOT_CA
Cybertrust Global Root (SHA1: 5F 43 E5 B1 BF F8 78 8C AC 1C C7 CA 4A 9A C6 22 2B CC 34 C6)
@ NSSL_SERVER_CERT_BALTIMORE_CYBERTRUST_ROOT_CA
Baltimore CyberTrust Root (SHA1: D4 DE 20 D0 5E 66 FC 53 FE 1A 50 88 2C 78 DB 28 52 CA E4 74)
@ NSSL_SERVER_CERT_GEOTRUST_PRIMARY_CA
GeoTrust Primary Certification Authority (SHA1: 32 3C 11 8E 1B F7 B8 B6 52 54 E2 E2 10 0D D6 02 90 37...
@ NSSL_SERVER_CERT_ENTRUST_ROOT_CA_G2
Entrust Root Certification Authority - G2 (SHA1: 8C F4 27 FD 79 0C 3A D1 66 06 8D E8 1E 57 EF BB 93 2...
@ NSSL_SERVER_CERT_DIGICERT_GLOBAL_ROOT_CA
DigiCert Global Root CA (SHA1: A8 98 5D 3A 65 E5 E5 C4 B2 D7 D6 6D 40 C6 DD 2F B1 9C 54 36)
@ NSSL_SERVER_CERT_ENTRUST_SECURE_SERVER_CA
Entrust.net Secure Server Certification Authority (SHA1: 99 A6 9B E6 1A FE 88 6B 4D 2B 82 00 7C B8 54...
@ NSSL_SERVER_CERT_VERISIGN_CLASS3_PUBLIC_PRIMARY_CA
[No common name] (SHA1: A1 DB 63 93 91 6F 17 E4 18 55 09 40 04 15 C7 02 40 B0 AE 6B)
@ NSSL_SERVER_CERT_GROUP_NINTENDO_FIRST
Represents the first certificate in the Nintendo CA group.
@ NSSL_SERVER_CERT_GROUP_COMMERCIAL_LAST
Represents the last certificate in the commerical CA group.
@ NSSL_SERVER_CERT_THAWTE_PRIMARY_ROOT_CA
thawte Primary Root CA (SHA1: 91 C6 D6 EE 3E 8A C8 63 84 E5 48 C2 99 29 5C 75 6C 81 7B 81)
@ NSSL_SERVER_CERT_GLOBALSIGN_ROOT_CA_R2
GlobalSign (SHA1: 75 E0 AB B6 13 85 12 27 1C 04 F8 5F DD DE 38 E4 B7 24 2E FE)
@ NSSL_SERVER_CERT_NINTENDO_CLASS2_CA_G3
Nintendo Class 2 CA - G3 (SHA1: FA B5 6C 4C C7 CF F5 07 1D 40 B6 B0 07 38 61 D2 90 CA 2A 1A)
@ NSSL_SERVER_CERT_EQUIFAX_SECURE_CA
[No common name] (SHA1: D2 32 09 AD 23 D3 14 23 21 74 E4 0D 7F 9D 62 13 97 86 63 3A)
@ NSSL_SERVER_CERT_GEOTRUST_GLOBAL_CA
GeoTrust Global CA (SHA1: DE 28 F4 A4 FF E5 B9 2F A3 C5 03 D1 A3 49 A7 F9 96 2A 82 12)
@ NSSL_SERVER_CERT_VERISIGN_CLASS3_PUBLIC_PRIMARY_CA_G5
VeriSign Class 3 Public Primary Certification Authority - G5 (SHA1: 4E B6 D5 78 49 9B 1C CF 5F 58 1E ...
@ NSSL_SERVER_CERT_DIGICERT_GLOBAL_ROOT_CA_G2
DigiCert Global Root G2 (SHA1: DF 3C 24 F9 BF D6 66 76 1B 26 80 73 FE 06 D1 CC 8D 4F 82 A4)
@ NSSL_SERVER_CERT_NINTENDO_CA
Nintendo CA (SHA1: B5 22 94 55 DD 26 C1 F5 3C 73 06 0E 90 89 B3 91 38 9E 1F 75)
@ NSSL_SERVER_CERT_VERISIGN_CLASS3_PUBLIC_PRIMARY_CA_G2
[No common name] (SHA1: 85 37 1C A6 E5 50 14 3D CE 28 03 47 1B DE 3A 09 E8 F8 77 0F)
@ NSSL_SERVER_CERT_GROUP_COMMERCIAL_4096_LAST
Represents the last certificate in the 4096-bit commercial CA group.
@ NSSL_SERVER_CERT_NINTENDO_CLASS2_CA
Nintendo Class 2 CA (SHA1: AA 8E F6 6A E0 F8 07 ED B8 41 C8 89 EE 36 66 A2 59 A2 8C CC)
@ NSSL_SERVER_CERT_UTN_USERFIRST_HARDWARE_CA
UTN-USERFirst-Hardware (SHA1: 04 83 ED 33 99 AC 36 08 05 87 22 ED BC 5E 46 00 E3 BE F9 D7)
@ NSSL_SERVER_CERT_ADDTRUST_EXT_CA_ROOT
AddTrust External CA Root (SHA1: 02 FA F3 E2 91 43 54 68 60 78 57 69 4D F5 E4 5B 68 85 18 68)
@ NSSL_SERVER_CERT_UTN_DATACORP_SGC_CA
UTN - DATACorp SGC (SHA1: 58 11 9F 0E 12 82 87 EA 50 FD D9 87 45 6F 4F 78 DC FA D6 D4)
@ NSSL_SERVER_CERT_GLOBALSIGN_ROOT_CA
GlobalSign Root CA (SHA1: B1 BC 96 8B D4 F4 9D 62 2A A8 9A 81 F2 15 01 52 A4 1D 82 9C)
@ NSSL_SERVER_CERT_GEOTRUST_GLOBAL_CA2
GeoTrust Global CA 2 (SHA1: A9 E9 78 08 14 37 58 88 F2 05 19 B0 6D 2B 0D 2B 60 16 90 7D)
@ NSSL_SERVER_CERT_GLOBALSIGN_ROOT_CA_R3
GlobalSign (SHA1: D6 9B 56 11 48 F0 1C 77 C5 45 78 C1 09 26 DF 5B 85 69 76 AD)
@ NSSL_SERVER_CERT_GROUP_NINTENDO_LAST
Represents the last certificate in the Nintendo CA group.
@ NSSL_SERVER_CERT_VERISIGN_CLASS3_PUBLIC_PRIMARY_CA_G3
VeriSign Class 3 Public Primary Certification Authority - G3 (SHA1: 13 2D 0D 45 53 4B 69 97 CD B2 D5 ...
@ NSSL_SERVER_CERT_USERTRUST_RSA_CA
USERTrust RSA Certification Authority (SHA1: 2B 8F 1B 57 33 0D BB A2 D0 7A 6C 51 F7 0E E9 0D DA B9 AD...
@ NSSL_SERVER_CERT_ENTRUST_CA_2048
Entrust.net Certification Authority (2048) (SHA1: 50 30 06 09 1D 97 D4 F5 AE 39 F7 CB E7 92 7D 7D 65 ...
@ NSSL_SERVER_CERT_DIGICERT_ASSURED_ID_ROOT_CA
DigiCert Assured ID Root CA (SHA1: 05 63 B8 63 0D 62 D7 5A BB C8 AB 1E 4B DF B5 A8 99 B2 4D 43)
@ NSSL_SERVER_CERT_THAWTE_PRIMARY_ROOT_CA_G3
thawte Primary Root CA - G3 (SHA1: F1 8B 53 8D 1B E9 03 B6 A6 F0 56 43 5B 17 15 89 CA F3 6B F2)
@ NSSL_SERVER_CERT_GTE_CYBERTRUST_GLOBAL_ROOT
GTE CyberTrust Global Root (SHA1: 97 81 79 50 D8 1C 96 70 CC 34 D8 09 CF 79 44 31 36 7E F4 74)
@ NSSL_SERVER_CERT_DIGICERT_ASSURED_ID_ROOT_CA_G2
DigiCert Assured ID Root G2 (SHA1: A1 4B 48 D9 43 EE 0A 0E 40 90 4F 3C E0 A4 C0 91 93 51 5D 3F)
@ NSSL_SERVER_CERT_GROUP_COMMERCIAL_4096_FIRST
Represents the first certificate in the 4096-bit commercial CA group.
@ NSSL_SERVER_CERT_NINTENDO_CA_G2
Nintendo CA - G2 (SHA1: C6 0B 2A 5C C9 0F 06 30 CC A3 30 40 DF 6B 33 78 23 9F 3B FA)
@ NSSL_SERVER_CERT_NINTENDO_CA_G3
Nintendo CA - G3 (SHA1: 68 A0 77 05 CC C7 A4 08 41 6E 0E D7 AD 65 F2 EC 3F EA 98 62)
@ NSSL_SERVER_CERT_DIGICERT_HIGH_ASSURANCE_EV_ROOT_CA
DigiCert High Assurance EV Root CA (SHA1: 5F B7 EE 06 33 E2 59 DB AD 0C 4C 9A E6 D3 8F 1A 61 C7 DC 25...
@ NSSL_SERVER_CERT_COMODO_RSA_CA
COMODO RSA Certification Authority (SHA1: AF E5 D2 44 A8 D1 19 42 30 FF 47 9F E2 F8 97 BB CD 7A 8C B4...
@ NSSL_SERVER_CERT_NINTENDO_CLASS2_CA_G2
Nintendo Class 2 CA - G2 (SHA1: 03 9D E5 37 3A C6 5E 1A EE 89 8D 54 E7 56 35 76 EB BE 54 9B)
@ NSSL_SERVER_CERT_GROUP_COMMERCIAL_FIRST
Represents the first certificate in the commercial CA group.
@ NSSL_SERVER_CERT_VERISIGN_UNIVERSAL_ROOT_CA
VeriSign Universal Root Certification Authority (SHA1: 36 79 CA 35 66 87 72 30 4D 30 A5 FB 87 3B 0F A...
@ NSSL_SERVER_CERT_THAWTE_PREMIUM_SERVER_CA
Thawte Premium Server CA (SHA1: 62 7F 8D 78 27 65 63 99 D2 7D 7F 90 44 C9 FE B3 F3 3E FA 9A)
int RPLWRAP() socket(int domain, int type, int protocol)