X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=sshecc.c;h=e1166827f1143a3f9d692c17d6f8913879a4b05d;hb=a3d14d77f566a41fc61dfdc5c2e0e384c9e6ae8b;hp=3ce6c7fe6ae07e19e3b0b35dfdba92398e1cf999;hpb=ca8876f0044c2eb7dbc5a61a432e799973e7e51c;p=PuTTY.git diff --git a/sshecc.c b/sshecc.c index 3ce6c7fe..e1166827 100644 --- a/sshecc.c +++ b/sshecc.c @@ -2940,9 +2940,9 @@ const unsigned char *ec_alg_oid(const struct ssh_signkey *alg, const int ec_nist_curve_lengths[] = { 256, 384, 521 }; const int n_ec_nist_curve_lengths = lenof(ec_nist_curve_lengths); -const int ec_nist_alg_and_curve_by_bits(int bits, - const struct ec_curve **curve, - const struct ssh_signkey **alg) +int ec_nist_alg_and_curve_by_bits(int bits, + const struct ec_curve **curve, + const struct ssh_signkey **alg) { switch (bits) { case 256: *alg = &ssh_ecdsa_nistp256; break; @@ -2954,9 +2954,9 @@ const int ec_nist_alg_and_curve_by_bits(int bits, return TRUE; } -const int ec_ed_alg_and_curve_by_bits(int bits, - const struct ec_curve **curve, - const struct ssh_signkey **alg) +int ec_ed_alg_and_curve_by_bits(int bits, + const struct ec_curve **curve, + const struct ssh_signkey **alg) { switch (bits) { case 256: *alg = &ssh_ecdsa_ed25519; break;