mirror of
https://github.com/libssh2/libssh2.git
synced 2025-11-21 14:00:51 +03:00
src: silence unused variable warnings (#843)
This commit is contained in:
@@ -157,6 +157,11 @@ _libssh2_rsa_new_private_frommemory(libssh2_rsa_ctx ** rsa,
|
|||||||
const char *filedata, size_t filedata_len,
|
const char *filedata, size_t filedata_len,
|
||||||
unsigned const char *passphrase)
|
unsigned const char *passphrase)
|
||||||
{
|
{
|
||||||
|
(void)rsa;
|
||||||
|
(void)filedata;
|
||||||
|
(void)filedata_len;
|
||||||
|
(void)passphrase;
|
||||||
|
|
||||||
return _libssh2_error(session, LIBSSH2_ERROR_METHOD_NOT_SUPPORTED,
|
return _libssh2_error(session, LIBSSH2_ERROR_METHOD_NOT_SUPPORTED,
|
||||||
"Unable to extract private key from memory: "
|
"Unable to extract private key from memory: "
|
||||||
"Method unimplemented in libgcrypt backend");
|
"Method unimplemented in libgcrypt backend");
|
||||||
@@ -269,6 +274,11 @@ _libssh2_dsa_new_private_frommemory(libssh2_dsa_ctx ** dsa,
|
|||||||
const char *filedata, size_t filedata_len,
|
const char *filedata, size_t filedata_len,
|
||||||
unsigned const char *passphrase)
|
unsigned const char *passphrase)
|
||||||
{
|
{
|
||||||
|
(void)dsa;
|
||||||
|
(void)filedata;
|
||||||
|
(void)filedata_len;
|
||||||
|
(void)passphrase;
|
||||||
|
|
||||||
return _libssh2_error(session, LIBSSH2_ERROR_METHOD_NOT_SUPPORTED,
|
return _libssh2_error(session, LIBSSH2_ERROR_METHOD_NOT_SUPPORTED,
|
||||||
"Unable to extract private key from memory: "
|
"Unable to extract private key from memory: "
|
||||||
"Method unimplemented in libgcrypt backend");
|
"Method unimplemented in libgcrypt backend");
|
||||||
@@ -607,6 +617,14 @@ _libssh2_pub_priv_keyfilememory(LIBSSH2_SESSION *session,
|
|||||||
size_t privatekeydata_len,
|
size_t privatekeydata_len,
|
||||||
const char *passphrase)
|
const char *passphrase)
|
||||||
{
|
{
|
||||||
|
(void)method;
|
||||||
|
(void)method_len;
|
||||||
|
(void)pubkeydata;
|
||||||
|
(void)pubkeydata_len;
|
||||||
|
(void)privatekeydata;
|
||||||
|
(void)privatekeydata_len;
|
||||||
|
(void)passphrase;
|
||||||
|
|
||||||
return _libssh2_error(session, LIBSSH2_ERROR_METHOD_NOT_SUPPORTED,
|
return _libssh2_error(session, LIBSSH2_ERROR_METHOD_NOT_SUPPORTED,
|
||||||
"Unable to extract public key from private "
|
"Unable to extract public key from private "
|
||||||
"key in memory: "
|
"key in memory: "
|
||||||
@@ -622,6 +640,13 @@ _libssh2_pub_priv_keyfile(LIBSSH2_SESSION *session,
|
|||||||
const char *privatekey,
|
const char *privatekey,
|
||||||
const char *passphrase)
|
const char *passphrase)
|
||||||
{
|
{
|
||||||
|
(void)method;
|
||||||
|
(void)method_len;
|
||||||
|
(void)pubkeydata;
|
||||||
|
(void)pubkeydata_len;
|
||||||
|
(void)privatekey;
|
||||||
|
(void)passphrase;
|
||||||
|
|
||||||
return _libssh2_error(session, LIBSSH2_ERROR_FILE,
|
return _libssh2_error(session, LIBSSH2_ERROR_FILE,
|
||||||
"Unable to extract public key from private key file: "
|
"Unable to extract public key from private key file: "
|
||||||
"Method unimplemented in libgcrypt backend");
|
"Method unimplemented in libgcrypt backend");
|
||||||
@@ -642,6 +667,19 @@ _libssh2_sk_pub_keyfilememory(LIBSSH2_SESSION *session,
|
|||||||
size_t privatekeydata_len,
|
size_t privatekeydata_len,
|
||||||
const char *passphrase)
|
const char *passphrase)
|
||||||
{
|
{
|
||||||
|
(void)method;
|
||||||
|
(void)method_len;
|
||||||
|
(void)pubkeydata;
|
||||||
|
(void)pubkeydata_len;
|
||||||
|
(void)algorithm;
|
||||||
|
(void)flags;
|
||||||
|
(void)application;
|
||||||
|
(void)key_handle;
|
||||||
|
(void)handle_len;
|
||||||
|
(void)privatekeydata;
|
||||||
|
(void)privatekeydata_len;
|
||||||
|
(void)passphrase;
|
||||||
|
|
||||||
return _libssh2_error(session, LIBSSH2_ERROR_FILE,
|
return _libssh2_error(session, LIBSSH2_ERROR_FILE,
|
||||||
"Unable to extract public SK key from private key file: "
|
"Unable to extract public SK key from private key file: "
|
||||||
"Method unimplemented in libgcrypt backend");
|
"Method unimplemented in libgcrypt backend");
|
||||||
|
|||||||
@@ -825,6 +825,19 @@ _libssh2_mbedtls_sk_pub_keyfilememory(LIBSSH2_SESSION *session,
|
|||||||
size_t privatekeydata_len,
|
size_t privatekeydata_len,
|
||||||
const char *passphrase)
|
const char *passphrase)
|
||||||
{
|
{
|
||||||
|
(void)method;
|
||||||
|
(void)method_len;
|
||||||
|
(void)pubkeydata;
|
||||||
|
(void)pubkeydata_len;
|
||||||
|
(void)algorithm;
|
||||||
|
(void)flags;
|
||||||
|
(void)application;
|
||||||
|
(void)key_handle;
|
||||||
|
(void)handle_len;
|
||||||
|
(void)privatekeydata;
|
||||||
|
(void)privatekeydata_len;
|
||||||
|
(void)passphrase;
|
||||||
|
|
||||||
return _libssh2_error(session, LIBSSH2_ERROR_FILE,
|
return _libssh2_error(session, LIBSSH2_ERROR_FILE,
|
||||||
"Unable to extract public SK key from private key file: "
|
"Unable to extract public SK key from private key file: "
|
||||||
"Method unimplemented in mbedTLS backend");
|
"Method unimplemented in mbedTLS backend");
|
||||||
|
|||||||
Reference in New Issue
Block a user