[cpp-xmltooling] 01/02: CPPXT-110 Inverted parameters to TSM_ASSERT in DSA test

Rod Widdowson rdw at steadingsoftware.com
Sun Nov 20 10:30:33 EST 2016


This is an automated email from the git hooks/post-receive script.

rdw pushed a commit to branch master
in repository cpp-xmltooling.

View the commit online:
http://git.shibboleth.net/view/?p=cpp-xmltooling.git;a=commit;h=167da50fd20d44803b3107aa116e60bc59cdabd3

commit 167da50fd20d44803b3107aa116e60bc59cdabd3
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Sun Nov 20 10:48:47 2016 +0000

    CPPXT-110 Inverted parameters to TSM_ASSERT in DSA test
    
    https://issues.shibboleth.net/jira/browse/CPPXT-110
---
 xmltoolingtest/InlineKeyResolverTest.h | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/xmltoolingtest/InlineKeyResolverTest.h b/xmltoolingtest/InlineKeyResolverTest.h
index 69c7ce9..baaa5b3 100644
--- a/xmltoolingtest/InlineKeyResolverTest.h
+++ b/xmltoolingtest/InlineKeyResolverTest.h
@@ -120,10 +120,10 @@ public:
         unsigned int len = fileResolverDSA->signBase64Signature(toSign, 20, outSig, bufferSize);
 
         bool worked = fileResolverDSA->verifyBase64Signature(toSign, 20, outSig, len);
-        TSM_ASSERT(worked, "round trip file resolver DSA");
+        TSM_ASSERT("Round trip file resolver DSA failed", worked);
 
         worked = keyInfoDSA->verifyBase64Signature(toSign, 20, outSig, len);
-        TSM_ASSERT(worked, "round trip KeyInfo DSA");
+        TSM_ASSERT("Round trip KeyInfo DSA failed", worked);
 
     }
 
@@ -161,8 +161,7 @@ public:
         const int bufferSize = 1024;
         char outSig[bufferSize] = {0};
         unsigned int len = fileResolverCryptoKeyEC->signBase64SignatureDSA(toSign, sizeof(toSign), &outSig[0], bufferSize);
-        //bool worked = fileResolverCryptoKeyEC->verifyBase64SignatureDSA(toSign, sizeof(toSign), &outSig[0], len);
-        //TSM_ASSERT("EC Round Trip Signature Failed", worked);
+
         bool worked = sslCredFromKeyInfo->verifyBase64SignatureDSA(toSign, sizeof(toSign), &outSig[0], len);
         TSM_ASSERT("EC Round Trip Signature via KeyInfo Failed", worked);
     }

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list