summaryrefslogtreecommitdiff
path: root/chromium/net/ntlm/ntlm_constants.cc
blob: f8fc6dab5e94c14da8ee801120e58a8dcb0d2dc8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "net/ntlm/ntlm_constants.h"

namespace net {

namespace ntlm {

AvPair::AvPair() = default;

AvPair::AvPair(TargetInfoAvId avid, uint16_t avlen)
    : avid(avid), avlen(avlen) {}

AvPair::AvPair(TargetInfoAvId avid, std::vector<uint8_t> buffer)
    : buffer(std::move(buffer)), avid(avid) {
  avlen = this->buffer.size();
}

AvPair::AvPair(const AvPair& other) = default;

AvPair::AvPair(AvPair&& other) = default;

AvPair::~AvPair() = default;

AvPair& AvPair::operator=(const AvPair& other) = default;

AvPair& AvPair::operator=(AvPair&& other) = default;

}  // namespace ntlm
}  // namespace net