more boolean comparison fixes
Merge pull request #44 from zoide/ssl-fixes

more boolean comparison fixes