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/16 11:23:26 UTC

cvs commit: xml-security/c/src/xkms XKMSCompoundResult.hpp

blautenb    2005/01/16 02:23:26

  Modified:    c/src/transformers TXFMSHA1.cpp
               c/src/xkms XKMSCompoundResult.hpp
  Log:
  XKISS T8 working
  
  Revision  Changes    Path
  1.7       +9 -2      xml-security/c/src/transformers/TXFMSHA1.cpp
  
  Index: TXFMSHA1.cpp
  ===================================================================
  RCS file: /home/cvs/xml-security/c/src/transformers/TXFMSHA1.cpp,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- TXFMSHA1.cpp	8 Feb 2004 10:25:16 -0000	1.6
  +++ TXFMSHA1.cpp	16 Jan 2005 10:23:26 -0000	1.7
  @@ -101,8 +101,15 @@
   	unsigned char buffer[1024];
   	unsigned int size;
   
  -	while ((size = input->readBytes((XMLByte *) buffer, 1024)) != 0)
  +	while ((size = input->readBytes((XMLByte *) buffer, 1024)) != 0) {
  +#if 1
  +		// Some useful debbugging code
  +		FILE * f = fopen("debug.out","a+b");
  +		fwrite(buffer, size, 1, f);
  +		fclose(f);
  +#endif
   		mp_h->hash(buffer, size);
  +	}
   	
   	// Finalise
   
  
  
  
  1.3       +23 -1     xml-security/c/src/xkms/XKMSCompoundResult.hpp
  
  Index: XKMSCompoundResult.hpp
  ===================================================================
  RCS file: /home/cvs/xml-security/c/src/xkms/XKMSCompoundResult.hpp,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- XKMSCompoundResult.hpp	29 Oct 2004 23:16:02 -0000	1.2
  +++ XKMSCompoundResult.hpp	16 Jan 2005 10:23:26 -0000	1.3
  @@ -34,6 +34,8 @@
   class XKMSLocateResult;
   class XKMSLocateRequest;
   class XKMSValidateResult;
  +class XKMSStatusResult;
  +class XKMSStatusRequest;
   class XKMSValidateRequest;
   class XKMSRegisterRequest;
   class XKMSRegisterResult;
  @@ -162,6 +164,26 @@
   		XKMSResultType::ResultMajor rmaj,
   		XKMSResultType::ResultMinor rmin = XKMSResultType::NoneMinor,
   		const XMLCh * id = NULL) = 0;
  +
  +	/**
  +	 * \brief Create a new \<StatusResult\> message.
  +	 * 
  +	 * Generates a new StatusResult message from scratch, building the DOM
  +	 * as it goes.  The response will be based on a input StatusRequest message
  +	 * which is used to provide Id etc.
  +	 *
  +	 * @param request Request to base response on
  +	 * @param id Value to set in the Id field.  If NULL, the library will
  +	 * generate a new Unique Id value.
  +	 * @returns the new XKMSStatusResponse structure
  +	 */
  +
  +	virtual XKMSStatusResult * createStatusResult(
  +		XKMSStatusRequest * request,
  +		XKMSResultType::ResultMajor rmaj,
  +		XKMSResultType::ResultMinor rmin = XKMSResultType::NoneMinor,
  +		const XMLCh * id = NULL) = 0;
  +		
   
   	/**
   	 * \brief Create a new \<RegisterResult\> message.