ssl_send_data(): Consistently return -1 in case of errors