Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mRemoteNG/PuTTYNG.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2021-04-22 20:28:35 +0300
committerSimon Tatham <anakin@pobox.com>2021-04-22 20:34:47 +0300
commit1c039d0a7b31c181a2d87021a98e85b75e5b1ee8 (patch)
tree8b297f70df42cefb82a812be7427292e8f7da4e6 /cmdgen.c
parent419e5e2230850f1555d44e62417e8f606cb68e6e (diff)
Spelling: standardise on "DSA", not "DSS".
This code base has always been a bit confused about which spelling it likes to use to refer to that signature algorithm. The SSH protocol id is "ssh-dss". But everyone I know refers to it as the Digital Signature _Algorithm_, not the Digital Signature _Standard_. When I moved everything down into the crypto subdir, I took the opportunity to rename sshdss.c to dsa.c. Now I'm doing the rest of the job: all internal identifiers and code comments refer to DSA, and the spelling "dss" only survives in externally visible identifiers that have to remain constant. (Such identifiers include the SSH protocol id, and also the string id used to identify the key type in PuTTY's own host key cache. We can't change the latter without causing everyone a backwards-compatibility headache, and if we _did_ ever decide to do that, we'd surely want to do a much more thorough job of making the cache format more sensible!)
Diffstat (limited to 'cmdgen.c')
-rw-r--r--cmdgen.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmdgen.c b/cmdgen.c
index 920317f5..3301b410 100644
--- a/cmdgen.c
+++ b/cmdgen.c
@@ -878,10 +878,10 @@ int main(int argc, char **argv)
PrimeGenerationContext *pgc = primegen_new_context(primegen);
if (keytype == DSA) {
- struct dss_key *dsskey = snew(struct dss_key);
- dsa_generate(dsskey, bits, pgc, &cmdgen_progress);
+ struct dsa_key *dsakey = snew(struct dsa_key);
+ dsa_generate(dsakey, bits, pgc, &cmdgen_progress);
ssh2key = snew(ssh2_userkey);
- ssh2key->key = &dsskey->sshk;
+ ssh2key->key = &dsakey->sshk;
ssh1key = NULL;
} else if (keytype == ECDSA) {
struct ecdsa_key *ek = snew(struct ecdsa_key);