diff options
Diffstat (limited to 'crypto/nss_util_internal.h')
-rw-r--r-- | crypto/nss_util_internal.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/crypto/nss_util_internal.h b/crypto/nss_util_internal.h index ea40fdb..e90e4c4 100644 --- a/crypto/nss_util_internal.h +++ b/crypto/nss_util_internal.h @@ -25,6 +25,18 @@ PK11SlotInfo* GetPublicNSSKeySlot(); // PK11_FreeSlot. PK11SlotInfo* GetPrivateNSSKeySlot(); +// A helper class that acquires the SECMOD list read lock while the +// AutoSECMODListReadLock is in scope. +class AutoSECMODListReadLock { + public: + AutoSECMODListReadLock(); + ~AutoSECMODListReadLock(); + + private: + SECMODListLock* lock_; + DISALLOW_COPY_AND_ASSIGN(AutoSECMODListReadLock); +}; + } // namespace crypto #endif // CRYPTO_NSS_UTIL_INTERNAL_H_ |