SSL: fixes for some SSL vulnerabilities; implicit connect/accept