summaryrefslogtreecommitdiffstats
path: root/base/nss_util_internal.h
diff options
context:
space:
mode:
authordavidben@chromium.org <davidben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-29 02:07:45 +0000
committerdavidben@chromium.org <davidben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-29 02:07:45 +0000
commite3ee789b3264d7a36ec6f84d112d61acc16ac750 (patch)
tree288685b0760ccda1c2e8a2d7a9ffaa04ff48f7bb /base/nss_util_internal.h
parent6f55300bf1607d75b68b74b4d93e722b8d246bf5 (diff)
downloadchromium_src-e3ee789b3264d7a36ec6f84d112d61acc16ac750.zip
chromium_src-e3ee789b3264d7a36ec6f84d112d61acc16ac750.tar.gz
chromium_src-e3ee789b3264d7a36ec6f84d112d61acc16ac750.tar.bz2
Consistently increase the reference count when calling GetDefaultNSSKeySlot
We're actually freeing the key slot multiple times on Chrome OS. Also documented the requirement to PK11_FreeSlot in the function declaration. We probably want to add some sort of scoped_refptr-like thing, but for now this function is only used in one place anyway. R=cmasone BUG=47587 TEST=none Review URL: http://codereview.chromium.org/2873027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51091 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/nss_util_internal.h')
-rw-r--r--base/nss_util_internal.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/base/nss_util_internal.h b/base/nss_util_internal.h
index 47db045..b3ed33f 100644
--- a/base/nss_util_internal.h
+++ b/base/nss_util_internal.h
@@ -12,6 +12,8 @@
namespace base {
+// Returns a reference to the default NSS key slot. Caller must release
+// reference with PK11_FreeSlot.
PK11SlotInfo* GetDefaultNSSKeySlot();
} // namespace base