ocsp_verify_result.cc 749 B

123456789101112131415161718192021222324
  1. // Copyright 2016 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/cert/ocsp_verify_result.h"
  5. namespace net {
  6. OCSPVerifyResult::OCSPVerifyResult() = default;
  7. OCSPVerifyResult::OCSPVerifyResult(const OCSPVerifyResult&) = default;
  8. OCSPVerifyResult::~OCSPVerifyResult() = default;
  9. bool OCSPVerifyResult::operator==(const OCSPVerifyResult& other) const {
  10. if (response_status != other.response_status)
  11. return false;
  12. if (response_status == PROVIDED) {
  13. // |revocation_status| is only defined when |response_status| is PROVIDED.
  14. return revocation_status == other.revocation_status;
  15. }
  16. return true;
  17. }
  18. } // namespace net