diff options
Diffstat (limited to 'libbb/Config.src')
-rw-r--r-- | libbb/Config.src | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/libbb/Config.src b/libbb/Config.src index b980f19a9..eff327c2a 100644 --- a/libbb/Config.src +++ b/libbb/Config.src | |||
@@ -37,6 +37,14 @@ config PASSWORD_MINLEN | |||
37 | help | 37 | help |
38 | Minimum allowable password length. | 38 | Minimum allowable password length. |
39 | 39 | ||
40 | config FEATURE_USE_CNG_API | ||
41 | bool "Use the Windows CNG API for checksums (Windows 10+ only)" | ||
42 | default n | ||
43 | depends on PLATFORM_MINGW32 | ||
44 | help | ||
45 | Use the in-built Windows CNG API for checksums. | ||
46 | This reduces code size, but is only supported on Windows 10+. | ||
47 | |||
40 | config MD5_SMALL | 48 | config MD5_SMALL |
41 | int "MD5: Trade bytes for speed (0:fast, 3:slow)" | 49 | int "MD5: Trade bytes for speed (0:fast, 3:slow)" |
42 | default 1 # all "fast or small" options default to small | 50 | default 1 # all "fast or small" options default to small |
@@ -67,6 +75,7 @@ config SHA1_SMALL | |||
67 | config SHA1_HWACCEL | 75 | config SHA1_HWACCEL |
68 | bool "SHA1: Use hardware accelerated instructions if possible" | 76 | bool "SHA1: Use hardware accelerated instructions if possible" |
69 | default y | 77 | default y |
78 | depends on !FEATURE_USE_CNG_API | ||
70 | help | 79 | help |
71 | On x86, this adds ~590 bytes of code. Throughput | 80 | On x86, this adds ~590 bytes of code. Throughput |
72 | is about twice as fast as fully-unrolled generic code. | 81 | is about twice as fast as fully-unrolled generic code. |
@@ -74,6 +83,7 @@ config SHA1_HWACCEL | |||
74 | config SHA256_HWACCEL | 83 | config SHA256_HWACCEL |
75 | bool "SHA256: Use hardware accelerated instructions if possible" | 84 | bool "SHA256: Use hardware accelerated instructions if possible" |
76 | default y | 85 | default y |
86 | depends on !FEATURE_USE_CNG_API | ||
77 | help | 87 | help |
78 | On x86, this adds ~1k bytes of code. | 88 | On x86, this adds ~1k bytes of code. |
79 | 89 | ||
@@ -182,12 +192,22 @@ config FEATURE_EDITING_VI | |||
182 | config FEATURE_EDITING_HISTORY | 192 | config FEATURE_EDITING_HISTORY |
183 | int "History size" | 193 | int "History size" |
184 | # Don't allow way too big values here, code uses fixed "char *history[N]" struct member | 194 | # Don't allow way too big values here, code uses fixed "char *history[N]" struct member |
185 | range 0 9999 | 195 | range 0 2000 |
186 | default 255 | 196 | default 200 |
187 | depends on FEATURE_EDITING | 197 | depends on FEATURE_EDITING |
188 | help | 198 | help |
189 | Specify command history size (0 - disable). | 199 | Specify command history size (0 - disable). |
190 | 200 | ||
201 | config FEATURE_EDITING_HISTORY_DEFAULT | ||
202 | int "Default history size" | ||
203 | range 0 FEATURE_EDITING_HISTORY | ||
204 | default 255 | ||
205 | depends on PLATFORM_MINGW32 && FEATURE_EDITING && FEATURE_SH_HISTFILESIZE | ||
206 | help | ||
207 | Specify default command history size. This may be smaller than | ||
208 | FEATURE_EDITING_HISTORY, in which case the user may increase | ||
209 | the history size by setting HISTFILESIZE. | ||
210 | |||
191 | config FEATURE_EDITING_SAVEHISTORY | 211 | config FEATURE_EDITING_SAVEHISTORY |
192 | bool "History saving" | 212 | bool "History saving" |
193 | default y | 213 | default y |