wut
1.0.0-beta9
Wii U Toolchain
|
#include <wut.h>
Go to the source code of this file.
Typedefs | |
typedef int32_t | NSSLContextHandle |
A handle to a NSSL context created with NSSLCreateContext(). More... | |
typedef int32_t | NSSLConnectionHandle |
A handle to a NSSL connection created with NSSLCreateConnection(). More... | |
typedef enum NSSLServerCertId | NSSLServerCertId |
The IDs of a system CA. More... | |
Functions | |
int32_t | NSSLInit () |
Initialises the NSSL library for use. More... | |
int32_t | NSSLFinish () |
Cleans up and finishes use of the NSSL library. More... | |
NSSLContextHandle | NSSLCreateContext (int32_t unk) |
Creates a context to use with the NSSL library. More... | |
int32_t | NSSLDestroyContext (NSSLContextHandle context) |
Destroys a NSSL context. More... | |
int32_t | NSSLAddServerPKIExternal (NSSLContextHandle context, const void *cert, int32_t length, int32_t unk) |
Add a custom root CA to the given NSSL context. More... | |
int32_t | NSSLAddServerPKI (NSSLContextHandle context, NSSLServerCertId pki) |
Add a system root CA (one of NSSLServerCertId) to the given NSSL context. More... | |
NSSLConnectionHandle | NSSLCreateConnection (NSSLContextHandle context, const char *host, int32_t hostLength, int32_t options, int32_t socket, int32_t block) |
Open an SSL connection. More... | |
int32_t | NSSLDestroyConnection (NSSLConnectionHandle connection) |
Close and destroy a NSSL connection. More... | |
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. More... | |
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. More... | |