1
0
mirror of https://github.com/libssh2/libssh2.git synced 2025-11-23 01:22:37 +03:00

src/crypto.h src/userauth.c: Fix conditional RSA support

Most of libssh2 already has conditional support for RSA according to
the LIBSSH2_RSA crypto backend #define, but crypto.h and userauth.c
needed a few small fixes.
This commit is contained in:
Peter Stuge
2016-10-26 15:24:06 +02:00
committed by Alexander Lamaison
parent 8a7232be61
commit 3806115d3d
2 changed files with 17 additions and 0 deletions

View File

@@ -58,6 +58,7 @@
#include "mbedtls.h"
#endif
#if LIBSSH2_RSA
int _libssh2_rsa_new(libssh2_rsa_ctx ** rsa,
const unsigned char *edata,
unsigned long elen,
@@ -92,6 +93,7 @@ int _libssh2_rsa_new_private_frommemory(libssh2_rsa_ctx ** rsa,
LIBSSH2_SESSION * session,
const char *filedata, size_t filedata_len,
unsigned const char *passphrase);
#endif
#if LIBSSH2_DSA
int _libssh2_dsa_new(libssh2_dsa_ctx ** dsa,