mirror of
https://github.com/devkitPro/wut.git
synced 2026-03-21 17:34:47 -05:00
Some checks failed
C/C++ CI / ubuntu-latest (push) Has been cancelled
`find . -regex '.*\.\(cpp\|hpp\|cu\|cuh\|c\|h\)' -exec clang-format -style=file -i {} \;`
34 lines
1.0 KiB
C
34 lines
1.0 KiB
C
#include "wut_socket.h"
|
|
#include <nsysnet/nssl.h>
|
|
|
|
// clang-format off
|
|
NSSLConnectionHandle
|
|
RPLWRAP(NSSLCreateConnection)(NSSLContextHandle context,
|
|
const char *host,
|
|
int32_t hostLength,
|
|
int32_t options,
|
|
int32_t socket,
|
|
int32_t block);
|
|
// clang-format on
|
|
|
|
NSSLConnectionHandle
|
|
NSSLCreateConnection(NSSLContextHandle context,
|
|
const char *host,
|
|
int32_t hostLength,
|
|
int32_t options,
|
|
int32_t socket,
|
|
int32_t block)
|
|
{
|
|
socket = __wut_get_nsysnet_fd(socket);
|
|
if (socket == -1) {
|
|
return NSSL_ERROR_INVALID_FD;
|
|
}
|
|
|
|
return RPLWRAP(NSSLCreateConnection)(context,
|
|
host,
|
|
hostLength,
|
|
options,
|
|
socket,
|
|
block);
|
|
}
|