xref: /OK3568_Linux_fs/buildroot/package/openssl/Config.in (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1config BR2_PACKAGE_OPENSSL_FORCE_LIBOPENSSL
2	bool
3
4config BR2_PACKAGE_OPENSSL
5	bool "openssl support"
6	select BR2_PACKAGE_HAS_OPENSSL
7	help
8	  Select the desired ssl library provider.
9
10if BR2_PACKAGE_OPENSSL
11
12choice
13	prompt "ssl library"
14	help
15	  Select OpenSSL or LibreSSL.
16
17config BR2_PACKAGE_LIBOPENSSL
18	bool "openssl"
19	select BR2_PACKAGE_ZLIB
20	help
21	  A collaborative effort to develop a robust, commercial-grade,
22	  fully featured, and Open Source toolkit implementing the
23	  Secure Sockets Layer (SSL v2/v3) and Transport Security
24	  (TLS v1) as well as a full-strength general-purpose
25	  cryptography library.
26
27	  http://www.openssl.org/
28
29	  Note: Some helper scripts need perl.
30
31source "package/libopenssl/Config.in"
32
33config BR2_PACKAGE_LIBRESSL
34	bool "libressl"
35	depends on !BR2_PACKAGE_OPENSSL_FORCE_LIBOPENSSL
36	depends on BR2_TOOLCHAIN_HAS_THREADS
37	# uClibc on noMMU doesn't provide __register_atfork()
38	depends on !(BR2_TOOLCHAIN_USES_UCLIBC && !BR2_USE_MMU)
39	help
40	  LibreSSL is a version of the TLS/crypto stack forked from
41	  OpenSSL in 2014, with goals of modernizing the codebase,
42	  improving security, and applying best practice development
43	  processes.
44
45	  http://www.libressl.org/
46
47source "package/libressl/Config.in"
48
49# openssl from br2-external trees, if any
50source "$BR2_BASE_DIR/.br2-external.in.openssl"
51
52endchoice
53
54config BR2_PACKAGE_HAS_OPENSSL
55	bool
56
57config BR2_PACKAGE_PROVIDES_OPENSSL
58	string
59	default "libopenssl" if BR2_PACKAGE_LIBOPENSSL
60	default "libressl" if BR2_PACKAGE_LIBRESSL
61
62endif
63
64# ensure libopenssl is used for the host variant
65config BR2_PACKAGE_PROVIDES_HOST_OPENSSL
66	string
67	default "host-libopenssl"
68