Please sign in to comment.
crypto: remove unused access of tlsext_hostname
The return value of loadSession is ultimately ignored, so don't fill it in. This inches Node closer to 1.1.0 compatibility and is less code. Also remove a comment which appears to have long since become invalid. It dates to 048e0e7 when the SNI value was actually extracted from the session. This also fixes a segfault should d2i_SSL_SESSION fail to parse the input and return NULL. Add a test for this case based on test-tls-session-cache.js. PR-URL: #10882 Reviewed-By: Ben Noordhuis <firstname.lastname@example.org> Reviewed-By: Fedor Indutny <email@example.com> Reviewed-By: James M Snell <firstname.lastname@example.org> Reviewed-By: Sam Roberts <email@example.com>
- Loading branch information...
Showing with 32 additions and 23 deletions.