6c7143dd7ed64677e11d86044bc8f047545c1c92
[openwrt/openwrt.git] / package / libs / openssl / patches / 150-openssl.cnf-add-engines-conf.patch
1 --- a/apps/openssl.cnf
2 +++ b/apps/openssl.cnf
3 @@ -22,6 +22,53 @@ oid_section = new_oids
4 # (Alternatively, use a configuration file that has only
5 # X.509v3 extensions in its main [= default] section.)
6
7 +openssl_conf=openssl_conf
8 +
9 +[openssl_conf]
10 +engines=engines
11 +
12 +[engines]
13 +# To enable an engine, install the package, and uncomment it here:
14 +#devcrypto=devcrypto
15 +#afalg=afalg
16 +#padlock=padlock
17 +
18 +[afalg]
19 +default_algorithms = ALL
20 +
21 +[devcrypto]
22 +# Leave this alone and configure algorithms with CIPERS/DIGESTS below
23 +default_algorithms = ALL
24 +
25 +# Configuration commands:
26 +# Run 'openssl engine -t -c -vv -pre DUMP_INFO devcrypto' to see a
27 +# list of supported algorithms, along with their driver, whether they
28 +# are hw accelerated or not, and the engine's configuration commands.
29 +
30 +# USE_SOFTDRIVERS: specifies whether to use software (not accelerated)
31 +# drivers (0=use only accelerated drivers, 1=allow all drivers, 2=use
32 +# if acceleration can't be determined) [default=2]
33 +#USE_SOFTDRIVERS = 2
34 +
35 +# CIPHERS: either ALL, NONE, or a comma-separated list of ciphers to
36 +# enable [default=ALL]
37 +# It is recommended to disable the ECB ciphers; in most cases, it will
38 +# only be used for PRNG, in small blocks, where performance is poor,
39 +# and there may be problems with apps forking with open crypto
40 +# contexts, leading to failures. The CBC ciphers work well:
41 +#CIPHERS=DES-CBC, DES-EDE3-CBC, AES-128-CBC, AES-192-CBC, AES-256-CBC
42 +
43 +# DIGESTS: either ALL, NONE, or a comma-separated list of digests to
44 +# enable [default=NONE]
45 +# It is strongly recommended not to enable digests; their performance
46 +# is poor, and there are many cases in which they will not work,
47 +# especially when calling fork with open crypto contexts. Openssh,
48 +# for example, does this, and you may not be able to login.
49 +#DIGESTS = NONE
50 +
51 +[padlock]
52 +default_algorithms = ALL
53 +
54 [ new_oids ]
55
56 # We can add new OIDs in here for use by 'ca', 'req' and 'ts'.