On Dec 29, 2007 3:44 AM, D3||||!$ <[EMAIL PROTECTED]> wrote: > Hi All! > > I am looking for information regarding some SSL functions. I > encountered them in selfserv.c packaged with the Mozilla source but no > documentation is present for them on Mozilla site. I will be glad if > somebody could supply me with their behaviour, return values etc. The > functions are as follows: > 1) SSLChannelInfo:- what is the range of values/format accepted by the > protocolVersion and length fields of this structure?
I'm sorry that we haven't documented the (relatively) new function SSL_GetChannelInfo. The only documentation we have is the comments in the header file ssl.h and how it's used by the test programs selfserv, strsclnt, and tstclnt: http://lxr.mozilla.org/security/ident?i=SSL_GetChannelInfo To answer your question, you don't need to fill in anything in the SSLChannelInfo structure. All the fields of SSLChannelInfo are filled in by the SSL_GetChannelInfo function. On return, you need to check that SSL_GetChannelInfo returned SECSuccess and that the length field is <= sizeof(SSLChannelInfo) (the size of SSLChannelInfo when you compiled your code) before you can use the value of any other field. If the length field is strictly < sizeof(SSLChannelInfo), you can only use the field at offset <= that length. Our test programs avoid this complexity by requiring that the length field == sizeof(SSLChannelInfo). > 2) SSL_LocalCertificate:- what does it do? See the comments in the header file ssl.h: http://lxr.mozilla.org/security/ident?i=SSL_LocalCertificate You can find some descriptions of these two functions in the NSS 3.4 release notes (the release in which they're added): http://www.mozilla.org/projects/security/pki/nss/nss-3.4/nss-3.4-release-notes.html All the NSS functions are listed here, with links to either documentation of LXR source code query: http://www.mozilla.org/projects/security/pki/nss/ref/nssfunctions.html Wan-Teh _______________________________________________ dev-tech-crypto mailing list dev-tech-crypto@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-tech-crypto