mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2025-06-28 20:05:08 +03:00
v4.30-9700-beta
This commit is contained in:
parent
9686292a6a
commit
a81e4c2eb8
@ -129,7 +129,7 @@
|
||||
#define CEDAR_VER 430
|
||||
|
||||
// Build Number
|
||||
#define CEDAR_BUILD 9696
|
||||
#define CEDAR_BUILD 9700
|
||||
|
||||
// Beta number
|
||||
//#define BETA_NUMBER 3
|
||||
@ -150,10 +150,10 @@
|
||||
// Specifies the build date
|
||||
#define BUILD_DATE_Y 2019
|
||||
#define BUILD_DATE_M 7
|
||||
#define BUILD_DATE_D 8
|
||||
#define BUILD_DATE_HO 12
|
||||
#define BUILD_DATE_MI 9
|
||||
#define BUILD_DATE_SE 40
|
||||
#define BUILD_DATE_D 13
|
||||
#define BUILD_DATE_HO 21
|
||||
#define BUILD_DATE_MI 37
|
||||
#define BUILD_DATE_SE 51
|
||||
|
||||
// Tolerable time difference
|
||||
#define ALLOW_TIMESTAMP_DIFF (UINT64)(3 * 24 * 60 * 60 * 1000)
|
||||
|
@ -1,4 +1,4 @@
|
||||
BUILD_NUMBER 9696
|
||||
BUILD_NUMBER 9700
|
||||
VERSION 430
|
||||
BUILD_NAME beta
|
||||
BUILD_DATE 20190708_120940
|
||||
BUILD_DATE 20190713_213751
|
||||
|
@ -5946,6 +5946,10 @@ int cb_test(int a, X509_STORE_CTX *ctx)
|
||||
return 1;
|
||||
}
|
||||
|
||||
#if OPENSSL_VERSION_NUMBER < 0x10100000L
|
||||
#define X509_STORE_CTX_get0_cert(o) ((o)->cert)
|
||||
#endif
|
||||
|
||||
// Verify client SSL certificate during TLS handshake.
|
||||
//
|
||||
// (actually, only save the certificate for later authentication in Protocol.c)
|
||||
@ -5953,27 +5957,27 @@ int SslCertVerifyCallback(int preverify_ok, X509_STORE_CTX *ctx)
|
||||
{
|
||||
SSL *ssl;
|
||||
struct SslClientCertInfo *clientcert;
|
||||
X509 *cert;
|
||||
|
||||
ssl = X509_STORE_CTX_get_ex_data(ctx, SSL_get_ex_data_X509_STORE_CTX_idx());
|
||||
clientcert = SSL_get_ex_data(ssl, GetSslClientCertIndex());
|
||||
|
||||
if (clientcert != NULL)
|
||||
{
|
||||
clientcert->PreverifyErr = 0;
|
||||
clientcert->PreverifyErr = X509_STORE_CTX_get_error(ctx);
|
||||
clientcert->PreverifyErrMessage[0] = '\0';
|
||||
if (!preverify_ok)
|
||||
{
|
||||
char *msg;
|
||||
clientcert->PreverifyErr = X509_STORE_CTX_get_error(ctx);
|
||||
msg = (char *)X509_verify_cert_error_string(clientcert->PreverifyErr);
|
||||
StrCpy(clientcert->PreverifyErrMessage, PREVERIFY_ERR_MESSAGE_SIZE, msg);
|
||||
const char *msg = X509_verify_cert_error_string(clientcert->PreverifyErr);
|
||||
StrCpy(clientcert->PreverifyErrMessage, PREVERIFY_ERR_MESSAGE_SIZE, (char *)msg);
|
||||
Debug("SslCertVerifyCallback preverify error: '%s'\n", msg);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (ctx->cert != NULL)
|
||||
cert = X509_STORE_CTX_get0_cert(ctx);
|
||||
if (cert != NULL)
|
||||
{
|
||||
X *tmpX = X509ToX(ctx->cert); // this only wraps ctx->cert, but we need to make a copy
|
||||
X *tmpX = X509ToX(cert); // this only wraps cert, but we need to make a copy
|
||||
X *copyX = CloneX(tmpX);
|
||||
tmpX->do_not_free = true; // do not release inner X509 object
|
||||
FreeX(tmpX);
|
||||
|
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
@ -4,7 +4,7 @@
|
||||
|
||||
|
||||
/* File created by MIDL compiler version 7.00.0500 */
|
||||
/* at Mon Jul 08 12:10:02 2019
|
||||
/* at Sat Jul 13 21:38:11 2019
|
||||
*/
|
||||
/* Compiler settings for .\vpnweb.idl:
|
||||
Oicf, W1, Zp8, env=Win32 (32b run)
|
||||
|
@ -6,7 +6,7 @@
|
||||
|
||||
|
||||
/* File created by MIDL compiler version 7.00.0500 */
|
||||
/* at Mon Jul 08 12:10:02 2019
|
||||
/* at Sat Jul 13 21:38:11 2019
|
||||
*/
|
||||
/* Compiler settings for .\vpnweb.idl:
|
||||
Oicf, W1, Zp8, env=Win32 (32b run)
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
|
||||
/* File created by MIDL compiler version 7.00.0500 */
|
||||
/* at Mon Jul 08 12:10:02 2019
|
||||
/* at Sat Jul 13 21:38:11 2019
|
||||
*/
|
||||
/* Compiler settings for .\vpnweb.idl:
|
||||
Oicf, W1, Zp8, env=Win32 (32b run)
|
||||
|
Loading…
Reference in New Issue
Block a user