Rewrote the tls1_change_cipher_state_rewrite() function.

Adopted from a patch by Adam Langley.
AEAD SSL & TLS support.

Adopted from a patch by Adam Langley.
Wipe the key before freeing the memory.
Fixed build.