diff options
author | Dirkjan Bussink <d.bussink@gmail.com> | 2016-03-14 12:02:00 +0000 |
---|---|---|
committer | Dirkjan Bussink <d.bussink@gmail.com> | 2016-03-14 12:07:13 +0000 |
commit | fa72d6daf8624b9d2b11566625d0f588016c11db (patch) | |
tree | 19990b54ac08ead5180c77a9feab6d0899c2dff6 /include/git2 | |
parent | 1ddada422caf8e72ba97dca2568d2bf879fed5f2 (diff) | |
download | libgit2-fa72d6daf8624b9d2b11566625d0f588016c11db.tar.gz |
Setup better defaults for OpenSSL ciphers
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
Diffstat (limited to 'include/git2')
-rw-r--r-- | include/git2/common.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/git2/common.h b/include/git2/common.h index c1efee320..0629abb7f 100644 --- a/include/git2/common.h +++ b/include/git2/common.h @@ -149,6 +149,7 @@ typedef enum { GIT_OPT_SET_SSL_CERT_LOCATIONS, GIT_OPT_SET_USER_AGENT, GIT_OPT_ENABLE_STRICT_OBJECT_CREATION, + GIT_OPT_SET_SSL_CIPHERS, } git_libgit2_opt_t; /** @@ -260,6 +261,11 @@ typedef enum { * > example, when this is enabled, the parent(s) and tree inputs * > will be validated when creating a new commit. This defaults * > to disabled. + * * opts(GIT_OPT_SET_SSL_CIPHERS, const char *ciphers) + * + * > Set the SSL ciphers use for HTTPS connections. + * > + * > - `ciphers` is the list of ciphers that are eanbled. * * @param option Option key * @param ... value to set the option |