wut  1.0.0-alpha
Wii U Toolchain
nssl.h
Go to the documentation of this file.
1 #pragma once
2 #include <wut.h>
3 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
28 typedef int32_t NSSLContextHandle;
30 typedef int32_t NSSLConnectionHandle;
31 
43 typedef enum NSSLServerCertId
44 {
67 
171 
183 
194 int32_t
195 NSSLInit();
196 
203 int32_t
204 NSSLFinish();
205 
221 NSSLCreateContext(int32_t unk);
222 
232 int32_t
234 
261 int32_t
263  const void *cert,
264  int32_t length,
265  int32_t unk);
266 
282 int32_t
284  NSSLServerCertId pki);
285 
321  const char *host,
322  int32_t hostLength,
323  int32_t options,
324  int32_t socket,
325  int32_t block);
326 
336 int32_t
338 
361 int32_t
362 NSSLRead(NSSLConnectionHandle connection,
363  const void *buffer,
364  int32_t length,
365  int32_t *outBytesRead);
366 
389 int32_t
391  const void *buffer,
392  int32_t length,
393  int32_t *outBytesWritten);
394 
395 #ifdef __cplusplus
396 }
397 #endif
398 
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) ...
Definition: nssl.h:61
Represents the last certificate in the 4096-bit commercial CA group.
Definition: nssl.h:181
Represents the first certificate in the Nintendo CA group.
Definition: nssl.h:46
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...
Definition: nssl.h:176
NSSLContextHandle NSSLCreateContext(int32_t unk)
Creates a context to use with the NSSL library.
Entrust.net Secure Server Certification Authority (SHA1: 99 A6 9B E6 1A FE 88 6B 4D 2B 82 00 7C B8 54...
Definition: nssl.h:150
GeoTrust Global CA (SHA1: DE 28 F4 A4 FF E5 B9 2F A3 C5 03 D1 A3 49 A7 F9 96 2A 82 12) ...
Definition: nssl.h:105
Entrust Root Certification Authority - G2 (SHA1: 8C F4 27 FD 79 0C 3A D1 66 06 8D E8 1E 57 EF BB 93 2...
Definition: nssl.h:162
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) ...
Definition: nssl.h:58
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) ...
Definition: nssl.h:117
[No common name] (SHA1: D2 32 09 AD 23 D3 14 23 21 74 E4 0D 7F 9D 62 13 97 86 63 3A) ...
Definition: nssl.h:147
UTN - DATACorp SGC (SHA1: 58 11 9F 0E 12 82 87 EA 50 FD D9 87 45 6F 4F 78 DC FA D6 D4) ...
Definition: nssl.h:123
GeoTrust Primary Certification Authority - G3 (SHA1: 03 9E ED B8 0B E7 A0 3C 69 53 89 3B 20 D2 D9 32 ...
Definition: nssl.h:114
int32_t NSSLDestroyConnection(NSSLConnectionHandle connection)
Close and destroy a NSSL connection.
int32_t NSSLAddServerPKIExternal(NSSLContextHandle context, const void *cert, int32_t length, int32_t unk)
Add a custom root CA to the given NSSL context.
GlobalSign (SHA1: D6 9B 56 11 48 F0 1C 77 C5 45 78 C1 09 26 DF 5B 85 69 76 AD)
Definition: nssl.h:87
Verizon Global Root (SHA1: 91 21 98 EE F2 3D CA C4 09 39 31 2F EE 97 DD 56 0B AE 49 B1) ...
Definition: nssl.h:78
GlobalSign Root CA (SHA1: B1 BC 96 8B D4 F4 9D 62 2A A8 9A 81 F2 15 01 52 A4 1D 82 9C) ...
Definition: nssl.h:81
VeriSign Class 3 Public Primary Certification Authority - G3 (SHA1: 13 2D 0D 45 53 4B 69 97 CD B2 D5 ...
Definition: nssl.h:90
Represents the first certificate in the commercial CA group.
Definition: nssl.h:69
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) ...
Definition: nssl.h:138
int32_t NSSLRead(NSSLConnectionHandle connection, const void *buffer, int32_t length, int32_t *outBytesRead)
Read data from an open NSSL connection into a given buffer.
int32_t NSSLWrite(NSSLConnectionHandle connection, const void *buffer, int32_t length, int32_t *outBytesWritten)
Write data to an open NSSL connection from a given buffer.
Cybertrust Global Root (SHA1: 5F 43 E5 B1 BF F8 78 8C AC 1C C7 CA 4A 9A C6 22 2B CC 34 C6) ...
Definition: nssl.h:75
int32_t NSSLConnectionHandle
A handle to a NSSL connection created with NSSLCreateConnection().
Definition: nssl.h:30
int32_t NSSLInit()
Initialises the NSSL library for use.
UTN-USERFirst-Hardware (SHA1: 04 83 ED 33 99 AC 36 08 05 87 22 ED BC 5E 46 00 E3 BE F9 D7) ...
Definition: nssl.h:126
[No common name] (SHA1: A1 DB 63 93 91 6F 17 E4 18 55 09 40 04 15 C7 02 40 B0 AE 6B) ...
Definition: nssl.h:141
int32_t NSSLContextHandle
A handle to a NSSL context created with NSSLCreateContext().
Definition: nssl.h:28
int32_t NSSLAddServerPKI(NSSLContextHandle context, NSSLServerCertId pki)
Add a system root CA (one of NSSLServerCertId) to the given NSSL context.
USERTrust RSA Certification Authority (SHA1: 2B 8F 1B 57 33 0D BB A2 D0 7A 6C 51 F7 0E E9 0D DA B9 AD...
Definition: nssl.h:179
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...
Definition: nssl.h:129
COMODO Certification Authority (SHA1: EE 86 93 87 FF FD 83 49 AB 5A D1 43 22 58 87 89 A4 57 B0 12) ...
Definition: nssl.h:120
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) ...
Definition: nssl.h:135
Represents the last certificate in the Nintendo CA group.
Definition: nssl.h:66
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) ...
Definition: nssl.h:165
int socket(int domain, int type, int protocol)
Nintendo CA (SHA1: B5 22 94 55 DD 26 C1 F5 3C 73 06 0E 90 89 B3 91 38 9E 1F 75)
Definition: nssl.h:49
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) ...
Definition: nssl.h:108
GlobalSign (SHA1: 75 E0 AB B6 13 85 12 27 1C 04 F8 5F DD DE 38 E4 B7 24 2E FE)
Definition: nssl.h:84
Nintendo CA - G3 (SHA1: 68 A0 77 05 CC C7 A4 08 41 6E 0E D7 AD 65 F2 EC 3F EA 98 62) ...
Definition: nssl.h:55
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) ...
Definition: nssl.h:102
Represents the last certificate in the commerical CA group.
Definition: nssl.h:170
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 NSSLFinish()
Cleans up and finishes use of the NSSL library.
Baltimore CyberTrust Root (SHA1: D4 DE 20 D0 5E 66 FC 53 FE 1A 50 88 2C 78 DB 28 52 CA E4 74) ...
Definition: nssl.h:72
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) ...
Definition: nssl.h:144
[No common name] (SHA1: 85 37 1C A6 E5 50 14 3D CE 28 03 47 1B DE 3A 09 E8 F8 77 0F) ...
Definition: nssl.h:153
VeriSign Universal Root Certification Authority (SHA1: 36 79 CA 35 66 87 72 30 4D 30 A5 FB 87 3B 0F A...
Definition: nssl.h:93
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) ...
Definition: nssl.h:64
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) ...
Definition: nssl.h:132
int32_t NSSLDestroyContext(NSSLContextHandle context)
Destroys a NSSL context.
Entrust.net Certification Authority (2048) (SHA1: 50 30 06 09 1D 97 D4 F5 AE 39 F7 CB E7 92 7D 7D 65 ...
Definition: nssl.h:156
GeoTrust Primary Certification Authority (SHA1: 32 3C 11 8E 1B F7 B8 B6 52 54 E2 E2 10 0D D6 02 90 37...
Definition: nssl.h:111
NSSLServerCertId
The IDs of a system CA.
Definition: nssl.h:43
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) ...
Definition: nssl.h:99
VeriSign Class 3 Public Primary Certification Authority - G5 (SHA1: 4E B6 D5 78 49 9B 1C CF 5F 58 1E ...
Definition: nssl.h:96
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) ...
Definition: nssl.h:168
Entrust Root Certification Authority (SHA1: B3 1E B1 B7 40 E3 6C 84 02 DA DC 37 D4 4D F5 D4 67 49 52 ...
Definition: nssl.h:159
Represents the first certificate in the 4096-bit commercial CA group.
Definition: nssl.h:173
Nintendo CA - G2 (SHA1: C6 0B 2A 5C C9 0F 06 30 CC A3 30 40 DF 6B 33 78 23 9F 3B FA) ...
Definition: nssl.h:52