fixed problem with ssl_method const assignment discard