I am trying to upgrade a normal HTTP connection to SSL in the Apache mod_nss module.
When the mod_nss module is initialized, it calls:
- PR_Init
- PK11_ConfigurePKCS11
- NSS_Initialize
- NSS_SetDomesticPolicy.
Also, I can see that 8 ciphers are being set with SSL_CipherPrefSet()
Here are the NSS-related function calls that I make:
- PR_CreateIOLayerStub return a file descriptor "ssl"
- SSLImportFD(NULL, ssl)
- SSL_HandshakeCallback(...)
- SSL_ResetHandshake(ssl, PR_TRUE)
and then a loop invoking SSL_ForceHandshake(ssl) that terminates when the SSL handshake callback function has been called.
However, when I call SSL_ForceHandshake, I get this assertion failure:
Assertion failure: numPresent > 0 || numEnabled == 0
in ssl3_config_match_init() in ssl3con.c
Does anybody have an idea why this assertion fails?
Regards,
Peter
_______________________________________________ dev-tech-crypto mailing list dev-tech-crypto@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-tech-crypto