mirror of
https://github.com/libssh2/libssh2.git
synced 2025-07-31 00:03:08 +03:00
libssh2_base64_decode: add deprecation warning
Cherry-picked from #1484
This commit is contained in:
@ -1,6 +1,6 @@
|
|||||||
.\" Copyright (C) The libssh2 project and its contributors.
|
.\" Copyright (C) The libssh2 project and its contributors.
|
||||||
.\" SPDX-License-Identifier: BSD-3-Clause
|
.\" SPDX-License-Identifier: BSD-3-Clause
|
||||||
.TH libssh2_base64_decode 3 "23 Dec 2008" "libssh2 1.0" "libssh2"
|
.TH libssh2_base64_decode 3 "23 Dec 2008" "libssh2 0.1" "libssh2"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
libssh2_base64_decode - decode a base64 encoded string
|
libssh2_base64_decode - decode a base64 encoded string
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
@ -13,8 +13,8 @@ libssh2_base64_decode(LIBSSH2_SESSION *session, char **dest,
|
|||||||
unsigned int src_len);
|
unsigned int src_len);
|
||||||
.fi
|
.fi
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
This function is deemed DEPRECATED and will be removed from libssh2 in a
|
This function is deemed DEPRECATED in 1.0 and will be removed from libssh2
|
||||||
future version. Do not use it!
|
in a future version. Do not use it!
|
||||||
|
|
||||||
Decode a base64 chunk and store it into a newly allocated buffer. 'dest_len'
|
Decode a base64 chunk and store it into a newly allocated buffer. 'dest_len'
|
||||||
will be set to hold the length of the returned buffer that '*dest' will point
|
will be set to hold the length of the returned buffer that '*dest' will point
|
||||||
|
@ -1071,10 +1071,12 @@ LIBSSH2_API LIBSSH2_CHANNEL *
|
|||||||
libssh2_scp_send64(LIBSSH2_SESSION *session, const char *path, int mode,
|
libssh2_scp_send64(LIBSSH2_SESSION *session, const char *path, int mode,
|
||||||
libssh2_int64_t size, time_t mtime, time_t atime);
|
libssh2_int64_t size, time_t mtime, time_t atime);
|
||||||
|
|
||||||
/* DEPRECATED */
|
#ifndef LIBSSH2_NO_DEPRECATED
|
||||||
|
LIBSSH2_DEPRECATED(1.0, "")
|
||||||
LIBSSH2_API int libssh2_base64_decode(LIBSSH2_SESSION *session, char **dest,
|
LIBSSH2_API int libssh2_base64_decode(LIBSSH2_SESSION *session, char **dest,
|
||||||
unsigned int *dest_len,
|
unsigned int *dest_len,
|
||||||
const char *src, unsigned int src_len);
|
const char *src, unsigned int src_len);
|
||||||
|
#endif
|
||||||
|
|
||||||
LIBSSH2_API
|
LIBSSH2_API
|
||||||
const char *libssh2_version(int req_version_num);
|
const char *libssh2_version(int req_version_num);
|
||||||
|
@ -1429,7 +1429,7 @@
|
|||||||
d mode value like(libssh2_Cint)
|
d mode value like(libssh2_Cint)
|
||||||
d size value like(libssh2_int64_t)
|
d size value like(libssh2_int64_t)
|
||||||
|
|
||||||
* DEPRECATED
|
/if not defined(LIBSSH2_NO_DEPRECATED)
|
||||||
d libssh2_base64_decode...
|
d libssh2_base64_decode...
|
||||||
d pr extproc('libssh2_base64_decode')
|
d pr extproc('libssh2_base64_decode')
|
||||||
d like(libssh2_Cint)
|
d like(libssh2_Cint)
|
||||||
@ -1438,6 +1438,7 @@
|
|||||||
d dest_len * value unsigned int *
|
d dest_len * value unsigned int *
|
||||||
d src * value options(*string) const char *
|
d src * value options(*string) const char *
|
||||||
d src_len value like(libssh2_Cuint)
|
d src_len value like(libssh2_Cuint)
|
||||||
|
/endif
|
||||||
|
|
||||||
* Procedure libssh2_version renamed to avoid upper/lower case name clash.
|
* Procedure libssh2_version renamed to avoid upper/lower case name clash.
|
||||||
d libssh2_get_version...
|
d libssh2_get_version...
|
||||||
|
@ -353,9 +353,10 @@ static const short base64_reverse_table[256] = {
|
|||||||
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1
|
||||||
};
|
};
|
||||||
|
|
||||||
/* libssh2_base64_decode
|
#ifndef LIBSSH2_NO_DEPRECATED
|
||||||
|
/* libssh2_base64_decode (DEPRECATED, DO NOT USE!)
|
||||||
*
|
*
|
||||||
* Legacy public function. DEPRECATED.
|
* Legacy public function.
|
||||||
*/
|
*/
|
||||||
LIBSSH2_API int
|
LIBSSH2_API int
|
||||||
libssh2_base64_decode(LIBSSH2_SESSION *session, char **data,
|
libssh2_base64_decode(LIBSSH2_SESSION *session, char **data,
|
||||||
@ -372,6 +373,7 @@ libssh2_base64_decode(LIBSSH2_SESSION *session, char **data,
|
|||||||
|
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/* _libssh2_base64_decode
|
/* _libssh2_base64_decode
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user