Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP1:Update
xmltooling
0017-CPPXT-110-Inverted-parameters-to-TSM_ASSER...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0017-CPPXT-110-Inverted-parameters-to-TSM_ASSERT-in-DSA-t.patch of Package xmltooling
From 167da50fd20d44803b3107aa116e60bc59cdabd3 Mon Sep 17 00:00:00 2001 From: Rod Widdowson <rdw@steadingsoftware.com> Date: Sun, 20 Nov 2016 10:48:47 +0000 Subject: [PATCH 17/31] 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); } -- 2.13.6
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor