Skip to content

Commit

Permalink
check if signer/verifier is set already
Browse files Browse the repository at this point in the history
  • Loading branch information
orignal committed Oct 12, 2016
1 parent a157aba commit fbf75ea
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Identity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,7 @@ namespace data

void IdentityEx::CreateVerifier () const
{
if (m_Verifier) return; // don't create again
auto keyType = GetSigningKeyType ();
switch (keyType)
{
Expand Down Expand Up @@ -476,6 +477,7 @@ namespace data

void PrivateKeys::CreateSigner () const
{
if (m_Signer) return;
switch (m_Public->GetSigningKeyType ())
{
case SIGNING_KEY_TYPE_DSA_SHA1:
Expand Down

0 comments on commit fbf75ea

Please sign in to comment.