|
1 | 1 | libgit2 - the Git linkable library
|
2 | 2 | ==================================
|
| 3 | +[](https://www.bestpractices.dev/projects/9609) |
3 | 4 |
|
4 | 5 | | Build Status | |
|
5 | 6 | | ------------ | - |
|
@@ -265,29 +266,39 @@ Build options:
|
265 | 266 |
|
266 | 267 | Dependency options:
|
267 | 268 |
|
268 |
| -* `USE_SSH=type`: enables SSH support; `type` can be set to `libssh2` |
269 |
| - or `exec` (which will execute an external OpenSSH command) |
270 |
| -* `USE_HTTPS=type`: enables HTTPS support; `type` can be set to |
271 |
| - `OpenSSL`, `mbedTLS`, `SecureTransport`, `Schannel`, or `WinHTTP`; |
272 |
| - the default is `SecureTransport` on macOS, `WinHTTP` on Windows, and |
273 |
| - whichever of `OpenSSL` or `mbedTLS` is detected on other platforms. |
| 269 | +* `USE_SSH=type`: enables SSH support and optionally selects the provider; |
| 270 | + `type` can be set to `libssh2` or `exec` (which will execute an external |
| 271 | + OpenSSH command). `ON` implies `libssh2`; defaults to `OFF`. |
| 272 | +* `USE_HTTPS=type`: enables HTTPS support and optionally selects the |
| 273 | + provider; `type` can be set to `OpenSSL`, `OpenSSL-Dynamic` (to not |
| 274 | + link against OpenSSL, but load it dynamically), `SecureTransport`, |
| 275 | + `Schannel` or `WinHTTP`; the default is `SecureTransport` on macOS, |
| 276 | + `WinHTTP` on Windows, and whichever of `OpenSSL` or `mbedTLS` is |
| 277 | + detected on other platforms. Defaults to `ON`. |
274 | 278 | * `USE_SHA1=type`: selects the SHA1 mechanism to use; `type` can be set
|
275 |
| - to `CollisionDetection` (default), or `HTTPS` to use the HTTPS |
276 |
| - driver specified above as the hashing provider. |
| 279 | + to `CollisionDetection`, `HTTPS` to use the system or HTTPS provider, |
| 280 | + or one of `OpenSSL`, `OpenSSL-Dynamic`, `OpenSSL-FIPS` (to use FIPS |
| 281 | + compliant routines in OpenSSL), `CommonCrypto`, or `Schannel`. |
| 282 | + Defaults to `CollisionDetection`. This option is retained for |
| 283 | + backward compatibility and should not be changed. |
277 | 284 | * `USE_SHA256=type`: selects the SHA256 mechanism to use; `type` can be
|
278 |
| - set to `HTTPS` (default) to use the HTTPS driver specified above as |
279 |
| - the hashing provider, or `Builtin`. |
| 285 | + set to `HTTPS` to use the system or HTTPS driver, `builtin`, or one of |
| 286 | + `OpenSSL`, `OpenSSL-Dynamic`, `OpenSSL-FIPS` (to use FIPS compliant |
| 287 | + routines in OpenSSL), `CommonCrypto`, or `Schannel`. Defaults to `HTTPS`. |
280 | 288 | * `USE_GSSAPI=<on/off>`: enables GSSAPI for SPNEGO authentication on
|
281 |
| - Unix |
| 289 | + Unix. Defaults to `OFF`. |
282 | 290 | * `USE_HTTP_PARSER=type`: selects the HTTP Parser; either `http-parser`
|
283 | 291 | for an external
|
284 | 292 | [`http-parser`](https://github.com/nodejs/http-parser) dependency,
|
285 | 293 | `llhttp` for an external [`llhttp`](https://github.com/nodejs/llhttp)
|
286 |
| - dependency, or `builtin` |
| 294 | + dependency, or `builtin`. Defaults to `builtin`. |
287 | 295 | * `REGEX_BACKEND=type`: selects the regular expression backend to use;
|
288 |
| - one of `regcomp_l`, `pcre2`, `pcre`, `regcomp`, or `builtin`. |
289 |
| -* `USE_BUNDLED_ZLIB=type`: selects the zlib dependency to use; one of |
290 |
| - `bundled` or `Chromium`. |
| 296 | + one of `regcomp_l`, `pcre2`, `pcre`, `regcomp`, or `builtin`. The |
| 297 | + default is to use `regcomp_l` where available, PCRE if found, otherwise, |
| 298 | + to use the builtin. |
| 299 | +* `USE_BUNDLED_ZLIB=type`: selects the bundled zlib; either `ON` or `OFF`. |
| 300 | + Defaults to using the system zlib if available, falling back to the |
| 301 | + bundled zlib. |
291 | 302 |
|
292 | 303 | Locating Dependencies
|
293 | 304 | ---------------------
|
|
0 commit comments