diff options
author | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2017-06-20 14:49:10 +0200 |
---|---|---|
committer | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2017-06-21 22:16:55 +0200 |
commit | ed92db7a50be36fcfe6e9b316f4b7f7570060c0d (patch) | |
tree | 536770e46ec5124ab2ae7368d8441a0de6b09452 /xmlsecurity/source/gpg/XMLSecurityContext.cxx | |
parent | e4adff468c8f5e6fbacae0f553d7c154fb95a466 (diff) |
gpg4libre: Init xmlsec in one place before creating the gpg/x509 services
Change-Id: I0308d586344b5e52ad327f6650b62ac0eac7ecb9
Diffstat (limited to 'xmlsecurity/source/gpg/XMLSecurityContext.cxx')
-rw-r--r-- | xmlsecurity/source/gpg/XMLSecurityContext.cxx | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/xmlsecurity/source/gpg/XMLSecurityContext.cxx b/xmlsecurity/source/gpg/XMLSecurityContext.cxx index cfc391f56ec1..0919f4dbc2b6 100644 --- a/xmlsecurity/source/gpg/XMLSecurityContext.cxx +++ b/xmlsecurity/source/gpg/XMLSecurityContext.cxx @@ -22,32 +22,10 @@ using namespace css::xml::crypto; XMLSecurityContextGpg::XMLSecurityContextGpg() : m_nDefaultEnvIndex(-1) { - // TODO: same code in XMLSecurityContext_NssImpl, not a good idea - // prolly to initialize twice ... - //Init xmlsec library - if( xmlSecInit() < 0 ) { - throw RuntimeException() ; - } - - //Init xmlsec crypto engine library - if( xmlSecCryptoInit() < 0 ) { - xmlSecShutdown() ; - throw RuntimeException() ; - } - - //Enable external stream handlers - if( xmlEnableStreamInputCallbacks() < 0 ) { - xmlSecCryptoShutdown() ; - xmlSecShutdown() ; - throw RuntimeException() ; - } } XMLSecurityContextGpg::~XMLSecurityContextGpg() { - xmlDisableStreamInputCallbacks() ; - xmlSecCryptoShutdown() ; - xmlSecShutdown() ; } sal_Int32 SAL_CALL XMLSecurityContextGpg::addSecurityEnvironment( |