Fix AUTH state transition
Merge pull request #49 from leonyu/fix_tls_auth

Fix AUTH state transition
Merge remote-tracking branch 'upstream/master'
Fix AUTH issues