mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-05-06 16:36:16 +08:00
[bugfix] fix win32 incompatible pointer type error and cmake warnings
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
if (CMAKE_VERSION VERSION_LESS "3.0")
|
if (CMAKE_VERSION VERSION_LESS "3.0")
|
||||||
cmake_minimum_required(VERSION 2.8)
|
cmake_minimum_required(VERSION 2.8)
|
||||||
else()
|
else()
|
||||||
cmake_minimum_required(VERSION 3.6)
|
cmake_minimum_required(VERSION 3.10)
|
||||||
endif()
|
endif()
|
||||||
project(GmSSL C)
|
project(GmSSL C)
|
||||||
|
|
||||||
|
|||||||
@@ -2321,7 +2321,7 @@ int tls_set_socket(TLS_CONNECT *conn, tls_socket_t sock)
|
|||||||
{
|
{
|
||||||
int flags = 0;
|
int flags = 0;
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
if( ioctlsocket(sock, FIONBIO, &flags) != 0) {
|
if( ioctlsocket(sock, FIONBIO, (u_long*)&flags) != 0) {
|
||||||
error_puts("socket in non-blocking mode");
|
error_puts("socket in non-blocking mode");
|
||||||
//nginx will pass a socket in non-blocking mode
|
//nginx will pass a socket in non-blocking mode
|
||||||
//return -1;
|
//return -1;
|
||||||
|
|||||||
Reference in New Issue
Block a user