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 if (response_status == PROVIDED) { 18 // |revocation_status| is only defined when |response_status| is PROVIDED. 19 return revocation_status == other.revocation_status; 20 } 21 return true; 22 } 23 24 } // namespace net 25