fix up ssl doc and error codes