/* Generated by Nim Compiler v2.2.10 */
/* Compiled for: MacOSX, arm64, clang */
/* Command for C compiler:
   clang -c  -w -ferror-limit=3 -fno-strict-aliasing -pthread -isysroot /Applications/Xcode_16.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -target arm64-apple-darwin24.2.0 -O3   -I/Users/runner/work/nightlies/nightlies/nim-2.2.10/lib -I/Users/runner/work/nightlies/nightlies/nim-2.2.10/dist/atlas/src -o /Users/runner/work/nightlies/nightlies/nim-2.2.10/dist/atlas/.nimcache/@popenssl.nim.c.o /Users/runner/work/nightlies/nightlies/nim-2.2.10/dist/atlas/.nimcache/@popenssl.nim.c */
#define NIM_INTBITS 64
#define NIM_EmulateOverflowChecks

#include "nimbase.h"
#undef LANGUAGE_C
#undef MIPSEB
#undef MIPSEL
#undef PPC
#undef R3000
#undef R4000
#undef i386
#undef linux
#undef mips
#undef near
#undef far
#undef powerpc
#undef unix
typedef struct tyObject_SslStruct__nrXQY5VF6Ld9c2BdIxvNUmg tyObject_SslStruct__nrXQY5VF6Ld9c2BdIxvNUmg;
struct tyObject_SslStruct__nrXQY5VF6Ld9c2BdIxvNUmg {
	char dummy;
};
N_CDECL(unsigned long, OpenSSL_version_num)(void);
N_CDECL(long, SSL_CTX_ctrl)(tyObject_SslStruct__nrXQY5VF6Ld9c2BdIxvNUmg* ctx_p0, int cmd_p1, long larg_p2, void* parg_p3);
N_CDECL(NI, SSL_ctrl)(tyObject_SslStruct__nrXQY5VF6Ld9c2BdIxvNUmg* ssl_p0, int cmd_p1, NI larg_p2, void* parg_p3);
N_CDECL(tyObject_SslStruct__nrXQY5VF6Ld9c2BdIxvNUmg*, SSL_get1_peer_certificate)(tyObject_SslStruct__nrXQY5VF6Ld9c2BdIxvNUmg* ssl_p0);
N_LIB_PRIVATE N_NIMCALL(unsigned long, getOpenSSLVersion__wrappersZopenssl_u205)(void) {
	unsigned long result;
	result = OpenSSL_version_num();
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NI, SSLCTXSetMode__wrappersZopenssl_u418)(tyObject_SslStruct__nrXQY5VF6Ld9c2BdIxvNUmg* ctx_p0, NI mode_p1) {
	NI result;
	result = SSL_CTX_ctrl(ctx_p0, ((int)33), ((long) (mode_p1)), NIM_NIL);
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NI, SSL_set_tlsext_host_name__wrappersZopenssl_u427)(tyObject_SslStruct__nrXQY5VF6Ld9c2BdIxvNUmg* ssl_p0, NCSTRING name_p1) {
	NI result;
	result = SSL_ctrl(ssl_p0, ((int)55), ((NI)0), ((void*) (name_p1)));
	return result;
}
N_LIB_PRIVATE N_NIMCALL(tyObject_SslStruct__nrXQY5VF6Ld9c2BdIxvNUmg*, SSL_get_peer_certificate__wrappersZopenssl_u814)(tyObject_SslStruct__nrXQY5VF6Ld9c2BdIxvNUmg* ssl_p0) {
	tyObject_SslStruct__nrXQY5VF6Ld9c2BdIxvNUmg* result;
	result = SSL_get1_peer_certificate(ssl_p0);
	return result;
}
