Biswatosh wrote:
Hi,

Does there exist any utility to print a SECItem in any radix format and the inverse utilty? That is, given any array of hexas.,octets or of any radix, I should
be able to convert it to a SECItem?
There should be some utilities for this under nss/cmd/lib, but not the general functions you are describing.

I searched but could not find and so wrote down this utilty (to do an enhancement on certutil). Now, I am in a fix, as to where should I place the functions? These functions directly deal with mpi routines and SECItems and so I need suggestions as where should I place them so that the basic NSS function structure model is not violated. I see that if I place them in any file, for ex. in rsa.c(I know I should not place it here), it gets compiled and then suppose I make a wrapper function on it in softtoken/pkcs11c.c, then also it gets compiled but when I call this wrapper function from certutul.c, it gives "symbol not defined" error. I can solve it prob. using some changes in this or that .def file/s but as said before, it may be against the basic model. That is why, I need your opinion/s
on this.
Put your secitem util in nss/cmd/lib. NSS has no printing functions, and anything as low as softoken would not be available to applications anyway. You should put your mpi functions in the mpi directory in freebl. Those are only useful for mpi debugging (applications never have direct access to MPI).

bob


Thanks
Biswatosh


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

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

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

Reply via email to