• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2018 The Chromium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #include "net/ntlm/ntlm_constants.h"
6 
7 namespace net::ntlm {
8 
9 AvPair::AvPair() = default;
10 
AvPair(TargetInfoAvId avid,uint16_t avlen)11 AvPair::AvPair(TargetInfoAvId avid, uint16_t avlen)
12     : avid(avid), avlen(avlen) {}
13 
AvPair(TargetInfoAvId avid,std::vector<uint8_t> buffer)14 AvPair::AvPair(TargetInfoAvId avid, std::vector<uint8_t> buffer)
15     : buffer(std::move(buffer)), avid(avid) {
16   avlen = this->buffer.size();
17 }
18 
19 AvPair::AvPair(const AvPair& other) = default;
20 
21 AvPair::AvPair(AvPair&& other) = default;
22 
23 AvPair::~AvPair() = default;
24 
25 AvPair& AvPair::operator=(const AvPair& other) = default;
26 
27 AvPair& AvPair::operator=(AvPair&& other) = default;
28 
29 }  // namespace net::ntlm
30