mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-07-28 01:41:48 +03:00
scp: introduce a 64bits getter to respect ABI
This commit is contained in:
15
src/scp.c
15
src/scp.c
@ -737,8 +737,21 @@ int ssh_scp_request_get_permissions(ssh_scp scp){
|
||||
/** @brief Get the size of the file being pushed from the other party.
|
||||
*
|
||||
* @returns The numeric size of the file being read.
|
||||
* @warning The real size may not fit in a 32 bits field and may
|
||||
* be truncated.
|
||||
* @see ssh_scp_request_get_size64()
|
||||
*/
|
||||
uint64_t ssh_scp_request_get_size(ssh_scp scp){
|
||||
size_t ssh_scp_request_get_size(ssh_scp scp){
|
||||
if(scp==NULL)
|
||||
return 0;
|
||||
return scp->filelen;
|
||||
}
|
||||
|
||||
/** @brief Get the size of the file being pushed from the other party.
|
||||
*
|
||||
* @returns The numeric size of the file being read.
|
||||
*/
|
||||
uint64_t ssh_scp_request_get_size64(ssh_scp scp){
|
||||
if(scp==NULL)
|
||||
return 0;
|
||||
return scp->filelen;
|
||||
|
Reference in New Issue
Block a user