Better HN
topnewbestaskshowjobs
Log inSign up

marcan42

2 karma · joined Feb 9, 2014 (12y ago) · 2 submissions

Submissions

comment 12y ago · link · parent

An integration test wouldn't catch this one. You need a specific malicious SSL server (presents a valid certificate, uses ephemeral mode, does not present a valid signature proving that it owns the private key). The code does validate certificates, otherwise this would've been caught ages ago by anyone trying an invalid cert.

Unit tests would've caught this, though.

comment 12y ago · link · parent

It's clearly still a work in progress and incomplete. Wait, I'm sure it'll be extended.