[Ttssh2-commit] [5520] 公開鍵ファイルの保存に対応した。

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2014年 3月 11日 (火) 00:06:09 JST


Revision: 5520
          http://sourceforge.jp/projects/ttssh2/scm/svn/commits/5520
Author:   yutakapon
Date:     2014-03-11 00:06:07 +0900 (Tue, 11 Mar 2014)
Log Message:
-----------
公開鍵ファイルの保存に対応した。

Modified Paths:
--------------
    branches/ssh_ed25519/ttssh2/ttxssh/ttxssh.c

-------------- next part --------------
Modified: branches/ssh_ed25519/ttssh2/ttxssh/ttxssh.c
===================================================================
--- branches/ssh_ed25519/ttssh2/ttxssh/ttxssh.c	2014-03-10 13:32:05 UTC (rev 5519)
+++ branches/ssh_ed25519/ttssh2/ttxssh/ttxssh.c	2014-03-10 15:06:07 UTC (rev 5520)
@@ -4551,6 +4551,15 @@
 				ofn.lpstrFilter = uimsg;
 				strncpy_s(filename, sizeof(filename), "id_ecdsa.pub", _TRUNCATE);
 				break;
+			case KEY_ED25519:
+				UTIL_get_lang_msg("FILEDLG_SAVE_PUBLICKEY_ED25519_FILTER", pvar,
+				                  "SSH2 ED25519 key(id_ed25519.pub)\\0id_ed25519.pub\\0All Files(*.*)\\0*.*\\0\\0");
+				memcpy(uimsg, pvar->ts->UIMsg, sizeof(uimsg));
+				ofn.lpstrFilter = uimsg;
+				strncpy_s(filename, sizeof(filename), "id_ed25519.pub", _TRUNCATE);
+				break;
+			default:
+				break;
 			}
 			ofn.lpstrFile = filename;
 			ofn.nMaxFile = sizeof(filename);
@@ -4633,6 +4642,12 @@
 					buffer_put_ecpoint(b, EC_KEY_get0_group(ecdsa),
 					                      EC_KEY_get0_public_key(ecdsa));
 					break;
+
+				case KEY_ED25519:
+					keyname = get_ssh_keytype_name(public_key.type);
+					buffer_put_cstring(b, keyname);
+					buffer_put_string(b, public_key.ed25519_pk, ED25519_PK_SZ);
+					break;
 				}
 
 				blob = buffer_ptr(b);



Ttssh2-commit メーリングリストの案内
Back to archive index