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
3 # found in the LICENSE file.
5 # This file declares build flags for the SSL library configuration.
7 # TODO(brettw) this should probably be moved to src/crypto or somewhere, and
8 # the global build dependency on it should be removed.
11 # Use OpenSSL instead of NSS. This is used for Android, Mac, NaCl untrusted
12 # code, and Windows, and is experimental in other cases (see
13 # http://crbug.com/62803).
14 use_openssl = is_android || is_mac || is_nacl || is_win
17 # True when we're using OpenSSL for certificate verification and storage. We
18 # only do this when we're using OpenSSL on desktop Linux systems. For other
19 # systems (Mac/Win/Android) we use the system certificate features.
20 use_openssl_certs = use_openssl && (is_linux || is_android)
22 # Same meaning as use_openssl_certs but for NSS.
23 use_nss_certs = !use_openssl && is_linux