You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@santuario.apache.org by mi...@apache.org on 2005/05/09 16:40:46 UTC
cvs commit: xml-security/c/src/enc/WinCAPI WinCAPICryptoKeyRSA.cpp WinCAPICryptoKeyRSA.hpp
milan 2005/05/09 07:40:46
Modified: c/src/enc/WinCAPI WinCAPICryptoKeyRSA.cpp
WinCAPICryptoKeyRSA.hpp
Log:
Changed scope of importKey() from private to public. It returns key now, instead of void.
Revision Changes Path
1.10 +5 -3 xml-security/c/src/enc/WinCAPI/WinCAPICryptoKeyRSA.cpp
Index: WinCAPICryptoKeyRSA.cpp
===================================================================
RCS file: /home/cvs/xml-security/c/src/enc/WinCAPI/WinCAPICryptoKeyRSA.cpp,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- WinCAPICryptoKeyRSA.cpp 3 Feb 2005 13:20:37 -0000 1.9
+++ WinCAPICryptoKeyRSA.cpp 9 May 2005 14:40:46 -0000 1.10
@@ -185,13 +185,13 @@
}
-void WinCAPICryptoKeyRSA::importKey(void) {
+HCRYPTKEY WinCAPICryptoKeyRSA::importKey(void) {
if (m_key != 0 ||
mp_exponent == NULL ||
mp_modulus == NULL)
- return;
+ return m_key;
// Create a RSA Public-Key blob
@@ -243,6 +243,8 @@
}
+ return m_key;
+
}
1.10 +11 -2 xml-security/c/src/enc/WinCAPI/WinCAPICryptoKeyRSA.hpp
Index: WinCAPICryptoKeyRSA.hpp
===================================================================
RCS file: /home/cvs/xml-security/c/src/enc/WinCAPI/WinCAPICryptoKeyRSA.hpp,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- WinCAPICryptoKeyRSA.hpp 3 Feb 2005 13:20:37 -0000 1.9
+++ WinCAPICryptoKeyRSA.hpp 9 May 2005 14:40:46 -0000 1.10
@@ -323,6 +323,16 @@
unsigned int getModulusBase64BigNums(char * b64, unsigned int len);
+ /**
+ * \brief Import key and return it
+ *
+ * Retrieves the RSA key as HCRYPTKEY
+ *
+ * @returns The key
+ */
+
+ HCRYPTKEY importKey(void);
+
//@}
private:
@@ -339,7 +349,6 @@
// Instruct to import from parameters
- void importKey(void);
void loadParamsFromKey(void);
};