SSL impl work in progress, will squash
work in progress
Use right ssl accept function
Fix error returns
Fix bad endif
More junk
Undo what must be undone
Refactor to switch to SSL before negotiating protocol