ntlm_constants.cc 748 B

1234567891011121314151617181920212223242526272829
  1. // Copyright 2018 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #include "net/ntlm/ntlm_constants.h"
  5. namespace net::ntlm {
  6. AvPair::AvPair() = default;
  7. AvPair::AvPair(TargetInfoAvId avid, uint16_t avlen)
  8. : avid(avid), avlen(avlen) {}
  9. AvPair::AvPair(TargetInfoAvId avid, std::vector<uint8_t> buffer)
  10. : buffer(std::move(buffer)), avid(avid) {
  11. avlen = this->buffer.size();
  12. }
  13. AvPair::AvPair(const AvPair& other) = default;
  14. AvPair::AvPair(AvPair&& other) = default;
  15. AvPair::~AvPair() = default;
  16. AvPair& AvPair::operator=(const AvPair& other) = default;
  17. AvPair& AvPair::operator=(AvPair&& other) = default;
  18. } // namespace net::ntlm