aboutsummaryrefslogtreecommitdiff
path: root/libssh/keyfiles.c
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2010-04-28 12:48:47 +0200
committerAris Adamantiadis <aris@0xbadc0de.be>2010-04-28 12:48:47 +0200
commit84db436e3bc51cc962b8c34a6b54918df3762844 (patch)
tree8442f507f014d4941fdcfd8f18cd4ea748ccaf86 /libssh/keyfiles.c
parent904c6ed853af02c4de5ad45356345c5b50e9f62f (diff)
downloadlibssh-84db436e3bc51cc962b8c34a6b54918df3762844.tar.gz
libssh-84db436e3bc51cc962b8c34a6b54918df3762844.tar.xz
libssh-84db436e3bc51cc962b8c34a6b54918df3762844.zip
Fix doc and libgcrypt build
Diffstat (limited to 'libssh/keyfiles.c')
-rw-r--r--libssh/keyfiles.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libssh/keyfiles.c b/libssh/keyfiles.c
index 0fa67b33..8c50776c 100644
--- a/libssh/keyfiles.c
+++ b/libssh/keyfiles.c
@@ -364,11 +364,11 @@ static ssh_buffer privatekey_file_to_buffer(FILE *fp, int type,
}
switch(type) {
- case TYPE_DSS:
+ case SSH_KEYTYPE_DSS:
header_begin = DSA_HEADER_BEGIN;
header_end = DSA_HEADER_END;
break;
- case TYPE_RSA:
+ case SSH_KEYTYPE_RSA:
header_begin = RSA_HEADER_BEGIN;
header_end = RSA_HEADER_END;
break;
@@ -468,7 +468,7 @@ static int read_rsa_privatekey(FILE *fp, gcry_sexp_t *r,
ssh_buffer buffer = NULL;
int rc = 1;
- buffer = privatekey_file_to_buffer(fp, TYPE_RSA, cb, userdata, desc);
+ buffer = privatekey_file_to_buffer(fp, SSH_KEYTYPE_RSA, cb, userdata, desc);
if (buffer == NULL) {
return 0;
}
@@ -537,7 +537,7 @@ static int read_dsa_privatekey(FILE *fp, gcry_sexp_t *r, ssh_auth_callback cb,
ssh_string v = NULL;
int rc = 1;
- buffer = privatekey_file_to_buffer(fp, TYPE_DSS, cb, userdata, desc);
+ buffer = privatekey_file_to_buffer(fp, SSH_KEYTYPE_DSS, cb, userdata, desc);
if (buffer == NULL) {
return 0;
}