diff options
author | Wan-Teh Chang <wtc@google.com> | 2014-03-28 12:54:20 -0700 |
---|---|---|
committer | Wan-Teh Chang <wtc@google.com> | 2014-03-28 12:54:20 -0700 |
commit | 3d972fa9013f03f9e78483db8b4fcaa2d809a057 (patch) | |
tree | c277150426220dff03b2d17ad42b303c2192f5eb | |
parent | 08aaa0d8d2b1441007b9aafaadc4ae6f2e5946de (diff) | |
download | nss-hg-3d972fa9013f03f9e78483db8b4fcaa2d809a057.tar.gz |
Bug 519255: Document that PK11_ReadAttribute doesn't modify the 'type'
field of the SECItem 'result' argument. r=eroman,sleevi.
-rw-r--r-- | lib/pk11wrap/pk11obj.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/pk11wrap/pk11obj.c b/lib/pk11wrap/pk11obj.c index 2db8e8e88..84268ab49 100644 --- a/lib/pk11wrap/pk11obj.c +++ b/lib/pk11wrap/pk11obj.c @@ -81,6 +81,9 @@ PK11_DestroyTokenObject(PK11SlotInfo *slot,CK_OBJECT_HANDLE object) { * Read in a single attribute into a SECItem. Allocate space for it with * PORT_Alloc unless an arena is supplied. In the latter case use the arena * to allocate the space. + * + * PK11_ReadAttribute sets the 'data' and 'len' fields of the SECItem but + * does not modify its 'type' field. */ SECStatus PK11_ReadAttribute(PK11SlotInfo *slot, CK_OBJECT_HANDLE id, |