forked from nss-dev/nss
-
Notifications
You must be signed in to change notification settings - Fork 0
SECItem
Endi S. Dewata edited this page Jul 22, 2022
·
2 revisions
typedef enum { siBuffer = 0, siClearDataBuffer = 1, siCipherDataBuffer = 2, siDERCertBuffer = 3, siEncodedCertBuffer = 4, siDERNameBuffer = 5, siEncodedNameBuffer = 6, siAsciiNameString = 7, siAsciiString = 8, siDEROID = 9, siUnsignedInteger = 10, siUTCTime = 11, siGeneralizedTime = 12, siVisibleString = 13, siUTF8String = 14, siBMPString = 15 } SECItemType; typedef struct SECItemStr SECItem; struct SECItemStr { SECItemType type; unsigned char *data; unsigned int len; };
SECItem *item = SECITEM_AllocItem(NULL, NULL, len); SECITEM_FreeItem(item, PR_TRUE);