On Dec 11, 2007 4:35 AM, D3||||!$ <[EMAIL PROTECTED]> wrote:
> Hi All!!!
>
> 1)    I'm trying to figure out the function of the PL_CreateOptState &
> PL_DestroyOptState functions mentioned in plgetopt.h: Looks like it
> parses the command line argument string, but I want to know what
> exactly it does... Also, is there any significance attached to the PL
> prefix that is attached to some of the NSPR functions(like PR comes
> from NSPR & SEC comes from the word "SECurity":relevent to NSS etc)

The PL_CreateOptState and PL_DestroyOptState functions are not
documented in the NSPR Reference
(http://www.mozilla.org/projects/nspr/reference/html/ and the wiki version
at http://developer.mozilla.org/en/docs/NSPR_API_Reference), so you need
to look at the comments in the plgetopt.h header file as documentation:
http://lxr.mozilla.org/nspr/source/nsprpub/lib/libc/include/plgetopt.h

The prefixes are significant.

PR_ is used for NSPR functions in the main NSPR library.
PL_ is used for NSPR functions in the PLDS and PLC libraries.
PL stands for "portable library".

SEC_ is one of the prefixes used for NSS functions.

> 2)    Also, when I compile the selfserv.c, I see that NSS_ENABLE_ECC
> isn't defined hence I cannot use ECC... So I would like to know how to
> enable ECC in my distro(I'm using NSS 3.11.4 & NSPR 4.6.4).

You need to set the environment variable NSS_ENABLE_ECC to 1
when you build NSS.

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

Reply via email to