1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-08-08 19:02:06 +03:00

pki: Move keyfiles to pki_gcrypt.c.

This commit is contained in:
Andreas Schneider
2011-08-07 12:54:25 +02:00
parent 01c4b713dc
commit 37b80e9261
3 changed files with 7 additions and 7 deletions

View File

@@ -91,7 +91,6 @@ set(libssh_SRCS
gzip.c
init.c
kex.c
keyfiles.c
keys.c
known_hosts.c
legacy.c
@@ -104,6 +103,7 @@ set(libssh_SRCS
packet.c
pcap.c
pki.c
pki_gcrypt.c
poll.c
session.c
scp.c

View File

@@ -1280,10 +1280,10 @@ int ssh_publickey_to_file(ssh_session session, const char *file,
size_t len;
int rc;
if(session==NULL)
return SSH_ERROR;
return SSH_ERROR;
if(file==NULL || pubkey==NULL){
ssh_set_error(session, SSH_FATAL, "Invalid parameters");
return SSH_ERROR;
ssh_set_error(session, SSH_FATAL, "Invalid parameters");
return SSH_ERROR;
}
pubkey_64 = bin_to_base64(pubkey->string, ssh_string_len(pubkey));
if (pubkey_64 == NULL) {

View File

@@ -1,7 +1,7 @@
#define LIBSSH_STATIC
#include "torture.h"
#include "keyfiles.c"
#include "pki_gcrypt.c"
#define LIBSSH_RSA_TESTKEY "libssh_testkey.id_rsa"
#define LIBSSH_DSA_TESTKEY "libssh_testkey.id_dsa"