OLD | NEW |
---|---|
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 # This file declares build flags for the SSL library configuration. | 5 # This file declares build flags for the SSL library configuration. |
6 # | 6 # |
7 # TODO(brettw) this should probably be moved to src/crypto or somewhere, and | 7 # TODO(brettw) this should probably be moved to src/crypto or somewhere, and |
8 # the global build dependency on it should be removed. | 8 # the global build dependency on it should be removed. |
9 # | 9 # |
10 # PLEASE TRY TO AVOID ADDING FLAGS TO THIS FILE in cases where grit isn't | 10 # PLEASE TRY TO AVOID ADDING FLAGS TO THIS FILE in cases where grit isn't |
11 # required. See the declare_args block of BUILDCONFIG.gn for advice on how | 11 # required. See the declare_args block of BUILDCONFIG.gn for advice on how |
12 # to set up feature flags. | 12 # to set up feature flags. |
13 | 13 |
14 declare_args() { | 14 declare_args() { |
15 # Use OpenSSL instead of NSS. This is used for all platforms but iOS. (See | 15 # Use OpenSSL instead of NSS. This is used for all platforms but iOS. (See |
16 # http://crbug.com/338886). | 16 # http://crbug.com/338886). |
17 use_openssl = !is_ios | 17 use_openssl = !is_ios |
18 } | 18 } |
19 | 19 |
20 # True when we're using OpenSSL for representing certificates. When targeting | 20 # True when we're using OpenSSL for representing certificates. When targeting |
21 # Android, the platform certificate library is used for certificate | 21 # Android, the platform certificate library is used for certificate |
22 # verification. On other targets, this flag also enables OpenSSL for certificate | 22 # verification. On other targets, this flag also enables OpenSSL for certificate |
23 # verification, but this configuration is unsupported. | 23 # verification, but this configuration is unsupported. PNaCl remoting plugin |
24 use_openssl_certs = is_android | 24 # doesn't need cert verification but is built with this flag to avoid dependency |
25 # on NSS. | |
davidben
2015/08/31 23:11:06
Let's change this to:
True when we're using OpenS
Sergey Ulanov
2015/09/01 00:06:46
Done.
| |
26 use_openssl_certs = is_android || is_nacl | |
25 | 27 |
26 # True if NSS is used for certificate verification. Note that this is | 28 # True if NSS is used for certificate verification. Note that this is |
27 # independent from use_openssl. It is possible to use OpenSSL for the crypto | 29 # independent from use_openssl. It is possible to use OpenSSL for the crypto |
28 # library, but NSS for the platform certificate library. | 30 # library, but NSS for the platform certificate library. |
29 use_nss_certs = is_linux | 31 use_nss_certs = is_linux |
OLD | NEW |