comparison cinst/mozilla.c @ 224:689b94dd89a9

Wrote FindNSS to build against nss without pkg-config support (Windows).
author Sascha Wilde <wilde@intevation.de>
date Thu, 27 Mar 2014 17:00:01 +0100
parents d29997e09177
children d7788db3bdde
comparison
equal deleted inserted replaced
223:d29997e09177 224:689b94dd89a9
47 * Mozilla also accepts the ini file on Windows even if it is UTF-16 47 * Mozilla also accepts the ini file on Windows even if it is UTF-16
48 * encoded. 48 * encoded.
49 * */ 49 * */
50 50
51 #include <dirent.h> 51 #include <dirent.h>
52 #include <nss/cert.h> 52 #include <cert.h>
53 #include <nss/certt.h> 53 #include <certt.h>
54 #include <nss/nss.h> 54 #include <nss.h>
55 #include <nss/pk11pub.h> 55 #include <pk11pub.h>
56 #include <stdbool.h> 56 #include <stdbool.h>
57 #include <stdio.h> 57 #include <stdio.h>
58 #include <stdlib.h> 58 #include <stdlib.h>
59 #include <string.h> 59 #include <string.h>
60 #include <sys/types.h> 60 #include <sys/types.h>
262 nss_list_certs (char *confdir) 262 nss_list_certs (char *confdir)
263 { 263 {
264 CERTCertList *list; 264 CERTCertList *list;
265 CERTCertListNode *node; 265 CERTCertListNode *node;
266 char *name; 266 char *name;
267 267
268 if (NSS_Initialize(confdir, "", "", "secmod.db", NSS_INIT_READONLY) 268 if (NSS_Initialize(confdir, "", "", "secmod.db", NSS_INIT_READONLY)
269 == SECSuccess) 269 == SECSuccess)
270 { 270 {
271 list = PK11_ListCerts(PK11CertListAll, NULL); 271 list = PK11_ListCerts(PK11CertListAll, NULL);
272 for (node = CERT_LIST_HEAD(list); !CERT_LIST_END(node, list); 272 for (node = CERT_LIST_HEAD(list); !CERT_LIST_END(node, list);

http://wald.intevation.org/projects/trustbridge/