1
0
mirror of https://github.com/stefanocasazza/ULib.git synced 2025-09-28 19:05:55 +08:00

add DISABLE_CRL

This commit is contained in:
stefanocasazza 2019-09-20 20:52:48 +02:00
parent 160bb7832d
commit 1bdf7923c8
2 changed files with 10 additions and 7 deletions

View File

@ -27,12 +27,15 @@
# include <openssl/x509_vfy.h> # include <openssl/x509_vfy.h>
# include <ulib/base/ssl/dgst.h> # include <ulib/base/ssl/dgst.h>
typedef int (*verify_cb)(int,X509_STORE_CTX*); /* error callback */ typedef int (*verify_cb)(int,X509_STORE_CTX*); /* error callback */
# ifndef X509_V_FLAG_CRL_CHECK #ifdef DISABLE_CRL
# define X509_V_FLAG_CRL_CHECK 0x4 # define U_STORE_FLAGS 0
# endif # else
# ifndef X509_V_FLAG_CRL_CHECK_ALL # ifndef X509_V_FLAG_CRL_CHECK
# define X509_V_FLAG_CRL_CHECK_ALL 0x8 # define X509_V_FLAG_CRL_CHECK 0x4
# endif # endif
# ifndef X509_V_FLAG_CRL_CHECK_ALL
# define X509_V_FLAG_CRL_CHECK_ALL 0x8
# endif
# define U_STORE_FLAGS (X509_V_FLAG_CRL_CHECK | X509_V_FLAG_CRL_CHECK_ALL) # define U_STORE_FLAGS (X509_V_FLAG_CRL_CHECK | X509_V_FLAG_CRL_CHECK_ALL)
#endif #endif

View File

@ -1 +1 @@
0620 0625