[FOLD] ssl implementation
[FOLD] tidying