Shirish Rai wrote:
>
> Hi, I am new to NSS and am trying to port an application from SSLeay to
> NSS. When I call SSL_ForceHandshake, it fails with abort at:
>
> Assertion failure: numPresent > 0 || numEnabled == 0, at ssl3con.c:425
> t@9 (l@4) signal ABRT (Abort) in __sigprocmask at 0xff0e9bf0
> 0xff0e9bf0: __sigprocmask+0x0008: jmp %o7 + 0x8
> Current function is PR_Assert
> 496 abort();
>
> Can someone give me any pointers. I could provide more information
> (I am not sure what would be be helpful information) as needed.
What version of NSS are you using?
Odds are very good that you didn't call any of the functions to set the
Cipher policy, e.g. NSS_SetExportPolicy or NSS_SetDomesticPolicy.
Please be sure you've read and understood the documentation on SSL in
http://www.mozilla.org/projects/security/pki/nss/ref/ssl/
especially chapter 1 "Overview of an SSL application"
http://www.mozilla.org/projects/security/pki/nss/ref/ssl/sslintro.html
Please post all followup questions to this newsgroup.
--
Nelson Bolyard Sun / Netscape Alliance