Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | netops: remove duplicate include | Fraser Tweedale | 2013-08-24 | 1 | -4/+0 |
| | | | | | | 9e9aee6 added an include <netinet/in.h> to fix the build on FreeBSD. Sometime since then the same header is included ifndef _WIN32, so remove the duplicate include. | ||||
* | Merge pull request #1298 from ben/user-at | Russell Belfer | 2013-02-04 | 1 | -5/+32 |
|\ | | | | | Handle "user@" prefix for credentials partially included in URLs | ||||
| * | Introduce git__substrdup | Ben Straub | 2013-02-01 | 1 | -5/+5 |
| | | |||||
| * | Enhance url parsing to include passwords | Ben Straub | 2013-01-31 | 1 | -10/+28 |
| | | |||||
| * | Stash username from url (but don't use it yet) | Ben Straub | 2013-01-30 | 1 | -2/+7 |
| | | |||||
| * | Skip "user@" when finding hostname in url | Ben Straub | 2013-01-30 | 1 | -2/+6 |
| | | |||||
* | | Deduplicate FormatMessage UTF-16 to UTF-8 conversion code | Sven Strickroth | 2013-02-02 | 1 | -19/+6 |
| | | | | | | | | Signed-off-by: Sven Strickroth <email@cs-ware.de> | ||||
* | | Improved error handling | Sven Strickroth | 2013-02-02 | 1 | -2/+10 |
| | | | | | | | | Signed-off-by: Sven Strickroth <email@cs-ware.de> | ||||
* | | Get utf8_size from WideCharToMultiByte instead of guessing it | Sven Strickroth | 2013-02-01 | 1 | -3/+3 |
| | | | | | | | | Signed-off-by: Sven Strickroth <email@cs-ware.de> | ||||
* | | Win32: Make sure error messages are consistently UTF-8 encoded | Sven Strickroth | 2013-02-01 | 1 | -6/+10 |
|/ | | | | | | | | W/o this a libgit2 error message could have a mixed encoding: e.g. a filename in UTF-8 combined with a native Windows error message encoded with the local code page. Signed-off-by: Sven Strickroth <email@cs-ware.de> | ||||
* | Fix 3 memory leaks | Philip Kelley | 2013-01-25 | 1 | -0/+1 |
| | |||||
* | Fix compilation on OpenBSD | Carlos Martín Nieto | 2013-01-20 | 1 | -0/+1 |
| | |||||
* | update copyrights | Edward Thomson | 2013-01-08 | 1 | -1/+1 |
| | |||||
* | netops: on SSL teardown only send shutdown alert | Michael Schubert | 2012-12-17 | 1 | -4/+1 |
| | | | | | | | | | | | | According to man 3 SSL_shutdown / TLS, "If a unidirectional shutdown is enough (the underlying connection shall be closed anyway), this first call to SSL_shutdown() is sufficient." Currently, an unidirectional shutdown is enough, since gitno_ssl_teardown is called by gitno_close only. Do so to avoid further errors (by misbehaving peers for example). Fixes #1129. | ||||
* | netops: properly handle GITNO_CONNECT_SSL_NO_CHECK_CERT | Michael Schubert | 2012-12-17 | 1 | -3/+3 |
| | | | | | Don't return an error just because GITNO_CONNECT_SSL_NO_CHECK_CERT is set. | ||||
* | fix build on FreeBSD | Fraser Tweedale | 2012-11-26 | 1 | -0/+4 |
| | | | | | | | 3f9eb1e introduced support for SSL certificates issued for IP addresses, making use of in_addr and in_addr6 structs. On FreeBSD these are defined in (a file included in) <netinet/in.h>, so include that file on FreeBSD and get the build working again. | ||||
* | Merge pull request #1048 from pwkelley/basic_auth | Philip Kelley | 2012-11-08 | 1 | -3/+6 |
|\ | | | | | Basic authentication for http and winhttp | ||||
| * | Fix connection leak in http subtransport | Philip Kelley | 2012-11-06 | 1 | -3/+6 |
| | | |||||
* | | Move inet_pton to posix platform-compatibility layer | Eduardo Bart | 2012-11-07 | 1 | -50/+2 |
| | | |||||
* | | Fix compilation for mingw32 and cygwin | Eduardo Bart | 2012-11-06 | 1 | -2/+50 |
|/ | | | | | inet_pton is available only in windows vista or later, fixed the issue by reimplementing it using WSAStringToAddress | ||||
* | Reorganize transport architecture (squashed 3) | Philip Kelley | 2012-11-01 | 1 | -80/+111 |
| | |||||
* | gitno_buffer: callback on each packet | Ben Straub | 2012-10-19 | 1 | -1/+2 |
| | | | | | The fetch code takes advantage of this to implement a progress callback every 100kb of transfer. | ||||
* | netops: be more careful with SSL errors | Michael Schubert | 2012-09-04 | 1 | -1/+37 |
| | | | | | | | | SSL_get_error() allows to receive a result code for various SSL operations. Depending on the return value (see man (3) SSL_get_error) there might be additional information in the OpenSSL error queue. Return the queued message if available, otherwise set an error message corresponding to the return code. | ||||
* | netops: continue writing on SSL_ERROR_WANT_WRITE | Michael Schubert | 2012-09-04 | 1 | -1/+1 |
| | |||||
* | ssl: make cert check ignore work for invalid certs, not just CNs | Carlos Martín Nieto | 2012-08-28 | 1 | -2/+6 |
| | | | | | | | | | | | Passing SSL_VERIFY_PEER makes OpenSSL shut down the connection if the certificate is invalid, without giving us a chance to ignore that error. Pass SSL_VERIFY_NONE and call SSL_get_verify_result if the user wanted us to check. When no CNs match, we used to jump to on_error which gave a bogus error as that's for OpenSSL errors. Jump to cert_fail so we tell the user that the error came from checking the certificate. | ||||
* | Merge remote-tracking branch 'nulltoken/topic/amd64-compat' into development | Vicent Marti | 2012-08-02 | 1 | -2/+7 |
|\ | | | | | | | | | | | | | Conflicts: src/netops.c src/netops.h src/oid.c | ||||
| * | portability: Improve x86/amd64 compatibility | nulltoken | 2012-07-24 | 1 | -1/+1 |
| | | |||||
* | | transport: rename encrypt to use_ssl | Carlos Martín Nieto | 2012-07-30 | 1 | -4/+4 |
| | | | | | | | | | | SSL isn't the only way that a transport can be encrypted. The new name will make it easier to merge the SSH support. | ||||
* | | ssl: use the callback instead of ifs to determine how to get data | Carlos Martín Nieto | 2012-07-30 | 1 | -40/+31 |
| | | | | | | | | | | Using the callbacks makes it clearer and reduces the amount of #ifdefs and ifs and we need in the code. | ||||
* | | remote: use the same code to control git and http | Carlos Martín Nieto | 2012-07-30 | 1 | -2/+15 |
|/ | | | | | | | | This allows us to add capabilitites to both at the same time, keeps them in sync and removes a lot of code. gitno_buffer now uses a callback to fill its buffer, allowing us to use the same interface for git and http (which uses callbacks). | ||||
* | amigaos: Cleanup | Vicent Marti | 2012-06-22 | 1 | -96/+4 |
| | |||||
* | Merge branch 'pull-req' of https://github.com/chris-y/libgit2 into amigaos | Vicent Marti | 2012-06-22 | 1 | -1/+95 |
|\ | |||||
| * | more getaddrinfo compatibility | Chris Young | 2012-06-20 | 1 | -4/+6 |
| | | |||||
| * | getaddrinfo() replacement functions | Chris Young | 2012-06-20 | 1 | -35/+86 |
| | | |||||
| * | More changes resulting from pull request | Chris Young | 2012-06-14 | 1 | -1/+1 |
| | | |||||
| * | Updates from comments on OS4 compatibility pull request ↵ | Chris Young | 2012-06-14 | 1 | -19/+26 |
| | | | | | | | | http://github.com/libgit2/libgit2/pull/766 | ||||
| * | Make this more generic and mergeable. | Chris Young | 2012-06-13 | 1 | -6/+6 |
| | | | | | | | | | | | | | | | | | | Needs AmigaOS.cmake now from CMake package at OS4Depot, or contents below: --8<-- SET(AMIGA 1) SET(CMAKE_SHARED_LIBRARY_C_FLAGS "-fPIC") SET(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-shared") --8<-- | ||||
| * | Fix gethostbyname compatibility | Chris Young | 2012-06-09 | 1 | -2/+10 |
| | | |||||
| * | horrid gethostbyname compatibility | Chris Young | 2012-06-07 | 1 | -4/+30 |
| | | |||||
* | | Fix compile errors when building on windows | Tim Clem | 2012-06-15 | 1 | -1/+0 |
|/ | | | | Errors were due to not including winsock2 early enough. | ||||
* | Fix compilation warning | nulltoken | 2012-06-07 | 1 | -1/+3 |
| | |||||
* | Don't include arpa/inet.h on Windows | Carlos Martín Nieto | 2012-06-06 | 1 | -1/+1 |
| | |||||
* | Merge pull request #697 from carlosmn/ssl | Vicent Martí | 2012-06-05 | 1 | -7/+313 |
|\ | | | | | Add HTTPS support | ||||
| * | ssl: allow skipping the server certificate check | Carlos Martín Nieto | 2012-05-26 | 1 | -1/+1 |
| | | | | | | | | | | Sometimes it's useful not to perform the check. Allow it to be configurable. | ||||
| * | ssl: look up the last CN the alternative names don't match | Carlos Martín Nieto | 2012-05-19 | 1 | -11/+54 |
| | | |||||
| * | ssl: add support for certificates issues to an IP address | Carlos Martín Nieto | 2012-05-19 | 1 | -7/+32 |
| | | |||||
| * | ssl: remove GnuTLS support | Carlos Martín Nieto | 2012-05-19 | 1 | -91/+12 |
| | | | | | | | | | | | | It's too much work for now to redo everything. Move the ssl context struct to transport.h | ||||
| * | ssl: match host names according to RFC 2818 (HTTP over TLS) | Carlos Martín Nieto | 2012-05-19 | 1 | -9/+17 |
| | | |||||
| * | ssl: check certificates against the system's trusted CAs | Carlos Martín Nieto | 2012-05-19 | 1 | -3/+105 |
| | | |||||
| * | ssl: teardown the connection on close | Carlos Martín Nieto | 2012-05-19 | 1 | -7/+31 |
| | | | | | | | | | | This should help us free some resources, though the libraries do keep some buffers allocated regardless. |