blob: 3cd4a78a34186b910638d0e33bad78eb2ca47e5a (
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
31
32
33
|
// 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_verifier.h"
#include "build/build_config.h"
#include "net/cert/cert_verify_proc.h"
#if defined(OS_NACL)
#include "base/logging.h"
#else
#include "net/cert/multi_threaded_cert_verifier.h"
#endif
namespace net {
bool CertVerifier::SupportsOCSPStapling() {
return false;
}
scoped_ptr<CertVerifier> CertVerifier::CreateDefault() {
#if defined(OS_NACL)
NOTIMPLEMENTED();
return scoped_ptr<CertVerifier>();
#else
return make_scoped_ptr(
new MultiThreadedCertVerifier(CertVerifyProc::CreateDefault()))
.Pass();
#endif
}
} // namespace net
|