summaryrefslogtreecommitdiff
path: root/src/settings.c
Commit message (Collapse)AuthorAgeFilesLines
* settings: don't hard-code HTTPS capabilityCarlos Martín Nieto2016-12-171-0/+2
| | | | | | | | | | This partially reverts bdec62dce1c17465b7330100ea2f71e63fc411dd which activates the transport code-paths which allow you to use a custom TLS implementation without having to have one at build-time. However the capabilities describe how libgit2 was built, not what it could potentially support, bring back the ifdefs so we only say we support HTTPS if libgit2 was itself built with a TLS implementation.
* Merge pull request #3850 from wildart/custom-tlsEdward Thomson2016-08-041-2/+0
|\ | | | | Enable https transport for custom TLS streams
| * remove conditions that prevent use of custom TLS streamwildart2016-07-061-2/+0
| |
* | Add get user agent functionality.Andrius Bentkus2016-07-051-0/+8
|/
* Avoid old-style function definitionsPatrick Steinhardt2016-06-211-3/+3
| | | | | | Avoid declaring old-style functions without any parameters. Functions not accepting any parameters should be declared with `void fn(void)`. See ISO C89 $3.5.4.3.
* Start error string with lower case characterDirkjan Bussink2016-03-141-2/+2
|
* Setup better defaults for OpenSSL ciphersDirkjan Bussink2016-03-141-0/+22
| | | | | | | | | This ensures that when using OpenSSL a safe default set of ciphers is selected. This is done so that the client communicates securely and we don't accidentally enable unsafe ciphers like RC4, or even worse some old export ciphers. Implements the first part of https://github.com/libgit2/libgit2/issues/3682
* git_libgit2_opts: introduce `GIT_OPT_ENABLE_STRICT_OBJECT_CREATION`Edward Thomson2016-02-281-0/+6
|
* git_libgit2_opts: validate keyEdward Thomson2016-02-221-0/+3
|
* settings: allow users to set PROGRAMDATAEdward Thomson2015-11-161-3/+12
| | | | | | Allow users to set the `git_libgit2_opts` search path for the `GIT_CONFIG_LEVEL_PROGRAMDATA`. Convert `GIT_CONFIG_LEVEL_PROGRAMDATA` to `GIT_SYSDIR_PROGRAMDATA` for setting the configuration.
* Merge pull request #3170 from CmdrMoozy/nsec_fixCarlos Martín Nieto2015-11-121-0/+3
|\ | | | | git_index_entry__init_from_stat: set nsec fields in entry stats
| * settings: expose GIT_USE_NSEC flag in git_libgit2_featuresAxel Rasmussen2015-09-181-0/+3
| |
* | settings: add a setter for a custom user-agentCarlos Martín Nieto2015-11-121-0/+16
|/
* Rename GIT_SSL to GIT_OPENSSLCarlos Martín Nieto2015-04-231-3/+3
| | | | | This is what it's meant all along, but now we actually have multiple implementations, it's clearer to use the name of the library.
* Add a SecureTransport TLS channelCarlos Martín Nieto2015-04-231-1/+1
| | | | | As an alternative to OpenSSL when we're on OS X. This one can actually take advantage of stacking the streams.
* Add support for setting the SSL CA locationWilliam Swanson2014-09-301-0/+22
| | | | | This allows users to specify self-signed certificates, or to provide their own certificate stores on limited platforms such as mobile phones.
* settings: use git_buf for returning stringsCarlos Martín Nieto2014-03-241-6/+14
| | | | | This survived the last round of culling, as the signature is only in the comments.
* features: Rename `_HAS_` to `_FEATURE_`vmg/featuresVicent Marti2014-03-031-3/+3
|
* caps: Rename to features to avoid confusionVicent Marti2014-03-031-4/+4
|
* Merge pull request #2138 from ethomson/sysdirVicent Marti2014-02-251-11/+11
|\ | | | | Move system directory cache out of utils
| * Move system directory cache out of utilsEdward Thomson2014-02-241-11/+11
| |
* | Remove now-duplicated stdarg.h includeEdward Thomson2014-02-241-2/+0
|/
* Move libgit2 settings out of utilEdward Thomson2014-01-141-0/+134