1 // Copyright 2016 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 "ocsp_verify_result.h" 6 7 namespace bssl { 8 9 OCSPVerifyResult::OCSPVerifyResult() = default; 10 OCSPVerifyResult::OCSPVerifyResult(const OCSPVerifyResult &) = default; 11 OCSPVerifyResult::~OCSPVerifyResult() = default; 12 operator ==(const OCSPVerifyResult & other) const13bool OCSPVerifyResult::operator==(const OCSPVerifyResult &other) const { 14 if (response_status != other.response_status) { 15 return false; 16 } 17 18 if (response_status == PROVIDED) { 19 // |revocation_status| is only defined when |response_status| is PROVIDED. 20 return revocation_status == other.revocation_status; 21 } 22 return true; 23 } 24 25 } // namespace bssl 26