ssl_server_config.cc 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. // Copyright 2015 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/ssl/ssl_server_config.h"
  5. #include "net/socket/ssl_client_socket.h"
  6. #include "net/ssl/ssl_config.h"
  7. #include "third_party/boringssl/src/include/openssl/ssl.h"
  8. namespace net {
  9. SSLServerConfig::SSLServerConfig() = default;
  10. SSLServerConfig::SSLServerConfig(const SSLServerConfig& other) = default;
  11. SSLServerConfig::~SSLServerConfig() = default;
  12. SSLServerConfig::ECHKeysContainer::ECHKeysContainer() = default;
  13. SSLServerConfig::ECHKeysContainer::ECHKeysContainer(
  14. bssl::UniquePtr<SSL_ECH_KEYS> keys)
  15. : keys_(std::move(keys)) {}
  16. SSLServerConfig::ECHKeysContainer::~ECHKeysContainer() = default;
  17. SSLServerConfig::ECHKeysContainer::ECHKeysContainer(
  18. const SSLServerConfig::ECHKeysContainer& other)
  19. : keys_(bssl::UpRef(other.keys_)) {}
  20. SSLServerConfig::ECHKeysContainer& SSLServerConfig::ECHKeysContainer::operator=(
  21. const SSLServerConfig::ECHKeysContainer& other) {
  22. keys_ = bssl::UpRef(other.keys_);
  23. return *this;
  24. }
  25. void SSLServerConfig::ECHKeysContainer::reset(SSL_ECH_KEYS* keys) {
  26. keys_.reset(keys);
  27. }
  28. } // namespace net