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 2003/09/28 14:30:26 UTC

cvs commit: xml-security/c/src/enc/WinCAPI WinCAPICryptoProvider.cpp WinCAPICryptoProvider.hpp

blautenb    2003/09/28 05:30:26

  Modified:    c/src/enc/WinCAPI WinCAPICryptoProvider.cpp
                        WinCAPICryptoProvider.hpp
  Log:
  Temporary work-around to allow WinCAPI to compile whilst not supporting symmetric keys
  
  Revision  Changes    Path
  1.5       +11 -1     xml-security/c/src/enc/WinCAPI/WinCAPICryptoProvider.cpp
  
  Index: WinCAPICryptoProvider.cpp
  ===================================================================
  RCS file: /home/cvs/xml-security/c/src/enc/WinCAPI/WinCAPICryptoProvider.cpp,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- WinCAPICryptoProvider.cpp	5 Jul 2003 10:30:33 -0000	1.4
  +++ WinCAPICryptoProvider.cpp	28 Sep 2003 12:30:26 -0000	1.5
  @@ -210,6 +210,16 @@
   
   }
   
  +XSECCryptoSymmetricKey	* WinCAPICryptoProvider::keySymmetric(XSECCryptoSymmetricKey::SymmetricKeyType alg) {
  +
  +	// Only temporary
  +
  +	throw XSECException(XSECException::InternalError,
  +		"WinCAPICryptoProvider() - SymmetricKeys not yet supported");
  +
  +}
  +
  +
   // --------------------------------------------------------------------------------
   //     Translate a Base64 number to a Windows (little endian) integer
   // --------------------------------------------------------------------------------
  
  
  
  1.6       +13 -1     xml-security/c/src/enc/WinCAPI/WinCAPICryptoProvider.hpp
  
  Index: WinCAPICryptoProvider.hpp
  ===================================================================
  RCS file: /home/cvs/xml-security/c/src/enc/WinCAPI/WinCAPICryptoProvider.hpp,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- WinCAPICryptoProvider.hpp	5 Jul 2003 10:30:33 -0000	1.5
  +++ WinCAPICryptoProvider.hpp	28 Sep 2003 12:30:26 -0000	1.6
  @@ -305,6 +305,18 @@
   
   	static unsigned char * WinBN2b64(BYTE * n, DWORD nLen, unsigned int &retLen);
   
  +	/**
  +	 * \brief Return a Symmetric Key implementation object.
  +	 *
  +	 * Call used by the library to obtain a bulk encryption
  +	 * object.
  +	 *
  +	 * @returns Pointer to the new SymmetricKey object
  +	 * @see XSECCryptoSymmetricKey
  +	 */
  +
  +	virtual XSECCryptoSymmetricKey	* keySymmetric(XSECCryptoSymmetricKey::SymmetricKeyType alg);
  +
   	//@}
   
   private: