You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@santuario.apache.org by bl...@apache.org on 2005/01/15 12:20:19 UTC

cvs commit: xml-security/c/src/xkms/impl XKMSMessageFactoryImpl.cpp

blautenb    2005/01/15 03:20:19

  Modified:    c/src/xkms/impl XKMSMessageFactoryImpl.cpp
  Log:
  Do not copy request signature when NoAuthentication response code is set
  
  Revision  Changes    Path
  1.15      +2 -2      xml-security/c/src/xkms/impl/XKMSMessageFactoryImpl.cpp
  
  Index: XKMSMessageFactoryImpl.cpp
  ===================================================================
  RCS file: /home/cvs/xml-security/c/src/xkms/impl/XKMSMessageFactoryImpl.cpp,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- XKMSMessageFactoryImpl.cpp	4 Nov 2004 11:07:04 -0000	1.14
  +++ XKMSMessageFactoryImpl.cpp	15 Jan 2005 11:20:19 -0000	1.15
  @@ -91,7 +91,7 @@
   	for (i = 0; i < sz; ++i) {
   		if (strEquals(req->getResponseMechanismItemStr(i), XKMSConstants::s_tagRequestSignatureValue)) {
   			DSIGSignature *s = req->getSignature();
  -			if (s != NULL) {
  +			if (s != NULL && res->getResultMinor() != XKMSResultType::NoAuthentication) {
   
   				res->setRequestSignatureValue(s->getSignatureValue());