nsNSSHelper.h (1050B)
1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */ 3 /* This Source Code Form is subject to the terms of the Mozilla Public 4 * License, v. 2.0. If a copy of the MPL was not distributed with this 5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 6 7 #ifndef nsNSSHelper_h 8 #define nsNSSHelper_h 9 10 #include "nsIInterfaceRequestor.h" 11 #include "nsIInterfaceRequestorUtils.h" 12 #include "pk11func.h" 13 14 // Implementation of an nsIInterfaceRequestor for use as context for NSS calls. 15 class PipUIContext : public nsIInterfaceRequestor { 16 public: 17 NS_DECL_THREADSAFE_ISUPPORTS 18 NS_DECL_NSIINTERFACEREQUESTOR 19 20 PipUIContext(); 21 22 protected: 23 virtual ~PipUIContext(); 24 }; 25 26 // Function to get the implementor for a certain set of NSS specific dialogs. 27 nsresult getNSSDialogs(void** _result, REFNSIID aIID, const char* contract); 28 29 // A function that sets the password on an unitialized slot. 30 nsresult setPassword(PK11SlotInfo* slot, nsIInterfaceRequestor* ctx); 31 32 #endif // nsNSSHelper_h