aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/http/fetch/http_digest.cpp
diff options
context:
space:
mode:
authoragorodilov <agorodilov@yandex-team.ru>2022-02-10 16:47:09 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:09 +0300
commit7a4979e6211c3e78c7f9041d4a9e5d3405343c36 (patch)
tree9e9943579e5a14679af7cd2cda3c36d8c0b775d3 /library/cpp/http/fetch/http_digest.cpp
parent676340c42e269f3070f194d160f42a83a10568d4 (diff)
downloadydb-7a4979e6211c3e78c7f9041d4a9e5d3405343c36.tar.gz
Restoring authorship annotation for <agorodilov@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/http/fetch/http_digest.cpp')
-rw-r--r--library/cpp/http/fetch/http_digest.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/library/cpp/http/fetch/http_digest.cpp b/library/cpp/http/fetch/http_digest.cpp
index 1eaa02b7f2..b6d3320804 100644
--- a/library/cpp/http/fetch/http_digest.cpp
+++ b/library/cpp/http/fetch/http_digest.cpp
@@ -27,8 +27,8 @@ httpDigestHandler::~httpDigestHandler() {
void httpDigestHandler::clear() {
free(Nonce_);
free(HeaderInstruction_);
- User_ = Password_ = nullptr;
- Nonce_ = HeaderInstruction_ = nullptr;
+ User_ = Password_ = nullptr;
+ Nonce_ = HeaderInstruction_ = nullptr;
NonceCount_ = 0;
}
@@ -49,7 +49,7 @@ const char* httpDigestHandler::getHeaderInstruction() const {
/************************************************************/
void httpDigestHandler::generateCNonce(char* outCNonce) {
if (!*outCNonce)
- sprintf(outCNonce, "%ld", (long)time(nullptr));
+ sprintf(outCNonce, "%ld", (long)time(nullptr));
}
/************************************************************/
@@ -148,7 +148,7 @@ bool httpDigestHandler::processHeader(const THttpAuthHeader* header,
if (Nonce_) {
if (strcmp(Nonce_, header->nonce)) {
free(Nonce_);
- Nonce_ = nullptr;
+ Nonce_ = nullptr;
NonceCount_ = 0;
}
}
@@ -157,7 +157,7 @@ bool httpDigestHandler::processHeader(const THttpAuthHeader* header,
NonceCount_ = 0;
}
free(HeaderInstruction_);
- HeaderInstruction_ = nullptr;
+ HeaderInstruction_ = nullptr;
NonceCount_++;
char nonceCount[20];