summaryrefslogtreecommitdiff
path: root/xmlsecurity/source/xmlsec/mscrypt/xmlencryption_mscryptimpl.cxx
diff options
context:
space:
mode:
authorMichael Mi <mmi@openoffice.org>2004-07-23 02:12:27 +0000
committerMichael Mi <mmi@openoffice.org>2004-07-23 02:12:27 +0000
commitf7a7f2b0e923125dc63cec4c476e2d02537a22f3 (patch)
treea38250b715d59d9f86d86011bed843f578262f1b /xmlsecurity/source/xmlsec/mscrypt/xmlencryption_mscryptimpl.cxx
parent401fc9b2074fae68e9386b86e1a047e72ae29191 (diff)
Issue number:
Submitted by: Andrew Fan Reviewed by:
Diffstat (limited to 'xmlsecurity/source/xmlsec/mscrypt/xmlencryption_mscryptimpl.cxx')
-rw-r--r--xmlsecurity/source/xmlsec/mscrypt/xmlencryption_mscryptimpl.cxx19
1 files changed, 10 insertions, 9 deletions
diff --git a/xmlsecurity/source/xmlsec/mscrypt/xmlencryption_mscryptimpl.cxx b/xmlsecurity/source/xmlsec/mscrypt/xmlencryption_mscryptimpl.cxx
index 9a4f0a0e6cc7..0c3bedbbd942 100644
--- a/xmlsecurity/source/xmlsec/mscrypt/xmlencryption_mscryptimpl.cxx
+++ b/xmlsecurity/source/xmlsec/mscrypt/xmlencryption_mscryptimpl.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: xmlencryption_mscryptimpl.cxx,v $
*
- * $Revision: 1.1.1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: mt $ $Date: 2004-07-12 13:15:22 $
+ * last change: $Author: mmi $ $Date: 2004-07-23 03:12:26 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -104,6 +104,7 @@ using ::com::sun::star::xml::crypto::XSecurityEnvironment ;
using ::com::sun::star::xml::crypto::XXMLEncryption ;
using ::com::sun::star::xml::crypto::XXMLEncryptionTemplate ;
using ::com::sun::star::xml::crypto::XXMLSecurityContext ;
+using ::com::sun::star::xml::crypto::XMLEncryptionException ;
XMLEncryption_MSCryptImpl :: XMLEncryption_MSCryptImpl( const Reference< XMultiServiceFactory >& aFactory ) : m_xServiceManager( aFactory ) {
}
@@ -147,7 +148,7 @@ SAL_CALL XMLEncryption_MSCryptImpl :: encrypt(
//Create Encryption context
pEncCtx = xmlSecEncCtxCreate( pMngr ) ;
if( pEncCtx == NULL )
- throw RuntimeException() ;
+ throw XMLEncryptionException() ;
//Get the encryption template
@@ -181,7 +182,7 @@ SAL_CALL XMLEncryption_MSCryptImpl :: encrypt(
if( pCipherData == NULL ) {
xmlSecEncCtxDestroy( pEncCtx ) ;
- throw RuntimeException() ;
+ throw XMLEncryptionException() ;
}
xmlNodePtr pCipherValue = pCipherData->children;
@@ -192,14 +193,14 @@ SAL_CALL XMLEncryption_MSCryptImpl :: encrypt(
if( pCipherValue == NULL ) {
xmlSecEncCtxDestroy( pEncCtx ) ;
- throw RuntimeException() ;
+ throw XMLEncryptionException() ;
}
pContent = pCipherValue->children;
if( pContent == NULL ) {
xmlSecEncCtxDestroy( pEncCtx ) ;
- throw RuntimeException() ;
+ throw XMLEncryptionException() ;
}
xmlUnlinkNode(pContent);
@@ -223,7 +224,7 @@ SAL_CALL XMLEncryption_MSCryptImpl :: encrypt(
//Encrypt the template
if( xmlSecEncCtxXmlEncrypt( pEncCtx , pEncryptedData , pContent ) < 0 ) {
xmlSecEncCtxDestroy( pEncCtx ) ;
- throw RuntimeException() ;
+ throw XMLEncryptionException() ;
}
xmlSecEncCtxDestroy( pEncCtx ) ;
@@ -275,7 +276,7 @@ XMLEncryption_MSCryptImpl :: decrypt(
//Create Encryption context
pEncCtx = xmlSecEncCtxCreate( pMngr ) ;
if( pEncCtx == NULL )
- throw RuntimeException() ;
+ throw XMLEncryptionException() ;
//Get the encryption template
@@ -317,7 +318,7 @@ XMLEncryption_MSCryptImpl :: decrypt(
//Decrypt the template
if( xmlSecEncCtxDecrypt( pEncCtx , pEncryptedData ) < 0 || pEncCtx->result == NULL ) {
xmlSecEncCtxDestroy( pEncCtx ) ;
- throw RuntimeException() ;
+ throw XMLEncryptionException() ;
}
/*----------------------------------------
if( pEncCtx->resultReplaced != 0 ) {