failed to add a new API in cryptohi (in my local client)

2006-10-27 Thread Wei Shao
Hi,

In my local set up, I have added a new method in cryptohi.h and
implement it in secsign.c.
The compilation is okay. But I try to use it in certutil/certutil.c and
got an undefined symbol linking error for my added API. Same error if
after I make  clean first.

I noticed the public .h file under dist/ is updated with my API.  The
libnss3.so is also including the new secsign.o.  What is missing?

TIA,
Wei

___
dev-tech-crypto mailing list
dev-tech-crypto@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-crypto


Re: failed to add a new API in cryptohi (in my local client)

2006-10-27 Thread Julien Pierre

Wei Shao wrote:


In my local set up, I have added a new method in cryptohi.h and
implement it in secsign.c.
The compilation is okay. But I try to use it in certutil/certutil.c and
got an undefined symbol linking error for my added API. Same error if
after I make  clean first.

I noticed the public .h file under dist/ is updated with my API.  The
libnss3.so is also including the new secsign.o.  What is missing?


1) You need to update nss.def to list your symbol in there
2) Don't forget to contribute your NSS changes, as required by the MPL
___
dev-tech-crypto mailing list
dev-tech-crypto@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-crypto


Re: failed to add a new API in cryptohi (in my local client)

2006-10-27 Thread Wei Shao

Julien Pierre wrote:
 Wei Shao wrote:

  In my local set up, I have added a new method in cryptohi.h and
  implement it in secsign.c.
  The compilation is okay. But I try to use it in certutil/certutil.c and
  got an undefined symbol linking error for my added API. Same error if
  after I make  clean first.
 
  I noticed the public .h file under dist/ is updated with my API.  The
  libnss3.so is also including the new secsign.o.  What is missing?

 1) You need to update nss.def to list your symbol in there

thanks! that's it.

 2) Don't forget to contribute your NSS changes, as required by the MPL

Sure, I will after I make it all working.

___
dev-tech-crypto mailing list
dev-tech-crypto@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-crypto