Skip to content

Commit

Permalink
ebox: need to set eek_nid
Browse files Browse the repository at this point in the history
  • Loading branch information
arekinath committed Nov 5, 2024
1 parent b3fb7e1 commit d98bcbc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ebox.c
Original file line number Diff line number Diff line change
Expand Up @@ -2069,9 +2069,9 @@ sshbuf_get_ebox_ephem_key(struct sshbuf *buf, struct ebox_ephem_key **peek)
err = ssherrf("sshbuf_get_cstring8", rc);
goto out;
}
eek->eek_nid = sshkey_curve_name_to_nid(tname);

err = sshbuf_get_eckey8_sshkey(buf,
sshkey_curve_name_to_nid(tname), &eek->eek_ephem);
err = sshbuf_get_eckey8_sshkey(buf, eek->eek_nid, &eek->eek_ephem);
if (err != ERRF_OK) {
err = errf("ParseError", err, "failed to parse "
"ebox ephemeral key");
Expand Down

0 comments on commit d98bcbc

Please sign in to comment.