ben wrote:
> Hi there,
> I am building my app using nss-3.11.4 and nspr-4.6.4 on Windows XP.
> Basically I just want to operate on my cert database. When I built my
> program,
> I included the following header files:
> 
> #include "nss.h"
> #include "keythi.h"
> #include "certt.h"
> #include "certdb.h"
> #include "cert.h"
> #include "secitem.h"
> 
> void main() {
> 
>  CERTCertDBHandle certdbHandle;
> 
> ....
> }
> 
> After a compilation, I got an error:
> error C2079: 'certdbHandle' uses undefined struct 'NSSTrustDomainStr'
> 
> I couldn't find the definition from my nss and nspr include dirs. Can
> anyone tell me what header files and lib file I need to pass my build?
> Where I can get them?

Change
>  CERTCertDBHandle certdbHandle;
to
>  CERTCertDBHandle *certdbHandle;

That type is an opaque type whose definition is private to NSS.
You should use a pointer to it, rather than the struct itself.

Followup to mozilla.dev.tech.crypto

-- 
Nelson B
_______________________________________________
dev-tech-crypto mailing list
dev-tech-crypto@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-crypto

Reply via email to