Remove external use of SEC_TraversePermCerts(). Bug 130968.

This commit is contained in:
relyea%netscape.com 2003-03-05 01:04:33 +00:00
Родитель 3db543d86d
Коммит 62acf06bc9
2 изменённых файлов: 13 добавлений и 27 удалений

Просмотреть файл

@ -50,14 +50,6 @@
/* from certdb.h */
#define CERTDB_USER (1<<6)
#if 0
/* from certdb.h */
typedef SECStatus (* PermCertCallback)(CERTCertificate *cert, SECItem *k, void *pdata);
/* from certdb.h */
SECStatus SEC_TraversePermCerts
(CERTCertDBHandle *handle, PermCertCallback certfunc, void *udata);
#endif
/*
* S O B _ l i s t _ c e r t s
*
@ -114,6 +106,8 @@ char *JAR_JAR_list_certs (void)
{
SECStatus status = SECFailure;
CERTCertDBHandle *certdb;
CERTCertList *certs;
CERTCertListNode *node;
char *ugly_list;
@ -126,8 +120,17 @@ char *JAR_JAR_list_certs (void)
{
*ugly_list = 0;
status = SEC_TraversePermCerts
(certdb, jar_list_cert_callback, (void *) &ugly_list);
certs = PK11_ListCerts(PK11CertListUnique, NULL/* pwarg*/);
if (certs)
{
for (node = CERT_LIST_HEAD(certs); !CERT_LIST_END(node,certs);
node = CERT_LIST_NEXT(node))
{
jar_list_cert_callback(node->cert, NULL, (void *)&ugly_list);
}
CERT_DestroyCertList(certs);
status = SECSuccess;
}
}
JAR_close_database (certdb);

Просмотреть файл

@ -65,23 +65,6 @@ char *xp_HUGE_STRCPY (char *to, char ZHUGEP *from);
/* from certdb.h */
#define CERTDB_USER (1<<6)
#if 0
/* from certdb.h */
extern PRBool SEC_CertNicknameConflict
(char *nickname, CERTCertDBHandle *handle);
/* from certdb.h */
extern SECStatus SEC_AddTempNickname
(CERTCertDBHandle *handle, char *nickname, SECItem *certKey);
/* from certdb.h */
typedef SECStatus (* PermCertCallback)(CERTCertificate *cert, SECItem *k, void *pdata);
/* from certdb.h */
SECStatus SEC_TraversePermCerts
(CERTCertDBHandle *handle, PermCertCallback certfunc, void *udata);
#endif
#define SZ 512
static int jar_validate_pkcs7