move ssl relate stuff into separated headers