summaryrefslogtreecommitdiff
path: root/chromium/net/cert/cert_database_ios.cc
blob: f96f22ae2be7b1364b42ae63361dec6f8d142624 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "net/cert/cert_database.h"

#include "base/logging.h"
#include "base/observer_list_threadsafe.h"
#include "net/base/net_errors.h"

namespace net {

CertDatabase::CertDatabase()
    : observer_list_(new ObserverListThreadSafe<Observer>) {}

CertDatabase::~CertDatabase() {}

int CertDatabase::CheckUserCert(X509Certificate* cert_obj) {
  // iOS doesn't handle user certificates.
  NOTREACHED();
  return OK;
}

int CertDatabase::AddUserCert(X509Certificate* cert_obj) {
  // iOS doesn't handle user certificates.
  NOTREACHED();
  return OK;
}

}  // namespace net