Philippe Camacho wrote:
Hi,
I'm trying to use the function
extern CERTCertificate *CERT_DecodeDERCertificate(SECItem derSignedCert,
PRBool copyDER, char *nickname) defined in cert.h
and when I'm trying to compile I obtain the further message:
undefined reference to `CERT_DecodeDERCertificate'
collect2: ld returned 1 exit status
I did include the good directory where cert.h is because I use other
functions of this file and it compiles well.
This is because CERT_DecodeDERCertificate is
intentionally not exported from the nss3 shared
library. Note that this is a point of contention
within the NSS team and is under discussion.
See http://bugzilla.mozilla.org/show_bug.cgi?id=244329#c2
and http://bugzilla.mozilla.org/show_bug.cgi?id=243245#c3
for some of the discussions.
If you really need to use it, you can use the
symbol __CERT_DecodeDERCertificate. It is exported
and intended for internal use (hence the __ prefix)
by other NSS shared libraries (ssl3, smime3).
Moreover the cert.h file is
a bit strange because the definition of CERT_DecodeDERCertificate
appears twice...
That's a (benign) bug. The duplicate declaration of
CERT_DecodeDERCertificate has been removed from cert.h
on the tip of the NSS source tree. (See
http://bugzilla.mozilla.org/show_bug.cgi?id=249284.)
Wan-Teh
_______________________________________________
mozilla-crypto mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-crypto