Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ endif()

option(BUILD_SHARED_LIBS "Build using shared libraries" ON)

if (CMAKE_C_COMPILER_ID MATCHES "MSVC")
if (WIN32 AND CMAKE_C_COMPILER_ID MATCHES "MSVC|Clang")
message(STATUS "CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS")
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON) # set before add_library
endif()
Expand Down
1 change: 1 addition & 0 deletions include/gmssl/endian.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#ifndef GMSSL_ENDIAN_H
#define GMSSL_ENDIAN_H

#include <stdint.h>

/* Big Endian R/W */

Expand Down
2 changes: 1 addition & 1 deletion include/gmssl/kyber.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ void kyber_poly_add(kyber_poly_t r, const kyber_poly_t a, const kyber_poly_t b);
void kyber_poly_sub(kyber_poly_t r, const kyber_poly_t a, const kyber_poly_t b);


int16_t zeta[256];
extern int16_t zeta[256];

void init_zeta(void);

Expand Down
4 changes: 3 additions & 1 deletion src/tls12.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@
#include <gmssl/mem.h>
#include <gmssl/tls.h>

#include <fcntl.h>
#include <errno.h>
#ifndef WIN32
#include <fcntl.h>
#include <sys/select.h>
#endif



Expand Down
4 changes: 3 additions & 1 deletion src/tls_cookie.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@
#include <gmssl/mem.h>
#include <gmssl/tls.h>

#include <fcntl.h>
#include <errno.h>
#ifndef WIN32
#include <fcntl.h>
#include <sys/select.h>
#endif

/*
cookie
Expand Down
4 changes: 3 additions & 1 deletion src/tls_ocsp.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@
#include <gmssl/mem.h>
#include <gmssl/tls.h>

#include <fcntl.h>
#include <errno.h>
#ifndef WIN32
#include <fcntl.h>
#include <sys/select.h>
#endif


/*
Expand Down
4 changes: 3 additions & 1 deletion src/tls_psk.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@
#include <gmssl/mem.h>
#include <gmssl/tls.h>

#include <fcntl.h>
#include <errno.h>
#ifndef WIN32
#include <fcntl.h>
#include <sys/select.h>
#endif



Expand Down
4 changes: 3 additions & 1 deletion src/tls_sct.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@
#include <gmssl/mem.h>
#include <gmssl/tls.h>

#include <fcntl.h>
#include <errno.h>
#ifndef WIN32
#include <fcntl.h>
#include <sys/select.h>
#endif


/*
Expand Down
4 changes: 3 additions & 1 deletion src/tls_sni.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@
#include <gmssl/mem.h>
#include <gmssl/tls.h>

#include <fcntl.h>
#include <errno.h>
#ifndef WIN32
#include <fcntl.h>
#include <sys/select.h>
#endif

/*
server_name (SNI)
Expand Down