aboutsummaryrefslogtreecommitdiff
path: root/net/openvpn/patches/220-disable_des.patch
diff options
context:
space:
mode:
authorIvan Pavlov <AuthorReflex@gmail.com>2022-06-06 08:57:31 +0300
committerRosen Penev <rosenp@gmail.com>2022-06-09 11:07:03 -0700
commit45b751dd850b20e791851d116f2f927c3fbe79eb (patch)
treee067afd8bc09ba2309a78433d007e39243548fde /net/openvpn/patches/220-disable_des.patch
parent44149099e739db3d5c4a088f4a6e7d6cb9ed37b7 (diff)
openvpn: update to 2.5.7
Added limited support for OpenSSL 3.0 Fixed some bugs Signed-off-by: Ivan Pavlov <AuthorReflex@gmail.com>
Diffstat (limited to 'net/openvpn/patches/220-disable_des.patch')
-rw-r--r--net/openvpn/patches/220-disable_des.patch12
1 files changed, 6 insertions, 6 deletions
diff --git a/net/openvpn/patches/220-disable_des.patch b/net/openvpn/patches/220-disable_des.patch
index 9ddf1047b..a49c463c4 100644
--- a/net/openvpn/patches/220-disable_des.patch
+++ b/net/openvpn/patches/220-disable_des.patch
@@ -11,7 +11,7 @@
* Should we include proxy digest auth functionality
--- a/src/openvpn/crypto_mbedtls.c
+++ b/src/openvpn/crypto_mbedtls.c
-@@ -383,6 +383,7 @@ int
+@@ -396,6 +396,7 @@ int
key_des_num_cblocks(const mbedtls_cipher_info_t *kt)
{
int ret = 0;
@@ -19,7 +19,7 @@
if (kt->type == MBEDTLS_CIPHER_DES_CBC)
{
ret = 1;
-@@ -395,6 +396,7 @@ key_des_num_cblocks(const mbedtls_cipher
+@@ -408,6 +409,7 @@ key_des_num_cblocks(const mbedtls_cipher
{
ret = 3;
}
@@ -27,7 +27,7 @@
dmsg(D_CRYPTO_DEBUG, "CRYPTO INFO: n_DES_cblocks=%d", ret);
return ret;
-@@ -403,6 +405,7 @@ key_des_num_cblocks(const mbedtls_cipher
+@@ -416,6 +418,7 @@ key_des_num_cblocks(const mbedtls_cipher
bool
key_des_check(uint8_t *key, int key_len, int ndc)
{
@@ -35,7 +35,7 @@
int i;
struct buffer b;
-@@ -431,11 +434,15 @@ key_des_check(uint8_t *key, int key_len,
+@@ -444,11 +447,15 @@ key_des_check(uint8_t *key, int key_len,
err:
return false;
@@ -51,7 +51,7 @@
int i;
struct buffer b;
-@@ -450,6 +457,7 @@ key_des_fixup(uint8_t *key, int key_len,
+@@ -463,6 +470,7 @@ key_des_fixup(uint8_t *key, int key_len,
}
mbedtls_des_key_set_parity(key);
}
@@ -59,7 +59,7 @@
}
/*
-@@ -770,10 +778,12 @@ cipher_des_encrypt_ecb(const unsigned ch
+@@ -783,10 +791,12 @@ cipher_des_encrypt_ecb(const unsigned ch
unsigned char *src,
unsigned char *dst)
{