Bug 461085 - RFE: export function CERT_CompareCerts, r=julien.pierre
git-svn-id: svn://10.0.0.236/trunk@255120 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
1b267e0a4a
commit
7ea34e3614
@ -964,3 +964,9 @@ PK11_FindCertFromDERCertItem;
|
||||
;+ local:
|
||||
;+ *;
|
||||
;+};
|
||||
;+NSS_3.12.3 { # NSS 3.12.3 release
|
||||
;+ global:
|
||||
CERT_CompareCerts;
|
||||
;+ local:
|
||||
;+ *;
|
||||
;+};
|
||||
|
||||
@ -37,7 +37,7 @@
|
||||
/*
|
||||
* Support routines for SECItem data structure.
|
||||
*
|
||||
* $Id: secitem.c,v 1.14 2006-05-22 22:24:34 wtchang%redhat.com Exp $
|
||||
* $Id: secitem.c,v 1.15 2008-11-19 16:04:38 nelson%bolyard.com Exp $
|
||||
*/
|
||||
|
||||
#include "seccomon.h"
|
||||
@ -155,6 +155,8 @@ SECITEM_CompareItem(const SECItem *a, const SECItem *b)
|
||||
unsigned m;
|
||||
SECComparison rv;
|
||||
|
||||
if (a == b)
|
||||
return SECEqual;
|
||||
if (!a || !a->len || !a->data)
|
||||
return (!b || !b->len || !b->data) ? SECEqual : SECLessThan;
|
||||
if (!b || !b->len || !b->data)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user