Added support for renegotiation messages. Improved auth data handling.