Renamed GetMessage into GetNextMessage.
Windows defines GetMessage as GetMessageW.
This makes linking fail if p224_spake included after windows headers.
NOPRESUBMIT=true
Review URL: https://codereview.chromium.org/889663003
Cr-Commit-Position: refs/heads/master@{#313782}
diff --git a/crypto/p224_spake.cc b/crypto/p224_spake.cc
index 343f3fc..a6dec40 100644
--- a/crypto/p224_spake.cc
+++ b/crypto/p224_spake.cc
@@ -131,7 +131,7 @@
next_message_ = Xstar.ToString();
}
-const std::string& P224EncryptedKeyExchange::GetMessage() {
+const std::string& P224EncryptedKeyExchange::GetNextMessage() {
if (state_ == kStateInitial) {
state_ = kStateRecvDH;
return next_message_;
@@ -140,7 +140,7 @@
return next_message_;
}
- LOG(FATAL) << "P224EncryptedKeyExchange::GetMessage called in"
+ LOG(FATAL) << "P224EncryptedKeyExchange::GetNextMessage called in"
" bad state " << state_;
next_message_ = "";
return next_message_;