From 844b7023e3222f49f7f2b56d840cd99222fd5e3e Mon Sep 17 00:00:00 2001 From: Chris Coulson Date: Fri, 22 Jan 2016 14:31:34 -0500 Subject: [PATCH] Fixes issue 22. Prevents exceptions from occurring if the signature is invalid and returns false instead. --- src/Portable.Licensing/License.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Portable.Licensing/License.cs b/src/Portable.Licensing/License.cs index 9da4dda..44b502a 100644 --- a/src/Portable.Licensing/License.cs +++ b/src/Portable.Licensing/License.cs @@ -245,6 +245,10 @@ public bool VerifySignature(string publicKey) return signer.VerifySignature(Convert.FromBase64String(signTag.Value)); } + catch + { + return false; + } finally { xmlData.Add(signTag);