mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-05-13 20:06:24 +08:00
Use own time functions
This commit is contained in:
@@ -43,6 +43,7 @@ set(src
|
|||||||
src/ec.c
|
src/ec.c
|
||||||
src/rsa.c
|
src/rsa.c
|
||||||
src/asn1.c
|
src/asn1.c
|
||||||
|
src/u_time.c
|
||||||
src/hex.c
|
src/hex.c
|
||||||
src/base64.c
|
src/base64.c
|
||||||
src/pem.c
|
src/pem.c
|
||||||
@@ -109,7 +110,7 @@ endif()
|
|||||||
|
|
||||||
|
|
||||||
if (WIN32)
|
if (WIN32)
|
||||||
list(APPEND src src/u_time.c)
|
# list(APPEND src src/u_time.c)
|
||||||
list(APPEND src src/rand_win.c)
|
list(APPEND src src/rand_win.c)
|
||||||
elseif (APPLE)
|
elseif (APPLE)
|
||||||
list(APPEND src src/rand_apple.c)
|
list(APPEND src src/rand_apple.c)
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
#include <gmssl/asn1.h>
|
#include <gmssl/asn1.h>
|
||||||
#include <gmssl/error.h>
|
#include <gmssl/error.h>
|
||||||
#include <gmssl/endian.h>
|
#include <gmssl/endian.h>
|
||||||
|
#define WIN32 // only for use own time functions
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
#include "u_time.h"
|
#include "u_time.h"
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user