浏览代码

PuTTY development fix 867e6918 (Fix crash when adding an ECDSA key to Pageant - 2019-03-20)

Source commit: caff2fb82e2f74dfa5ca4694916b172a077029de
Martin Prikryl 6 年之前
父节点
当前提交
ee4c9adfaa
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      source/putty/sshecc.c

+ 2 - 2
source/putty/sshecc.c

@@ -917,11 +917,11 @@ static ssh_key *ecdsa_new_priv_openssh(
     get_string(src);
 
     { // WINSCP
-    struct eddsa_key *ek = snew(struct eddsa_key);
+    struct ecdsa_key *ek = snew(struct ecdsa_key);
     ek->sshk.vt = alg;
     ek->curve = curve;
 
-    ek->publicKey = get_epoint(src, curve);
+    ek->publicKey = get_wpoint(src, curve);
     if (!ek->publicKey) {
         eddsa_freekey(&ek->sshk);
         return NULL;