mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-23 01:49:53 +03:00
Merge pull request #1731 from chipitsine/master
LibreSSL-3.7.0 compatibility
This commit is contained in:
commit
ec3769ba32
@ -14,8 +14,10 @@ static int CryptoKeyTypeToID(const CRYPTO_KEY_TYPE type)
|
|||||||
break;
|
break;
|
||||||
case KEY_X25519:
|
case KEY_X25519:
|
||||||
return EVP_PKEY_X25519;
|
return EVP_PKEY_X25519;
|
||||||
|
#if defined(EVP_PKEY_X448)
|
||||||
case KEY_X448:
|
case KEY_X448:
|
||||||
return EVP_PKEY_X448;
|
return EVP_PKEY_X448;
|
||||||
|
#endif
|
||||||
default:
|
default:
|
||||||
Debug("CryptoKeyTypeToID(): Unhandled type %u!\n", type);
|
Debug("CryptoKeyTypeToID(): Unhandled type %u!\n", type);
|
||||||
}
|
}
|
||||||
@ -164,9 +166,11 @@ bool CryptoKeyOpaqueToRaw(const void *opaque, CRYPTO_KEY_RAW **private, CRYPTO_K
|
|||||||
case EVP_PKEY_X25519:
|
case EVP_PKEY_X25519:
|
||||||
type = KEY_X25519;
|
type = KEY_X25519;
|
||||||
break;
|
break;
|
||||||
|
#if defined(EVP_PKEY_X448)
|
||||||
case EVP_PKEY_X448:
|
case EVP_PKEY_X448:
|
||||||
type = KEY_X448;
|
type = KEY_X448;
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
default:
|
default:
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -11892,7 +11892,9 @@ bool StartSSLEx3(SOCK *sock, X *x, K *priv, LIST *chain, UINT ssl_timeout, char
|
|||||||
{
|
{
|
||||||
case SSL_R_UNSUPPORTED_PROTOCOL:
|
case SSL_R_UNSUPPORTED_PROTOCOL:
|
||||||
case SSL_R_VERSION_TOO_LOW:
|
case SSL_R_VERSION_TOO_LOW:
|
||||||
|
#if defined(SSL_R_VERSION_TOO_HIGH)
|
||||||
case SSL_R_VERSION_TOO_HIGH:
|
case SSL_R_VERSION_TOO_HIGH:
|
||||||
|
#endif
|
||||||
*ssl_err = 150; // ERR_SSL_PROTOCOL_VERSION
|
*ssl_err = 150; // ERR_SSL_PROTOCOL_VERSION
|
||||||
break;
|
break;
|
||||||
case SSL_R_NO_SHARED_CIPHER:
|
case SSL_R_NO_SHARED_CIPHER:
|
||||||
@ -11956,7 +11958,9 @@ bool StartSSLEx3(SOCK *sock, X *x, K *priv, LIST *chain, UINT ssl_timeout, char
|
|||||||
{
|
{
|
||||||
case SSL_R_UNSUPPORTED_PROTOCOL:
|
case SSL_R_UNSUPPORTED_PROTOCOL:
|
||||||
case SSL_R_VERSION_TOO_LOW:
|
case SSL_R_VERSION_TOO_LOW:
|
||||||
|
#if defined(SSL_R_VERSION_TOO_HIGH)
|
||||||
case SSL_R_VERSION_TOO_HIGH:
|
case SSL_R_VERSION_TOO_HIGH:
|
||||||
|
#endif
|
||||||
case SSL_R_TLSV1_ALERT_PROTOCOL_VERSION:
|
case SSL_R_TLSV1_ALERT_PROTOCOL_VERSION:
|
||||||
*ssl_err = 150; // ERR_SSL_PROTOCOL_VERSION
|
*ssl_err = 150; // ERR_SSL_PROTOCOL_VERSION
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user