From fbf75ea3b9df45704af7dc69b6333264afcc33c8 Mon Sep 17 00:00:00 2001 From: orignal Date: Wed, 12 Oct 2016 13:28:22 -0400 Subject: [PATCH] check if signer/verifier is set already --- Identity.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Identity.cpp b/Identity.cpp index 99da059e..30051914 100644 --- a/Identity.cpp +++ b/Identity.cpp @@ -309,6 +309,7 @@ namespace data void IdentityEx::CreateVerifier () const { + if (m_Verifier) return; // don't create again auto keyType = GetSigningKeyType (); switch (keyType) { @@ -476,6 +477,7 @@ namespace data void PrivateKeys::CreateSigner () const { + if (m_Signer) return; switch (m_Public->GetSigningKeyType ()) { case SIGNING_KEY_TYPE_DSA_SHA1: