1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 17:38:00 +00:00

Rename rsa_public_blob_len to mention SSH-1.

It's yet another function with an outdatedly vague name.
This commit is contained in:
Simon Tatham 2018-06-03 08:12:57 +01:00
parent ae3863679d
commit ff11e10d62
3 changed files with 4 additions and 4 deletions

View File

@ -1073,7 +1073,7 @@ int pageant_add_keyfile(Filename *filename, const char *passphrase,
}
/* Now skip over public blob */
if (type == SSH_KEYTYPE_SSH1) {
int n = rsa_public_blob_len(p, keylistlen);
int n = rsa_ssh1_public_blob_len(p, keylistlen);
if (n < 0) {
*retstr = dupstr("Received broken key list from agent");
sfree(keylist);

2
ssh.h
View File

@ -196,7 +196,7 @@ char *rsa_ssh1_fingerprint(struct RSAKey *key);
int rsa_verify(struct RSAKey *key);
void rsa_ssh1_public_blob(BinarySink *bs, struct RSAKey *key,
RsaSsh1Order order);
int rsa_public_blob_len(void *data, int maxlen);
int rsa_ssh1_public_blob_len(void *data, int maxlen);
void freersakey(struct RSAKey *key);
typedef uint32 word32;

View File

@ -441,8 +441,8 @@ void rsa_ssh1_public_blob(BinarySink *bs, struct RSAKey *key,
}
}
/* Given a public blob, determine its length. */
int rsa_public_blob_len(void *data, int maxlen)
/* Given an SSH-1 public key blob, determine its length. */
int rsa_ssh1_public_blob_len(void *data, int maxlen)
{
BinarySource src[1];