Pass socket and ssl parameters in a consistent way.

Signed-off-by: Thiago Farina <tfarina@chromium.org>