Re: Obsolete CERT functions using SECCertUsage

2010-01-18 Thread Nelson B Bolyard
On 2010/01/18 09:52 , Kai Chan wrote: > In cert.h > (http://mxr.mozilla.org/security/source/security/nss/lib/certdb/cert.h#714), > there is a line about obsolete functions: > **OLD OBSOLETE FUNCTIONS with enum SECCertUsage - DO NOT USE FOR NEW CODE You may assume that particular commment was

Re: Accessing Certificate "Issuer" and "Issued to" in mozilla using JS

2010-01-18 Thread Subrata Mazumdar
Hi Sunny, Here are some Cert-related utility code (in Javascript) using XPCOM API for Mozilla PSM/NSS: Note: Look into the IDL files for details about the attributes, methods, and related comments. // IDL file for nsIX509CertDB : http://mxr.mozilla.org/mozilla-central/source/security/manage

Obsolete CERT functions using SECCertUsage

2010-01-18 Thread Kai Chan
Hi, In cert.h ( http://mxr.mozilla.org/security/source/security/nss/lib/certdb/cert.h#714), there is a line about obsolete functions: **OLD OBSOLETE FUNCTIONS with enum SECCertUsage - DO NOT USE FOR NEW CODE And also in certvfy.c ( http://mxr.mozilla.org/security/source/security/nss/lib/certh

How to get CKA_ID from a symmetric key?

2010-01-18 Thread Shailendra N Jain
Hi, I am looking at https://bugzilla.mozilla.org/show_bug.cgi?id=490238 and working on writing these sample programs. For one of the sample programs (#3) listed, I need to find a way to get CKA_ID from a symmetric key and display. Is there any public API to get the CKA_ID from a symmetr

How to get CKA_ID from a symmetric key

2010-01-18 Thread Shailendra N Jain
Hi, I am looking at https://bugzilla.mozilla.org/show_bug.cgi?id=490238 and working on writing these sample programs. For one of the sample programs (#3) listed, I need to find a way to get CKA_ID from a symmetric key and display. Is there any public API to get the CKA_ID from a symmetr

Re: ECC DER Signing

2010-01-18 Thread Kai Chan
When building with both "NSS_ENABLE_ECC" and "NSS_ECC_MORE_THAN_SUITE_B" enabled, the build fails because of lib/freebl/ecl/ecl-curve.h: #ifdef NSS_ECC_MORE_THAN_SUITE_B #error This source file is for Basic ECC only . #endif I guess this is the extent softoken can be used? Then the ce