Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/duplicati/duplicati.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Hsu <kennethhsu@gmail.com>2021-05-18 22:18:23 +0300
committerKenneth Hsu <kennethhsu@gmail.com>2021-05-18 22:19:49 +0300
commita5fbee033536d54a937d7dbc7ff935efcbe10b7c (patch)
tree64e432c582ca4edd84e738b067548ddca3f96e6a
parentc246976fbbd937164e2ef60a2c61e762b6fe075b (diff)
Simplify exception handling when testing for ECDSA support.
.NET 5 moves the responsibility to the operating system, and since SSH.NET currently relies on the ECDsaCng class, we will simply interpret all exceptions to mean lack of ECDSA support.
-rw-r--r--Duplicati/Library/Backend/SSHv2/SSHv2Backend.cs6
1 files changed, 1 insertions, 5 deletions
diff --git a/Duplicati/Library/Backend/SSHv2/SSHv2Backend.cs b/Duplicati/Library/Backend/SSHv2/SSHv2Backend.cs
index 2299d2cd5..14bb5264a 100644
--- a/Duplicati/Library/Backend/SSHv2/SSHv2Backend.cs
+++ b/Duplicati/Library/Backend/SSHv2/SSHv2Backend.cs
@@ -75,13 +75,9 @@ namespace Duplicati.Library.Backend
ECDsaCng unused = new ECDsaCng();
SSHv2.supportsECDSA = true;
}
- catch (NotImplementedException)
- {
- SSHv2.supportsECDSA = false;
- }
catch
{
- SSHv2.supportsECDSA = true;
+ SSHv2.supportsECDSA = false;
}
}