Index: remoting/protocol/me2me_host_authenticator_factory.cc |
=================================================================== |
--- remoting/protocol/me2me_host_authenticator_factory.cc (revision 139575) |
+++ remoting/protocol/me2me_host_authenticator_factory.cc (working copy) |
@@ -9,6 +9,7 @@ |
#include "crypto/rsa_private_key.h" |
#include "remoting/protocol/channel_authenticator.h" |
#include "remoting/protocol/negotiating_authenticator.h" |
+#include "remoting/protocol/v1_authenticator.h" |
#include "third_party/libjingle/source/talk/xmllite/xmlelement.h" |
namespace remoting { |
@@ -89,6 +90,16 @@ |
return scoped_ptr<Authenticator>(new RejectingAuthenticator()); |
} |
+ if (shared_secret_hash_.hash_function == AuthenticationMethod::NONE && |
+ shared_secret_hash_.value.empty()) { |
+ // PIN isn't set. Enable V1 authentication. |
+ if (!NegotiatingAuthenticator::IsNegotiableMessage(first_message)) { |
+ return scoped_ptr<Authenticator>( |
+ new V1HostAuthenticator(local_cert_, *local_private_key_, |
+ "", remote_jid)); |
+ } |
+ } |
+ |
return NegotiatingAuthenticator::CreateForHost( |
local_cert_, *local_private_key_, shared_secret_hash_.value, |
shared_secret_hash_.hash_function); |