Re: about libsectool.a Why I can't use SECU_ReadDERFromFile

2006-09-27 Thread Wan-Teh Chang
Alex wrote: Thanks for your help. The problem has been solved by adding extern "C" block. I'm very grateful. :-) Glad to hear that's indeed the problem. All the NSS headers should contain (the equivalent of) #ifdef __cplusplus extern "C" { #endif ... #ifdef __cplusplus } #en

Re: about libsectool.a Why I can't use SECU_ReadDERFromFile

2006-09-27 Thread Alex
> Alex wrote: >> I compiled nss on FreeBSD platform, and wrote a program . >> My program use function SECU_ReadDERFromFile, like this >> >> #include "secutil.h" >> .. >> rv = SECU_ReadDERFromFile(&certDER, inFile, PR_TRUE); >> .. >> >> >> This function is in libsectool.a >> >> #nm libsectoo

Re: about libsectool.a Why I can't use SECU_ReadDERFromFile

2006-09-26 Thread Wan-Teh Chang
Alex wrote: I compiled nss on FreeBSD platform, and wrote a program . My program use function SECU_ReadDERFromFile, like this #include "secutil.h" .. rv = SECU_ReadDERFromFile(&certDER, inFile, PR_TRUE); .. This function is in libsectool.a #nm libsectool.a |grep SECU_Read 1290 T S

about libsectool.a Why I can't use SECU_ReadDERFromFile

2006-09-26 Thread Alex
I compiled nss on FreeBSD platform, and wrote a program . My program use function SECU_ReadDERFromFile, like this #include "secutil.h" .. rv = SECU_ReadDERFromFile(&certDER, inFile, PR_TRUE); .. This function is in libsectool.a #nm libsectool.a |grep SECU_Read 1290 T SECU_ReadDERFro