base TLSv1.2 code for server handshake