#include "remoting/base/constants.h"
#include "remoting/base/rsa_key_pair.h"
#include "remoting/protocol/ssl_hmac_channel_authenticator.h"
-#include "third_party/libjingle/source/talk/xmllite/xmlelement.h"
+#include "third_party/webrtc/libjingle/xmllite/xmlelement.h"
using crypto::P224EncryptedKeyExchange;
: certificate_sent_(false),
key_exchange_impl_(type, shared_secret),
state_(initial_state),
+ started_(false),
rejection_reason_(INVALID_CREDENTIALS) {
pending_messages_.push(key_exchange_impl_.GetMessage());
}
return state_;
}
+bool V2Authenticator::started() const {
+ return started_;
+}
+
Authenticator::RejectionReason V2Authenticator::rejection_reason() const {
DCHECK_EQ(state(), REJECTED);
return rejection_reason_;
P224EncryptedKeyExchange::Result result =
key_exchange_impl_.ProcessMessage(spake_message);
+ started_ = true;
switch (result) {
case P224EncryptedKeyExchange::kResultPending:
pending_messages_.push(key_exchange_impl_.GetMessage());
return;
}
}
-
state_ = MESSAGE_READY;
}