Skip to content
Permalink
Browse files

Fix the tests.

  • Loading branch information
baulig authored and lewing committed Aug 14, 2019
1 parent 71e34ed commit 29b1ac19c961b959a09097dbc0fe4cd567cc5298
Showing with 6 additions and 3 deletions.
  1. +6 −3 mcs/class/System/Mono.Btls/X509CertificateImplBtls.cs
@@ -198,11 +198,14 @@ protected override void Dispose (bool disposing)
set {
if (nativePrivateKey != null)
nativePrivateKey.Dispose ();
if (value == null) {
try {
// FIXME: there doesn't seem to be a public API to check whether it actually
// contains a private key (apart from RSAManaged.PublicOnly).
if (value != null)
nativePrivateKey = MonoBtlsKey.CreateFromRSAPrivateKey ((RSA)value);
} catch {
nativePrivateKey = null;
return;
}
nativePrivateKey = MonoBtlsKey.CreateFromRSAPrivateKey ((RSA)value);
}
}

0 comments on commit 29b1ac1

Please sign in to comment.
You can’t perform that action at this time.