Ruchi Lohani wrote, On 2008-08-20 21:31: > Thanks Nelson. > And sorry about the subject of the mail. I wanted to ask about that also. > What are the equivalent APIs in NSS which probably can replace the BIO > I/O abstraction of OpenSSL ?
Years have elapsed since I last looked at the BIO functions, but I believe the NSPR PR_ functions (e.g. PR_Open, PR_Close, PR_NewTCPSocket, PR_Read, PR_Write, PR_Send, PR_Recv, etc.) are what you want. See them declared in http://mxr.mozilla.org/nspr/source/nsprpub/pr/include/prio.h See the documentation for the NSPR I/O functions in http://www.mozilla.org/projects/nspr/reference/html/priofnc.html See the documentation on related functions in NSS's SSL library at http://www.mozilla.org/projects/security/pki/nss/ref/ssl/sslfnc.html#1163855 See a simplified example of those functions in use in the .c files in http://mxr.mozilla.org/security/source/security/nss/cmd/SSLsample/ For an example of a client program that uses non-blocking IO with SSL see http://mxr.mozilla.org/security/source/security/nss/cmd/tstclnt/tstclnt.c _______________________________________________ dev-tech-crypto mailing list dev-tech-crypto@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-tech-crypto