Update error codes following tls_process_key_exchange() refactor