[Ttssh2-commit] [6588] RSA_set0_key() の引数を逆に指定していたのを修正した。

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2017年 2月 13日 (月) 00:32:20 JST


Revision: 6588
          http://sourceforge.jp/projects/ttssh2/scm/svn/commits/6588
Author:   yutakapon
Date:     2017-02-13 00:32:20 +0900 (Mon, 13 Feb 2017)
Log Message:
-----------
RSA_set0_key()の引数を逆に指定していたのを修正した。

Modified Paths:
--------------
    branches/openssl_1_1_0/ttssh2/ttxssh/keyfiles.c
    branches/openssl_1_1_0/ttssh2/ttxssh/ttxssh.c

-------------- next part --------------
Modified: branches/openssl_1_1_0/ttssh2/ttxssh/keyfiles.c
===================================================================
--- branches/openssl_1_1_0/ttssh2/ttxssh/keyfiles.c	2017-02-12 11:45:28 UTC (rev 6587)
+++ branches/openssl_1_1_0/ttssh2/ttxssh/keyfiles.c	2017-02-12 15:32:20 UTC (rev 6588)
@@ -304,7 +304,7 @@
 	n = get_bignum(keyfile_data + N_index);
 	e = get_bignum(keyfile_data + E_index);
 	d = get_bignum(keyfile_data + D_index);
-	RSA_set0_key(key, e, n, d);
+	RSA_set0_key(key, n, e, d);
 	p = get_bignum(keyfile_data + P_index);
 	q = get_bignum(keyfile_data + Q_index);
 	RSA_set0_factors(key, p, q);
@@ -1063,7 +1063,7 @@
 		e = BN_new();
 		n = BN_new();
 		d = BN_new();
-		RSA_set0_key(result->rsa, e, n, d);
+		RSA_set0_key(result->rsa, n, e, d);
 
 		p = BN_new();
 		q = BN_new();
@@ -1417,7 +1417,7 @@
 		e = BN_new();
 		n = BN_new();
 		d = BN_new();
-		RSA_set0_key(result->rsa, e, n, d);
+		RSA_set0_key(result->rsa, n, e, d);
 
 		p = BN_new();
 		q = BN_new();

Modified: branches/openssl_1_1_0/ttssh2/ttxssh/ttxssh.c
===================================================================
--- branches/openssl_1_1_0/ttssh2/ttxssh/ttxssh.c	2017-02-12 11:45:28 UTC (rev 6587)
+++ branches/openssl_1_1_0/ttssh2/ttxssh/ttxssh.c	2017-02-12 15:32:20 UTC (rev 6588)
@@ -3670,7 +3670,7 @@
 		pub = RSA_new();
 		n = BN_new();
 		e = BN_new();
-		RSA_set0_key(pub, e, n, NULL);
+		RSA_set0_key(pub, n, e, NULL);
 		if (n == NULL || e == NULL) {
 			RSA_free(pub);
 			goto error;



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