summaryrefslogtreecommitdiffstats
path: root/libavformat/libssh.c
Commit message (Collapse)AuthorAgeFilesLines
* all: fix typos found by codespellTimo Rothenpieler2025-08-031-1/+1
|
* avformat/libssh: fix credential variables typoMarth642024-11-261-3/+3
| | | | Signed-off-by: Marth64 <[email protected]>
* avutil/common: Don't auto-include mem.hAndreas Rheinhardt2024-03-311-0/+1
| | | | | | | | | | | There are lots of files that don't need it: The number of object files that actually need it went down from 2011 to 884 here. Keep it for external users in order to not cause breakages. Also improve the other headers a bit while just at it. Signed-off-by: Andreas Rheinhardt <[email protected]>
* Revert "all: Don't set AVClass.item_name to its default value"Anton Khirnov2024-01-201-0/+1
| | | | | | | Some callers assume that item_name is always set, so this may be considered an API break. This reverts commit 0c6203c97a99f69dbaa6e4011d48c331e1111f5e.
* all: Don't set AVClass.item_name to its default valueAndreas Rheinhardt2023-12-221-1/+0
| | | | | | | | Unnecessary since acf63d5350adeae551d412db699f8ca03f7e76b9; also avoids relocations. Reviewed-by: Anton Khirnov <[email protected]> Signed-off-by: Andreas Rheinhardt <[email protected]>
* avformat/libssh: avoid deprecated functionsLeo Izen2023-09-181-7/+4
| | | | | | | | Avoid using the deprecated functions ssh_try_publickey_from_file among others in favor of symbols introduced in libssh 0.6.0 (Jan 2014) and update configure to require this version. Signed-off-by: Leo Izen <[email protected]>
* lavf/libssh: translate a read of 0 to EOFJan Ekström2018-05-281-1/+1
| | | | | | | | | | | | Yet another case of forgotten 0 =! EOF translation. While the documentation for this specific synchronous read function does not mention it, the documentation for `sftp_async_read` documents it, as well as looking at the implementation of this function leads one to find `if (handle->eof) { return 0; }`. Reported by stnutt on IRC.
* avformat/libssh: check the user provided a password before trying to use itJames Almer2017-06-171-1/+1
| | | | | | | Fixes ticket #6413 Reviewed-by: Michael Niedermayer <[email protected]> Signed-off-by: James Almer <[email protected]>
* Merge commit '2758cdedfb7ac61f8b5e4861f99218b6fd43491d'Derek Buitenhuis2016-02-291-1/+1
| | | | | | | | | | | This commit also disables the async fate test, because it used internal APIs in a non-kosher way, which no longer exists. * commit '2758cdedfb7ac61f8b5e4861f99218b6fd43491d': lavf: reorganize URLProtocols Merged-by: Derek Buitenhuis <[email protected]>
* lavf/libssh: implement move and delete callbacksMariusz Szczepańczyk2015-06-241-0/+82
| | | | | Reviewed-by: Lukasz Marek <lukasz.m.luki2 at gmail.com> Signed-off-by: Michael Niedermayer <[email protected]>
* lavf/libssh: read empty path from url as /Mariusz Szczepańczyk2015-06-241-0/+3
| | | | | Reviewed-by: Lukasz Marek <lukasz.m.luki2 at gmail.com> Signed-off-by: Michael Niedermayer <[email protected]>
* lavf/libssh: implement directory listing callbacksLukasz Marek2015-06-241-6/+105
| | | | | Signed-off-by: Lukasz Marek <lukasz.m.luki2 at gmail.com> Signed-off-by: Michael Niedermayer <[email protected]>
* lavf/libssh: support reading config from ~/.ssh/configFlorian Jacob2015-03-111-3/+8
| | | | | | | | | | libssh provides a function for parsing ~/.ssh/config for ssh connection parameters like user, hostname, identity file and port. This patch makes ffmpeg use this function to take parameters from the config file for everything that's not explicitely set in the url. It also supports host aliases, i.e. using a shorthand in the url and replacing it with the hostname / IP address specified for the shorthand in the config file. Signed-off-by: Florian Jacob <[email protected]> Signed-off-by: Lukasz Marek <[email protected]>
* lavf/libssh: set freed pointers to NULLLukasz Marek2014-07-121-2/+7
| | | | | Signed-off-by: Lukasz Marek <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]>
* lavf/libssh: call ssh_userauth_none before ssh_userauth_listLukasz Marek2014-07-041-0/+3
| | | | | | | | According to doc, ssh_userauth_none must be called before ssh_userauth_list. It solves login issue for new versions of libssh. Signed-off-by: Lukasz Marek <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]>
* lavf/libssh: fix seek to nagative positionLukasz Marek2014-02-281-0/+5
| | | | Signed-off-by: Lukasz Marek <[email protected]>
* avformat/libssh: Fix libssh defaulting to shared linkage.Matt Oliver2014-02-111-0/+1
| | | | | | | Reviewed-by: Derek Buitenhuis <[email protected]> Reviewed-by: Lukasz M <[email protected]> See: [FFmpeg-devel] Fix libssh static linkage on Windows Signed-off-by: Michael Niedermayer <[email protected]>
* lavf/libssh: fix seek with whence==SEEK_CURLukasz Marek2014-01-221-1/+1
| | | | Signed-off-by: Lukasz Marek <[email protected]>
* lavf/libssh: rename context variable from s into libsshLukasz Marek2014-01-221-26/+26
| | | | Signed-off-by: Lukasz Marek <[email protected]>
* lavf/libssh: add av_cold attributesLukasz Marek2014-01-221-2/+2
| | | | Signed-off-by: Lukasz Marek <[email protected]>
* lavf/libssh: factorize create_sftp_session functionLukasz Marek2014-01-221-10/+16
| | | | Signed-off-by: Lukasz Marek <[email protected]>
* lavf/libssh: factorize create_ssh_session functionLukasz Marek2014-01-221-16/+26
| | | | Signed-off-by: Lukasz Marek <[email protected]>
* lavf/libssh: factorize file_stat functionLukasz Marek2014-01-221-8/+14
| | | | Signed-off-by: Lukasz Marek <[email protected]>
* lavf/libssh: factorize open_file functionLukasz Marek2014-01-221-18/+26
| | | | Signed-off-by: Lukasz Marek <[email protected]>
* lavf/libssh: add private_key optionLukasz Marek2014-01-221-10/+51
| | | | | | Allows to specify private key to use during authorization. Signed-off-by: Lukasz Marek <[email protected]>
* lavf/libssh: improve authenticationLukasz Marek2013-12-291-4/+7
| | | | | | | - Add authentication using keys - Provide better message on fail Signed-off-by: Lukasz Marek <[email protected]>
* lavf/libssh: fix file modeLukasz Marek2013-12-291-1/+2
| | | | Signed-off-by: Lukasz Marek <[email protected]>
* lavf: add SFTP protocol via libsshLukasz Marek2013-09-211-0/+229
Signed-off-by: Lukasz Marek <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]>