summaryrefslogtreecommitdiff
path: root/include/git2/transport.h
Commit message (Collapse)AuthorAgeFilesLines
* cred: add a free function wrappercmn/smart-callbacksCarlos Martín Nieto2015-08-191-0/+11
|
* git_cert: child types use proper base typeEdward Thomson2015-07-101-21/+14
|
* cred: Declare GIT_CREDTYPE_SSH_MEMORY unconditionallyMichał Górny2015-05-271-2/+0
| | | | | | | Declare GIT_CREDTYPE_SSH_MEMORY to have consistent API independently of whether libgit2 was built with or without in-memory key passing support. Or rather, to have it at all since build-time definitions are not stored in headers.
* Return an error when ssh memory credentials are not supported.David Calavera2015-05-271-2/+0
| | | | To not modify the external api.
* Add support to read ssh keys from memory.David Calavera2015-05-271-0/+28
|
* remote: move the transport ctor to the callbacksCarlos Martín Nieto2015-05-131-0/+3
| | | | | | | Instead of having it set in a different place from every other callback, put it the main structure. This removes some state from the remote and makes it behave more like clone, where the constructors are passed via the options.
* Fix doc comment formattingBen Chatelain2015-02-101-1/+1
|
* ssh: expose both hashesCarlos Martín Nieto2014-09-161-9/+16
| | | | | The user may have the data hashed as MD5 or SHA-1, so we should provide both types for consumption.
* ssh: provide our own types for host key lengthsCarlos Martín Nieto2014-09-161-2/+12
| | | | | Instead of using the libssh2 defines, provide our own, which eases usage as we do not need to check whether libgit2 was built with libssh2 or not.
* net: use only structs to pass information about certCarlos Martín Nieto2014-09-161-0/+24
| | | | | | Instead of spreading the data in function arguments, some of which aren't used for ssh and having a struct only for ssh, use a struct for both, using a common parent to pass to the callback.
* transport: move the cert type enum to types.hCarlos Martín Nieto2014-09-161-16/+0
| | | | This should make the mingw compiler happy.
* http: send the DER-encoded cert to the callbackCarlos Martín Nieto2014-09-161-3/+2
| | | | | | Instead of the parsed data, we can ask OpenSSL to give us the DER-encoded version of the certificate, which the user can then parse and validate.
* Provide a callback for certificate validationCarlos Martín Nieto2014-09-161-0/+37
| | | | | | | | | If the certificate validation fails (or always in the case of ssh), let the user decide whether to allow the connection. The data structure passed to the user is the native certificate information from the underlying implementation, namely OpenSSL or WinHTTP.
* Merge remote-tracking branch 'upstream/master' into cmn/ssh-retryCarlos Martín Nieto2014-08-271-327/+12
|\
| * Custom transport: minor cleanupsEdward Thomson2014-08-141-333/+0
| | | | | | | | | | | | | | | | | | | | | | | | * Move the transport registration mechanisms into a new header under 'sys/' because this is advanced stuff. * Remove the 'priority' argument from the registration as it adds unnecessary complexity. (Since transports cannot decline to operate, only the highest priority transport is ever executed.) Users who require per-priority transports can implement that in their custom transport themselves. * Simplify registration further by taking a scheme (eg "http") instead of a prefix (eg "http://").
| * ssh: provide a factory function for setting ssh pathscmn/ssh-factory-for-pathsCarlos Martín Nieto2014-07-071-0/+16
| | | | | | | | | | | | | | | | | | git allows you to set which paths to use for the git server programs when connecting over ssh; and we want to provide something similar. We do this by providing a factory function which can be set as the remote's transport callback which will set the given paths upon creation.
| * Fix git_cred_ssh_interactive_callback signatureJacques Germishuys2014-07-031-1/+1
| |
| * ssh: always declare the libssh2 typesCarlos Martín Nieto2014-06-301-0/+545
| | | | | | | | | | This lets a user decide they do want to use keyboard-interactive after they've compiled.
| * ssh: create the right callback signature based on build optionsCarlos Martín Nieto2014-06-301-543/+0
| | | | | | | | | | | | | | | | | | | | | | When linking against libssh2, create the transport.h such that it contains its definition for custom crypto and keyboard-interactive callbacks. If we don't link against libssh2, create an equivalent signature which has void pointers instead of pointers to libssh2 structures. This would be one way to fix #2438.
* | cred: add convenience function to get the usernameCarlos Martín Nieto2014-06-261-0/+8
| | | | | | | | | | Since each cred defines the username on their own, introduce git_cred__username to retrieve the username pointer from them.
* | cred: introduce username-only credCarlos Martín Nieto2014-06-261-0/+14
|/ | | | | This exists as ssh needs to know about the username to use before it can query for the supported authentication methods.
* Fix remaining init_options inconsistenciesRussell Belfer2014-05-021-5/+4
| | | | | There were a couple of "init_opts()" functions a few more cases of structure initialization that I somehow missed.
* Don't redefine the same callback types, their signatures may changeJacques Germishuys2014-04-211-1/+1
|
* Replace void * with proper callback typesJacques Germishuys2014-04-181-2/+2
|
* Make git_cred_ssh_custom_new() naming more consistentJacques Germishuys2014-04-181-5/+5
|
* Introduce git_cred_ssh_interactive_new()Jacques Germishuys2014-04-181-0/+30
| | | | This allows for keyboard-interactive based SSH authentication
* Seamless support for NTLM/Kerberos auth on WindowsPhilip Kelley2014-03-181-1/+2
|
* Added function-based initializers for every options struct.Matthew Bowen2014-03-051-0/+13
| | | | The basic structure of each function is courtesy of arrbee.
* transport: document ssh-agent authenticationAlessandro Ghedini2013-11-201-0/+12
|
* Formatting fix for cred_acquire_cbCarlos Martín Nieto2013-11-201-6/+6
|
* Introduce git_cred_default for NTLM/SPNEGO authEdward Thomson2013-11-181-3/+17
|
* remote: make _ls return the list directlyCarlos Martín Nieto2013-11-111-6/+6
| | | | | | | | | | | The callback-based method of listing remote references dates back to the beginning of the network code's lifetime, when we didn't know any better. We need to keep the list around for update_tips() after disconnect() so let's make use of this to simply give the user a pointer to the array so they can write straightforward code instead of having to go through a callback.
* Merge pull request #1904 from libgit2/cmn/ssh-namingVicent Martí2013-10-281-16/+26
|\ | | | | Rename the ssh credentials
| * Rename the ssh credentialsCarlos Martín Nieto2013-10-231-16/+26
| | | | | | | | | | | | The names from libssh2 are somewhat obtuse for us. We can simplify the usual key/passphrase credential's name, as well as make clearer what the custom signature function is.
* | transport: let the progress output return an errorCarlos Martín Nieto2013-10-231-1/+1
|/ | | | | There are any number of issues that can come up in the progress callback, and we should let the user cancel at that point as well.
* Allowed credential types should be a bitfieldEdward Thomson2013-10-211-10/+15
|
* Add git_transport_register, git_transport_unregisterPhilip Kelley2013-10-011-0/+34
|
* Include username in each credential typeCarlos Martín Nieto2013-08-121-1/+15
| | | | | | | | Key-based authentication also needs an username, so include it in each one. Also stop assuming a default username of "git" in the ssh transport which has no business making such a decision.
* Clean up some documentationCarlos Martín Nieto2013-07-231-1/+1
| | | | clang's docparser highlighted these.
* Make SSH APIs present even without SSH supportRussell Belfer2013-07-091-39/+48
| | | | | | The SSH APIs will just return an error code and state that the library was built without SSH support if they are called in that case.
* Removed ifdefBrad Morgan2013-05-101-2/+0
|
* Moved libssh2 sign callback into typedefBrad Morgan2013-05-091-1/+3
|
* Added ifdefBrad Morgan2013-05-071-0/+2
|
* Fixed compilation issues when libssh2 is missingBrad Morgan2013-05-071-0/+6
|
* Added SSH public key authenticationBrad Morgan2013-05-071-1/+31
|
* Push working over sshBrad Morgan2013-05-041-0/+25
|
* Added ssh transport fileBrad Morgan2013-05-031-0/+11
|
* transport: don't try to export nonexistent functionCarlos Martín Nieto2013-03-301-10/+0
|
* No bitfields in public headers b/c packing is compiler-specificPhilip Kelley2013-02-071-1/+1
|
* Add user-from-url param to auth callbackBen Straub2013-01-311-0/+3
|