summaryrefslogtreecommitdiff
path: root/xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.hxx
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2006-07-13 07:10:10 +0000
committerOliver Bolte <obo@openoffice.org>2006-07-13 07:10:10 +0000
commit7696b843581f4c02b161345f42888fb1a06af756 (patch)
tree781e433bf5d4db3b0dc9fa661a90291f9af52578 /xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.hxx
parent999545d3882be31f74c09f857cde755253313e97 (diff)
INTEGRATION: CWS jl34 (1.6.54); FILE MERGED
2006/05/12 13:22:22 jl 1.6.54.2: #i39382# security environment now obtains the slots by itself, in order to recognize if a smardcard has been added while the signature dialog is already open 2006/05/05 14:29:32 jl 1.6.54.1: #i39382# support for multiple slots in one security environment
Diffstat (limited to 'xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.hxx')
-rw-r--r--xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.hxx25
1 files changed, 17 insertions, 8 deletions
diff --git a/xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.hxx b/xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.hxx
index 784b35a95..7e97bf697 100644
--- a/xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.hxx
+++ b/xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.hxx
@@ -4,9 +4,9 @@
*
* $RCSfile: securityenvironment_nssimpl.hxx,v $
*
- * $Revision: 1.6 $
+ * $Revision: 1.7 $
*
- * last change: $Author: rt $ $Date: 2005-09-09 17:33:57 $
+ * last change: $Author: obo $ $Date: 2006-07-13 08:10:10 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -92,6 +92,8 @@
#include <com/sun/star/lang/XUnoTunnel.hpp>
#endif
+#include "osl/mutex.hxx"
+
#include "pk11func.h"
#include "keyhi.h"
#include "certdb.h"
@@ -105,9 +107,13 @@ class SecurityEnvironment_NssImpl : public ::cppu::WeakImplHelper4<
::com::sun::star::lang::XServiceInfo ,
::com::sun::star::lang::XUnoTunnel >
{
- private :
+private :
+
+ std::list< PK11SlotInfo* > m_Slots;
+ typedef std::list< PK11SlotInfo* >::const_iterator CIT_SLOTS;
+
+ osl::Mutex m_mutex;
- PK11SlotInfo* m_pSlot ;
CERTCertDBHandle* m_pHandler ;
std::list< PK11SymKey* > m_tSymKeyList ;
std::list< SECKEYPublicKey* > m_tPubKeyList ;
@@ -158,10 +164,6 @@ class SecurityEnvironment_NssImpl : public ::cppu::WeakImplHelper4<
static SecurityEnvironment_NssImpl* getImplementation( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > xObj ) ;
//Native mehtods
- virtual PK11SlotInfo* getCryptoSlot() throw( ::com::sun::star::uno::Exception , ::com::sun::star::uno::RuntimeException ) ;
-
- virtual void setCryptoSlot( PK11SlotInfo* aSlot ) throw( ::com::sun::star::uno::Exception , ::com::sun::star::uno::RuntimeException ) ;
-
virtual CERTCertDBHandle* getCertDb() throw( ::com::sun::star::uno::Exception , ::com::sun::star::uno::RuntimeException ) ;
virtual void setCertDb( CERTCertDBHandle* aCertDb ) throw( ::com::sun::star::uno::Exception , ::com::sun::star::uno::RuntimeException ) ;
@@ -200,6 +202,13 @@ class SecurityEnvironment_NssImpl : public ::cppu::WeakImplHelper4<
//Native mehtods
virtual xmlSecKeysMngrPtr createKeysManager() throw( ::com::sun::star::uno::Exception , ::com::sun::star::uno::RuntimeException ) ;
virtual void destroyKeysManager(xmlSecKeysMngrPtr pKeysMngr) throw( ::com::sun::star::uno::Exception , ::com::sun::star::uno::RuntimeException ) ;
+
+private:
+ void updateSlots();
+
+ virtual void addCryptoSlot( PK11SlotInfo* aSlot ) throw( ::com::sun::star::uno::Exception , ::com::sun::star::uno::RuntimeException ) ;
+
+
} ;
#endif // _XSECURITYENVIRONMENT_NSSIMPL_HXX_