security/certverifier/CTVerifyResult.cpp
author Sergei Chernov <sergei.cv@ndivi.com>
Tue, 29 Nov 2016 22:51:46 +0200
changeset 324936 adf193b5d6c9ce92b05a9370e8b4a5699bae537a
parent 324935 0d8eb74cce6f781c95d84c875b6f94dd6a29c305
permissions -rw-r--r--
Bug 1317951, part 2 - Certificate Transparency - basic support for disqualified logs. r=keeler MozReview-Commit-ID: 4y2JYFnO9Xm

/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#include "CTVerifyResult.h"

#include <stdint.h>

namespace mozilla { namespace ct {

VerifiedSCT::VerifiedSCT()
  : status(Status::None)
  , origin(Origin::Unknown)
  , logOperatorId(-1)
  , logDisqualificationTime(UINT64_MAX)
{
}

void
CTVerifyResult::Reset()
{
  verifiedScts.clear();
  decodingErrors = 0;
}

} } // namespace mozilla::ct