From 3d972fa9013f03f9e78483db8b4fcaa2d809a057 Mon Sep 17 00:00:00 2001 From: Wan-Teh Chang Date: Fri, 28 Mar 2014 12:54:20 -0700 Subject: Bug 519255: Document that PK11_ReadAttribute doesn't modify the 'type' field of the SECItem 'result' argument. r=eroman,sleevi. --- lib/pk11wrap/pk11obj.c | 3 +++ 1 file changed, 3 insertions(+) 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, -- cgit v1.2.1