Hello.

On Mon, Sep 28, Wan-Teh Chang wrote:
On Mon, Sep 28, 2009 at 3:26 AM, Konstantin Andreev wrote:
I need to share some potion of code between softoken and nss libraries (to be 
exact, I need to parse GOST-specific der-encoded data).

What is the best way to manage this ? I suppose I need to compile and 
statically link some source file into the both libraries. But which place in 
the source tree is best to store such shared source ? Please, direct me.

A good place for the shared code is mozilla/security/nss/lib/util. It is a 
shared library (libnssutil3.so/nssutil3.dll) used by both the softoken and nss 
libraries.

I considered adding this particular code in the "util" library, but it is too 
specific, and does not look well in a library interface.

May I just put the source in a mozilla/security/nss/lib/util, and only link it 
statically in the softoken and nss libraries ?
--
Konstantin Andreev, software engineer.
Swemel JSC
--
dev-tech-crypto mailing list
dev-tech-crypto@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-crypto

Reply via email to