You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm using the latest LuaSec commit, and I noticed that it compiles successfully only with openssl version <=3.0.8 (maybe higher, but with 3.2.0 there are already errors), also in Additional dependencies you need to write "crypt32.lib":
"crypt32.lib;ws2_32.lib;libssl.lib;libcrypto.lib;lua51.lib;%(AdditionalDependencies)", without crypt32 there are already other errors.
openssl-3.2.0 without crypt32.lib build log: Build started at 15:53... 1>------ Build started: Project: luasec, Configuration: Debug Win32 ------ 1>x509.c 1>ssl.c 1>c:\users\root\desktop\luasec-master\src\ssl.c(394): warning C4996: 'DH_free': Since OpenSSL 3.0 1>c:\users\root\desktop\openssl-3.2.0\include\openssl\dh.h(207): note: see declaration of 'DH_free' 1>options.c 1>wsocket.c 1>c:\users\root\desktop\luasec-master\src\luasocket\wsocket.c(311): warning C4996: 'gethostbyaddr': Use getnameinfo() or GetNameInfoW() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(2216): note: see declaration of 'gethostbyaddr' 1>c:\users\root\desktop\luasec-master\src\luasocket\wsocket.c(317): warning C4996: 'gethostbyname': Use getaddrinfo() or GetAddrInfoW() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(2238): note: see declaration of 'gethostbyname' 1>timeout.c 1>io.c 1>buffer.c 1>ec.c 1>c:\users\root\desktop\luasec-master\src\ec.c(26): warning C4996: 'EC_KEY_new_by_curve_name': Since OpenSSL 3.0 1>c:\users\root\desktop\openssl-3.2.0\include\openssl\ec.h(1017): note: see declaration of 'EC_KEY_new_by_curve_name' 1>context.c 1>c:\program files (x86)\windows kits\8.1\include\shared\ws2def.h(100): warning C4005: 'AF_IPX': macro redefinition 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(452): note: see previous definition of 'AF_IPX' 1>c:\program files (x86)\windows kits\8.1\include\shared\ws2def.h(133): warning C4005: 'AF_MAX': macro redefinition 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(471): note: see previous definition of 'AF_MAX' 1>c:\program files (x86)\windows kits\8.1\include\shared\ws2def.h(177): warning C4005: 'SO_DONTLINGER': macro redefinition 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(394): note: see previous definition of 'SO_DONTLINGER' 1>c:\program files (x86)\windows kits\8.1\include\shared\ws2def.h(221): error C2011: 'sockaddr': 'struct' type redefinition 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(477): note: see declaration of 'sockaddr' 1>c:\program files (x86)\windows kits\8.1\include\shared\ws2def.h(421): error C2059: syntax error: 'constant' 1>c:\program files (x86)\windows kits\8.1\include\shared\ws2def.h(556): warning C4005: 'IN_CLASSA': macro redefinition 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(279): note: see previous definition of 'IN_CLASSA' 1>c:\program files (x86)\windows kits\8.1\include\shared\ws2def.h(562): warning C4005: 'IN_CLASSB': macro redefinition 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(285): note: see previous definition of 'IN_CLASSB' 1>c:\program files (x86)\windows kits\8.1\include\shared\ws2def.h(568): warning C4005: 'IN_CLASSC': macro redefinition 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(291): note: see previous definition of 'IN_CLASSC' 1>c:\program files (x86)\windows kits\8.1\include\shared\ws2def.h(579): warning C4005: 'INADDR_ANY': macro redefinition 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(296): note: see previous definition of 'INADDR_ANY' 1>c:\program files (x86)\windows kits\8.1\include\shared\ws2def.h(581): warning C4005: 'INADDR_BROADCAST': macro redefinition 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(298): note: see previous definition of 'INADDR_BROADCAST' 1>c:\program files (x86)\windows kits\8.1\include\shared\ws2def.h(615): error C2011: 'sockaddr_in': 'struct' type redefinition 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(304): note: see declaration of 'sockaddr_in' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(136): error C2011: 'fd_set': 'struct' type redefinition 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(60): note: see declaration of 'fd_set' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(156): warning C4005: 'FD_CLR': macro redefinition 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(89): note: see previous definition of 'FD_CLR' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(171): warning C4005: 'FD_SET': macro redefinition 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(94): note: see previous definition of 'FD_SET' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(180): error C2011: 'timeval': 'struct' type redefinition 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(103): note: see declaration of 'timeval' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(236): error C2011: 'hostent': 'struct' type redefinition 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(159): note: see declaration of 'hostent' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(249): error C2011: 'netent': 'struct' type redefinition 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(172): note: see declaration of 'netent' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(256): error C2011: 'servent': 'struct' type redefinition 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(179): note: see declaration of 'servent' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(268): error C2011: 'protoent': 'struct' type redefinition 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(191): note: see declaration of 'protoent' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(364): error C2011: 'WSAData': 'struct' type redefinition 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(314): note: see declaration of 'WSAData' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(462): error C2011: 'sockproto': 'struct' type redefinition 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(486): note: see declaration of 'sockproto' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(504): error C2011: 'linger': 'struct' type redefinition 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(523): note: see declaration of 'linger' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(517): warning C4005: 'SOMAXCONN': macro redefinition 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(536): note: see previous definition of 'SOMAXCONN' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(551): warning C4005: 'FD_READ': macro redefinition 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(554): note: see previous definition of 'FD_READ' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(554): warning C4005: 'FD_WRITE': macro redefinition 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(555): note: see previous definition of 'FD_WRITE' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(557): warning C4005: 'FD_OOB': macro redefinition 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(556): note: see previous definition of 'FD_OOB' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(560): warning C4005: 'FD_ACCEPT': macro redefinition 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(557): note: see previous definition of 'FD_ACCEPT' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(563): warning C4005: 'FD_CONNECT': macro redefinition 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(558): note: see previous definition of 'FD_CONNECT' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(566): warning C4005: 'FD_CLOSE': macro redefinition 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(559): note: see previous definition of 'FD_CLOSE' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(1646): error C2375: 'accept': redefinition; different linkage 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(734): note: see declaration of 'accept' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(1668): error C2375: 'bind': redefinition; different linkage 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(739): note: see declaration of 'bind' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(1689): error C2375: 'closesocket': redefinition; different linkage 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(744): note: see declaration of 'closesocket' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(1706): error C2375: 'connect': redefinition; different linkage 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(746): note: see declaration of 'connect' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(1727): error C2375: 'ioctlsocket': redefinition; different linkage 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(751): note: see declaration of 'ioctlsocket' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(1748): error C2375: 'getpeername': redefinition; different linkage 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(756): note: see declaration of 'getpeername' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(1769): error C2375: 'getsockname': redefinition; different linkage 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(761): note: see declaration of 'getsockname' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(1790): error C2375: 'getsockopt': redefinition; different linkage 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(766): note: see declaration of 'getsockopt' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(1815): error C2375: 'htonl': redefinition; different linkage 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(773): note: see declaration of 'htonl' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(1832): error C2375: 'htons': redefinition; different linkage 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(775): note: see declaration of 'htons' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(1850): error C2375: 'inet_addr': redefinition; different linkage 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(777): note: see declaration of 'inet_addr' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(1868): error C2375: 'inet_ntoa': redefinition; different linkage 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(779): note: see declaration of 'inet_ntoa' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(1968): error C2375: 'listen': redefinition; different linkage 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(781): note: see declaration of 'listen' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(1987): error C2375: 'ntohl': redefinition; different linkage 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(785): note: see declaration of 'ntohl' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(2004): error C2375: 'ntohs': redefinition; different linkage 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(787): note: see declaration of 'ntohs' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(2021): error C2375: 'recv': redefinition; different linkage 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(789): note: see declaration of 'recv' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(2044): error C2375: 'recvfrom': redefinition; different linkage 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(795): note: see declaration of 'recvfrom' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(2071): error C2375: 'select': redefinition; different linkage 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(803): note: see declaration of 'select' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(2096): error C2375: 'send': redefinition; different linkage 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(810): note: see declaration of 'send' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(2119): error C2375: 'sendto': redefinition; different linkage 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(816): note: see declaration of 'sendto' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(2146): error C2375: 'setsockopt': redefinition; different linkage 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(824): note: see declaration of 'setsockopt' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(2171): error C2375: 'shutdown': redefinition; different linkage 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(831): note: see declaration of 'shutdown' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(2191): error C2375: 'socket': redefinition; different linkage 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(835): note: see declaration of 'socket' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(2216): error C2375: 'gethostbyaddr': redefinition; different linkage 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(842): note: see declaration of 'gethostbyaddr' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(2238): error C2375: 'gethostbyname': redefinition; different linkage 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(847): note: see declaration of 'gethostbyname' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(2255): error C2375: 'gethostname': redefinition; different linkage 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(849): note: see declaration of 'gethostname' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(2295): error C2375: 'getservbyport': redefinition; different linkage 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(853): note: see declaration of 'getservbyport' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(2314): error C2375: 'getservbyname': redefinition; different linkage 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(857): note: see declaration of 'getservbyname' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(2333): error C2375: 'getprotobynumber': redefinition; different linkage 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(861): note: see declaration of 'getprotobynumber' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(2350): error C2375: 'getprotobyname': redefinition; different linkage 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(863): note: see declaration of 'getprotobyname' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(2370): error C2375: 'WSAStartup': redefinition; different linkage 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(867): note: see declaration of 'WSAStartup' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(2390): error C2375: 'WSACleanup': redefinition; different linkage 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(871): note: see declaration of 'WSACleanup' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(2407): error C2375: 'WSASetLastError': redefinition; different linkage 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(873): note: see declaration of 'WSASetLastError' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(2424): error C2375: 'WSAGetLastError': redefinition; different linkage 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(875): note: see declaration of 'WSAGetLastError' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(2445): error C2375: 'WSAIsBlocking': redefinition; different linkage 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(877): note: see declaration of 'WSAIsBlocking' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(2463): error C2375: 'WSAUnhookBlockingHook': redefinition; different linkage 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(879): note: see declaration of 'WSAUnhookBlockingHook' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(2481): error C2375: 'WSASetBlockingHook': redefinition; different linkage 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(881): note: see declaration of 'WSASetBlockingHook' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(2499): error C2375: 'WSACancelBlockingCall': redefinition; different linkage 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(883): note: see declaration of 'WSACancelBlockingCall' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(2517): error C2375: 'WSAAsyncGetServByName': redefinition; different linkage 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(885): note: see declaration of 'WSAAsyncGetServByName' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(2545): error C2375: 'WSAAsyncGetServByPort': redefinition; different linkage 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(893): note: see declaration of 'WSAAsyncGetServByPort' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(2573): error C2375: 'WSAAsyncGetProtoByName': redefinition; different linkage 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(901): note: see declaration of 'WSAAsyncGetProtoByName' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(2599): error C2375: 'WSAAsyncGetProtoByNumber': redefinition; different linkage 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(908): note: see declaration of 'WSAAsyncGetProtoByNumber' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(2625): error C2375: 'WSAAsyncGetHostByName': redefinition; different linkage 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(915): note: see declaration of 'WSAAsyncGetHostByName' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(2651): error C2375: 'WSAAsyncGetHostByAddr': redefinition; different linkage 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(922): note: see declaration of 'WSAAsyncGetHostByAddr' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(2681): error C2375: 'WSACancelAsyncRequest': redefinition; different linkage 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(931): note: see declaration of 'WSACancelAsyncRequest' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(2699): error C2375: 'WSAAsyncSelect': redefinition; different linkage 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(933): note: see declaration of 'WSAAsyncSelect' 1>c:\users\root\desktop\luasec-master\src\context.c(158): warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. 1>c:\program files (x86)\windows kits\10\include\10.0.10240.0\ucrt\string.h(346): note: see declaration of 'strncpy' 1>c:\users\root\desktop\luasec-master\src\context.c(226): warning C4996: 'PEM_read_bio_DHparams': Since OpenSSL 3.0 1>c:\users\root\desktop\openssl-3.2.0\include\openssl\pem.h(473): note: see declaration of 'PEM_read_bio_DHparams' 1>c:\users\root\desktop\luasec-master\src\context.c(554): warning C4996: 'SSL_CTX_set_tmp_dh_callback': Since OpenSSL 3.0 1>c:\users\root\desktop\openssl-3.2.0\include\openssl\ssl.h(2264): note: see declaration of 'SSL_CTX_set_tmp_dh_callback' 1>c:\users\root\desktop\luasec-master\src\context.c(588): warning C4996: 'EC_KEY_free': Since OpenSSL 3.0 1>c:\users\root\desktop\openssl-3.2.0\include\openssl\ec.h(1022): note: see declaration of 'EC_KEY_free' 1>config.c 1>Generating Code... 1>Done building project "luasec.vcxproj" -- FAILED. ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== ========== Build completed at 15:54 and took 05,436 seconds ==========
openssl-3.0.8 without crypt32.lib error: Build started at 15:57... 1>------ Build started: Project: luasec, Configuration: Debug Win32 ------ 1>x509.c 1>ssl.c 1>c:\users\root\desktop\luasec-master\src\ssl.c(394): warning C4996: 'DH_free': Since OpenSSL 3.0 1>f:\! 08.01.24\openssl\include\openssl\dh.h(200): note: see declaration of 'DH_free' 1>options.c 1>wsocket.c 1>c:\users\root\desktop\luasec-master\src\luasocket\wsocket.c(311): warning C4996: 'gethostbyaddr': Use getnameinfo() or GetNameInfoW() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(2216): note: see declaration of 'gethostbyaddr' 1>c:\users\root\desktop\luasec-master\src\luasocket\wsocket.c(317): warning C4996: 'gethostbyname': Use getaddrinfo() or GetAddrInfoW() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(2238): note: see declaration of 'gethostbyname' 1>timeout.c 1>io.c 1>buffer.c 1>ec.c 1>c:\users\root\desktop\luasec-master\src\ec.c(26): warning C4996: 'EC_KEY_new_by_curve_name': Since OpenSSL 3.0 1>f:\! 08.01.24\openssl\include\openssl\ec.h(998): note: see declaration of 'EC_KEY_new_by_curve_name' 1>context.c 1>c:\users\root\desktop\luasec-master\src\context.c(158): warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. 1>c:\program files (x86)\windows kits\10\include\10.0.10240.0\ucrt\string.h(346): note: see declaration of 'strncpy' 1>c:\users\root\desktop\luasec-master\src\context.c(226): warning C4996: 'PEM_read_bio_DHparams': Since OpenSSL 3.0 1>f:\! 08.01.24\openssl\include\openssl\pem.h(469): note: see declaration of 'PEM_read_bio_DHparams' 1>c:\users\root\desktop\luasec-master\src\context.c(554): warning C4996: 'SSL_CTX_set_tmp_dh_callback': Since OpenSSL 3.0 1>f:\! 08.01.24\openssl\include\openssl\ssl.h(2227): note: see declaration of 'SSL_CTX_set_tmp_dh_callback' 1>c:\users\root\desktop\luasec-master\src\context.c(588): warning C4996: 'EC_KEY_free': Since OpenSSL 3.0 1>f:\! 08.01.24\openssl\include\openssl\ec.h(1003): note: see declaration of 'EC_KEY_free' 1>config.c 1>Generating Code... 1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets(1189,5): warning MSB8012: TargetPath(C:\Users\root\Desktop\luasec-master\Debug\luasec.dll) does not match the Linker's OutputFile property value (C:\Users\root\Desktop\luasec-master\Debug\ssl.dll). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Link.OutputFile). 1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets(1191,5): warning MSB8012: TargetName(luasec) does not match the Linker's OutputFile property value (ssl). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Link.OutputFile). 1>config.obj : warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/SAFESEH' specification 1> Creating library Debug\ssl.lib and object Debug\ssl.exp 1>libcrypto.lib(libcrypto-lib-e_capi.obj) : error LNK2019: unresolved external symbol __imp__CertOpenStore@20 referenced in function _capi_open_store 1>libcrypto.lib(libcrypto-lib-e_capi.obj) : error LNK2019: unresolved external symbol __imp__CertCloseStore@8 referenced in function _capi_find_key 1>libcrypto.lib(libcrypto-lib-e_capi.obj) : error LNK2019: unresolved external symbol __imp__CertEnumCertificatesInStore@8 referenced in function _capi_find_cert 1>libcrypto.lib(libcrypto-lib-e_capi.obj) : error LNK2019: unresolved external symbol __imp__CertFindCertificateInStore@24 referenced in function _capi_find_cert 1>libcrypto.lib(libcrypto-lib-e_capi.obj) : error LNK2019: unresolved external symbol __imp__CertDuplicateCertificateContext@4 referenced in function _capi_load_ssl_client_cert 1>libcrypto.lib(libcrypto-lib-e_capi.obj) : error LNK2019: unresolved external symbol __imp__CertFreeCertificateContext@4 referenced in function _capi_dsa_free 1>libcrypto.lib(libcrypto-lib-e_capi.obj) : error LNK2019: unresolved external symbol __imp__CertGetCertificateContextProperty@16 referenced in function _capi_cert_get_fname 1>Debug\ssl.dll : fatal error LNK1120: 7 unresolved externals 1>Done building project "luasec.vcxproj" -- FAILED. ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== ========== Build completed at 15:57 and took 10,474 seconds ==========
openssl-3.0.8 with crypt32.lib successful log:
crypt32.lib;ws2_32.lib;libssl.lib;libcrypto.lib;lua51.lib;%(AdditionalDependencies) Build started at 15:58... 1>------ Build started: Project: luasec, Configuration: Debug Win32 ------ 1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets(1189,5): warning MSB8012: TargetPath(C:\Users\root\Desktop\luasec-master\Debug\luasec.dll) does not match the Linker's OutputFile property value (C:\Users\root\Desktop\luasec-master\Debug\ssl.dll). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Link.OutputFile). 1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets(1191,5): warning MSB8012: TargetName(luasec) does not match the Linker's OutputFile property value (ssl). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Link.OutputFile). 1>config.obj : warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/SAFESEH' specification 1> Creating library Debug\ssl.lib and object Debug\ssl.exp 1>luasec.vcxproj -> C:\Users\root\Desktop\luasec-master\Debug\luasec.dll 1>luasec.vcxproj -> Debug\luasec.pdb (Full PDB) 1>Done building project "luasec.vcxproj". ========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ========== ========== Build completed at 15:58 and took 12,599 seconds ==========
The text was updated successfully, but these errors were encountered:
Hi, I'm using the latest LuaSec commit, and I noticed that it compiles successfully only with openssl version <=3.0.8 (maybe higher, but with 3.2.0 there are already errors), also in Additional dependencies you need to write "crypt32.lib":
"crypt32.lib;ws2_32.lib;libssl.lib;libcrypto.lib;lua51.lib;%(AdditionalDependencies)", without crypt32 there are already other errors.
openssl-3.2.0 without crypt32.lib build log:
Build started at 15:53... 1>------ Build started: Project: luasec, Configuration: Debug Win32 ------ 1>x509.c 1>ssl.c 1>c:\users\root\desktop\luasec-master\src\ssl.c(394): warning C4996: 'DH_free': Since OpenSSL 3.0 1>c:\users\root\desktop\openssl-3.2.0\include\openssl\dh.h(207): note: see declaration of 'DH_free' 1>options.c 1>wsocket.c 1>c:\users\root\desktop\luasec-master\src\luasocket\wsocket.c(311): warning C4996: 'gethostbyaddr': Use getnameinfo() or GetNameInfoW() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(2216): note: see declaration of 'gethostbyaddr' 1>c:\users\root\desktop\luasec-master\src\luasocket\wsocket.c(317): warning C4996: 'gethostbyname': Use getaddrinfo() or GetAddrInfoW() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(2238): note: see declaration of 'gethostbyname' 1>timeout.c 1>io.c 1>buffer.c 1>ec.c 1>c:\users\root\desktop\luasec-master\src\ec.c(26): warning C4996: 'EC_KEY_new_by_curve_name': Since OpenSSL 3.0 1>c:\users\root\desktop\openssl-3.2.0\include\openssl\ec.h(1017): note: see declaration of 'EC_KEY_new_by_curve_name' 1>context.c 1>c:\program files (x86)\windows kits\8.1\include\shared\ws2def.h(100): warning C4005: 'AF_IPX': macro redefinition 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(452): note: see previous definition of 'AF_IPX' 1>c:\program files (x86)\windows kits\8.1\include\shared\ws2def.h(133): warning C4005: 'AF_MAX': macro redefinition 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(471): note: see previous definition of 'AF_MAX' 1>c:\program files (x86)\windows kits\8.1\include\shared\ws2def.h(177): warning C4005: 'SO_DONTLINGER': macro redefinition 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(394): note: see previous definition of 'SO_DONTLINGER' 1>c:\program files (x86)\windows kits\8.1\include\shared\ws2def.h(221): error C2011: 'sockaddr': 'struct' type redefinition 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(477): note: see declaration of 'sockaddr' 1>c:\program files (x86)\windows kits\8.1\include\shared\ws2def.h(421): error C2059: syntax error: 'constant' 1>c:\program files (x86)\windows kits\8.1\include\shared\ws2def.h(556): warning C4005: 'IN_CLASSA': macro redefinition 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(279): note: see previous definition of 'IN_CLASSA' 1>c:\program files (x86)\windows kits\8.1\include\shared\ws2def.h(562): warning C4005: 'IN_CLASSB': macro redefinition 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(285): note: see previous definition of 'IN_CLASSB' 1>c:\program files (x86)\windows kits\8.1\include\shared\ws2def.h(568): warning C4005: 'IN_CLASSC': macro redefinition 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(291): note: see previous definition of 'IN_CLASSC' 1>c:\program files (x86)\windows kits\8.1\include\shared\ws2def.h(579): warning C4005: 'INADDR_ANY': macro redefinition 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(296): note: see previous definition of 'INADDR_ANY' 1>c:\program files (x86)\windows kits\8.1\include\shared\ws2def.h(581): warning C4005: 'INADDR_BROADCAST': macro redefinition 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(298): note: see previous definition of 'INADDR_BROADCAST' 1>c:\program files (x86)\windows kits\8.1\include\shared\ws2def.h(615): error C2011: 'sockaddr_in': 'struct' type redefinition 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(304): note: see declaration of 'sockaddr_in' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(136): error C2011: 'fd_set': 'struct' type redefinition 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(60): note: see declaration of 'fd_set' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(156): warning C4005: 'FD_CLR': macro redefinition 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(89): note: see previous definition of 'FD_CLR' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(171): warning C4005: 'FD_SET': macro redefinition 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(94): note: see previous definition of 'FD_SET' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(180): error C2011: 'timeval': 'struct' type redefinition 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(103): note: see declaration of 'timeval' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(236): error C2011: 'hostent': 'struct' type redefinition 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(159): note: see declaration of 'hostent' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(249): error C2011: 'netent': 'struct' type redefinition 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(172): note: see declaration of 'netent' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(256): error C2011: 'servent': 'struct' type redefinition 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(179): note: see declaration of 'servent' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(268): error C2011: 'protoent': 'struct' type redefinition 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(191): note: see declaration of 'protoent' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(364): error C2011: 'WSAData': 'struct' type redefinition 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(314): note: see declaration of 'WSAData' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(462): error C2011: 'sockproto': 'struct' type redefinition 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(486): note: see declaration of 'sockproto' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(504): error C2011: 'linger': 'struct' type redefinition 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(523): note: see declaration of 'linger' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(517): warning C4005: 'SOMAXCONN': macro redefinition 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(536): note: see previous definition of 'SOMAXCONN' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(551): warning C4005: 'FD_READ': macro redefinition 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(554): note: see previous definition of 'FD_READ' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(554): warning C4005: 'FD_WRITE': macro redefinition 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(555): note: see previous definition of 'FD_WRITE' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(557): warning C4005: 'FD_OOB': macro redefinition 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(556): note: see previous definition of 'FD_OOB' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(560): warning C4005: 'FD_ACCEPT': macro redefinition 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(557): note: see previous definition of 'FD_ACCEPT' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(563): warning C4005: 'FD_CONNECT': macro redefinition 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(558): note: see previous definition of 'FD_CONNECT' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(566): warning C4005: 'FD_CLOSE': macro redefinition 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(559): note: see previous definition of 'FD_CLOSE' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(1646): error C2375: 'accept': redefinition; different linkage 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(734): note: see declaration of 'accept' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(1668): error C2375: 'bind': redefinition; different linkage 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(739): note: see declaration of 'bind' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(1689): error C2375: 'closesocket': redefinition; different linkage 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(744): note: see declaration of 'closesocket' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(1706): error C2375: 'connect': redefinition; different linkage 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(746): note: see declaration of 'connect' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(1727): error C2375: 'ioctlsocket': redefinition; different linkage 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(751): note: see declaration of 'ioctlsocket' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(1748): error C2375: 'getpeername': redefinition; different linkage 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(756): note: see declaration of 'getpeername' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(1769): error C2375: 'getsockname': redefinition; different linkage 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(761): note: see declaration of 'getsockname' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(1790): error C2375: 'getsockopt': redefinition; different linkage 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(766): note: see declaration of 'getsockopt' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(1815): error C2375: 'htonl': redefinition; different linkage 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(773): note: see declaration of 'htonl' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(1832): error C2375: 'htons': redefinition; different linkage 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(775): note: see declaration of 'htons' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(1850): error C2375: 'inet_addr': redefinition; different linkage 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(777): note: see declaration of 'inet_addr' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(1868): error C2375: 'inet_ntoa': redefinition; different linkage 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(779): note: see declaration of 'inet_ntoa' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(1968): error C2375: 'listen': redefinition; different linkage 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(781): note: see declaration of 'listen' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(1987): error C2375: 'ntohl': redefinition; different linkage 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(785): note: see declaration of 'ntohl' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(2004): error C2375: 'ntohs': redefinition; different linkage 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(787): note: see declaration of 'ntohs' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(2021): error C2375: 'recv': redefinition; different linkage 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(789): note: see declaration of 'recv' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(2044): error C2375: 'recvfrom': redefinition; different linkage 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(795): note: see declaration of 'recvfrom' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(2071): error C2375: 'select': redefinition; different linkage 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(803): note: see declaration of 'select' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(2096): error C2375: 'send': redefinition; different linkage 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(810): note: see declaration of 'send' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(2119): error C2375: 'sendto': redefinition; different linkage 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(816): note: see declaration of 'sendto' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(2146): error C2375: 'setsockopt': redefinition; different linkage 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(824): note: see declaration of 'setsockopt' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(2171): error C2375: 'shutdown': redefinition; different linkage 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(831): note: see declaration of 'shutdown' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(2191): error C2375: 'socket': redefinition; different linkage 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(835): note: see declaration of 'socket' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(2216): error C2375: 'gethostbyaddr': redefinition; different linkage 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(842): note: see declaration of 'gethostbyaddr' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(2238): error C2375: 'gethostbyname': redefinition; different linkage 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(847): note: see declaration of 'gethostbyname' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(2255): error C2375: 'gethostname': redefinition; different linkage 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(849): note: see declaration of 'gethostname' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(2295): error C2375: 'getservbyport': redefinition; different linkage 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(853): note: see declaration of 'getservbyport' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(2314): error C2375: 'getservbyname': redefinition; different linkage 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(857): note: see declaration of 'getservbyname' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(2333): error C2375: 'getprotobynumber': redefinition; different linkage 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(861): note: see declaration of 'getprotobynumber' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(2350): error C2375: 'getprotobyname': redefinition; different linkage 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(863): note: see declaration of 'getprotobyname' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(2370): error C2375: 'WSAStartup': redefinition; different linkage 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(867): note: see declaration of 'WSAStartup' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(2390): error C2375: 'WSACleanup': redefinition; different linkage 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(871): note: see declaration of 'WSACleanup' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(2407): error C2375: 'WSASetLastError': redefinition; different linkage 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(873): note: see declaration of 'WSASetLastError' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(2424): error C2375: 'WSAGetLastError': redefinition; different linkage 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(875): note: see declaration of 'WSAGetLastError' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(2445): error C2375: 'WSAIsBlocking': redefinition; different linkage 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(877): note: see declaration of 'WSAIsBlocking' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(2463): error C2375: 'WSAUnhookBlockingHook': redefinition; different linkage 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(879): note: see declaration of 'WSAUnhookBlockingHook' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(2481): error C2375: 'WSASetBlockingHook': redefinition; different linkage 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(881): note: see declaration of 'WSASetBlockingHook' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(2499): error C2375: 'WSACancelBlockingCall': redefinition; different linkage 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(883): note: see declaration of 'WSACancelBlockingCall' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(2517): error C2375: 'WSAAsyncGetServByName': redefinition; different linkage 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(885): note: see declaration of 'WSAAsyncGetServByName' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(2545): error C2375: 'WSAAsyncGetServByPort': redefinition; different linkage 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(893): note: see declaration of 'WSAAsyncGetServByPort' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(2573): error C2375: 'WSAAsyncGetProtoByName': redefinition; different linkage 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(901): note: see declaration of 'WSAAsyncGetProtoByName' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(2599): error C2375: 'WSAAsyncGetProtoByNumber': redefinition; different linkage 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(908): note: see declaration of 'WSAAsyncGetProtoByNumber' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(2625): error C2375: 'WSAAsyncGetHostByName': redefinition; different linkage 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(915): note: see declaration of 'WSAAsyncGetHostByName' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(2651): error C2375: 'WSAAsyncGetHostByAddr': redefinition; different linkage 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(922): note: see declaration of 'WSAAsyncGetHostByAddr' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(2681): error C2375: 'WSACancelAsyncRequest': redefinition; different linkage 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(931): note: see declaration of 'WSACancelAsyncRequest' 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(2699): error C2375: 'WSAAsyncSelect': redefinition; different linkage 1>c:\program files (x86)\windows kits\8.1\include\um\winsock.h(933): note: see declaration of 'WSAAsyncSelect' 1>c:\users\root\desktop\luasec-master\src\context.c(158): warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. 1>c:\program files (x86)\windows kits\10\include\10.0.10240.0\ucrt\string.h(346): note: see declaration of 'strncpy' 1>c:\users\root\desktop\luasec-master\src\context.c(226): warning C4996: 'PEM_read_bio_DHparams': Since OpenSSL 3.0 1>c:\users\root\desktop\openssl-3.2.0\include\openssl\pem.h(473): note: see declaration of 'PEM_read_bio_DHparams' 1>c:\users\root\desktop\luasec-master\src\context.c(554): warning C4996: 'SSL_CTX_set_tmp_dh_callback': Since OpenSSL 3.0 1>c:\users\root\desktop\openssl-3.2.0\include\openssl\ssl.h(2264): note: see declaration of 'SSL_CTX_set_tmp_dh_callback' 1>c:\users\root\desktop\luasec-master\src\context.c(588): warning C4996: 'EC_KEY_free': Since OpenSSL 3.0 1>c:\users\root\desktop\openssl-3.2.0\include\openssl\ec.h(1022): note: see declaration of 'EC_KEY_free' 1>config.c 1>Generating Code... 1>Done building project "luasec.vcxproj" -- FAILED. ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== ========== Build completed at 15:54 and took 05,436 seconds ==========
openssl-3.0.8 without crypt32.lib error:
Build started at 15:57... 1>------ Build started: Project: luasec, Configuration: Debug Win32 ------ 1>x509.c 1>ssl.c 1>c:\users\root\desktop\luasec-master\src\ssl.c(394): warning C4996: 'DH_free': Since OpenSSL 3.0 1>f:\! 08.01.24\openssl\include\openssl\dh.h(200): note: see declaration of 'DH_free' 1>options.c 1>wsocket.c 1>c:\users\root\desktop\luasec-master\src\luasocket\wsocket.c(311): warning C4996: 'gethostbyaddr': Use getnameinfo() or GetNameInfoW() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(2216): note: see declaration of 'gethostbyaddr' 1>c:\users\root\desktop\luasec-master\src\luasocket\wsocket.c(317): warning C4996: 'gethostbyname': Use getaddrinfo() or GetAddrInfoW() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings 1>c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(2238): note: see declaration of 'gethostbyname' 1>timeout.c 1>io.c 1>buffer.c 1>ec.c 1>c:\users\root\desktop\luasec-master\src\ec.c(26): warning C4996: 'EC_KEY_new_by_curve_name': Since OpenSSL 3.0 1>f:\! 08.01.24\openssl\include\openssl\ec.h(998): note: see declaration of 'EC_KEY_new_by_curve_name' 1>context.c 1>c:\users\root\desktop\luasec-master\src\context.c(158): warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. 1>c:\program files (x86)\windows kits\10\include\10.0.10240.0\ucrt\string.h(346): note: see declaration of 'strncpy' 1>c:\users\root\desktop\luasec-master\src\context.c(226): warning C4996: 'PEM_read_bio_DHparams': Since OpenSSL 3.0 1>f:\! 08.01.24\openssl\include\openssl\pem.h(469): note: see declaration of 'PEM_read_bio_DHparams' 1>c:\users\root\desktop\luasec-master\src\context.c(554): warning C4996: 'SSL_CTX_set_tmp_dh_callback': Since OpenSSL 3.0 1>f:\! 08.01.24\openssl\include\openssl\ssl.h(2227): note: see declaration of 'SSL_CTX_set_tmp_dh_callback' 1>c:\users\root\desktop\luasec-master\src\context.c(588): warning C4996: 'EC_KEY_free': Since OpenSSL 3.0 1>f:\! 08.01.24\openssl\include\openssl\ec.h(1003): note: see declaration of 'EC_KEY_free' 1>config.c 1>Generating Code... 1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets(1189,5): warning MSB8012: TargetPath(C:\Users\root\Desktop\luasec-master\Debug\luasec.dll) does not match the Linker's OutputFile property value (C:\Users\root\Desktop\luasec-master\Debug\ssl.dll). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Link.OutputFile). 1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets(1191,5): warning MSB8012: TargetName(luasec) does not match the Linker's OutputFile property value (ssl). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Link.OutputFile). 1>config.obj : warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/SAFESEH' specification 1> Creating library Debug\ssl.lib and object Debug\ssl.exp 1>libcrypto.lib(libcrypto-lib-e_capi.obj) : error LNK2019: unresolved external symbol __imp__CertOpenStore@20 referenced in function _capi_open_store 1>libcrypto.lib(libcrypto-lib-e_capi.obj) : error LNK2019: unresolved external symbol __imp__CertCloseStore@8 referenced in function _capi_find_key 1>libcrypto.lib(libcrypto-lib-e_capi.obj) : error LNK2019: unresolved external symbol __imp__CertEnumCertificatesInStore@8 referenced in function _capi_find_cert 1>libcrypto.lib(libcrypto-lib-e_capi.obj) : error LNK2019: unresolved external symbol __imp__CertFindCertificateInStore@24 referenced in function _capi_find_cert 1>libcrypto.lib(libcrypto-lib-e_capi.obj) : error LNK2019: unresolved external symbol __imp__CertDuplicateCertificateContext@4 referenced in function _capi_load_ssl_client_cert 1>libcrypto.lib(libcrypto-lib-e_capi.obj) : error LNK2019: unresolved external symbol __imp__CertFreeCertificateContext@4 referenced in function _capi_dsa_free 1>libcrypto.lib(libcrypto-lib-e_capi.obj) : error LNK2019: unresolved external symbol __imp__CertGetCertificateContextProperty@16 referenced in function _capi_cert_get_fname 1>Debug\ssl.dll : fatal error LNK1120: 7 unresolved externals 1>Done building project "luasec.vcxproj" -- FAILED. ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== ========== Build completed at 15:57 and took 10,474 seconds ==========
openssl-3.0.8 with crypt32.lib successful log:
Build started at 15:58... 1>------ Build started: Project: luasec, Configuration: Debug Win32 ------ 1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets(1189,5): warning MSB8012: TargetPath(C:\Users\root\Desktop\luasec-master\Debug\luasec.dll) does not match the Linker's OutputFile property value (C:\Users\root\Desktop\luasec-master\Debug\ssl.dll). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Link.OutputFile). 1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets(1191,5): warning MSB8012: TargetName(luasec) does not match the Linker's OutputFile property value (ssl). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Link.OutputFile). 1>config.obj : warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/SAFESEH' specification 1> Creating library Debug\ssl.lib and object Debug\ssl.exp 1>luasec.vcxproj -> C:\Users\root\Desktop\luasec-master\Debug\luasec.dll 1>luasec.vcxproj -> Debug\luasec.pdb (Full PDB) 1>Done building project "luasec.vcxproj". ========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ========== ========== Build completed at 15:58 and took 12,599 seconds ==========
The text was updated successfully, but these errors were encountered: