• R/O
  • SSH
  • HTTPS

ttssh2: Commit


Commit MetaInfo

Revision6588 (tree)
Time2017-02-13 00:32:20
Authoryutakapon

Log Message

RSA_set0_key()の引数を逆に指定していたのを修正した。

Change Summary

Incremental Difference

--- branches/openssl_1_1_0/ttssh2/ttxssh/ttxssh.c (revision 6587)
+++ branches/openssl_1_1_0/ttssh2/ttxssh/ttxssh.c (revision 6588)
@@ -3670,7 +3670,7 @@
36703670 pub = RSA_new();
36713671 n = BN_new();
36723672 e = BN_new();
3673- RSA_set0_key(pub, e, n, NULL);
3673+ RSA_set0_key(pub, n, e, NULL);
36743674 if (n == NULL || e == NULL) {
36753675 RSA_free(pub);
36763676 goto error;
--- branches/openssl_1_1_0/ttssh2/ttxssh/keyfiles.c (revision 6587)
+++ branches/openssl_1_1_0/ttssh2/ttxssh/keyfiles.c (revision 6588)
@@ -304,7 +304,7 @@
304304 n = get_bignum(keyfile_data + N_index);
305305 e = get_bignum(keyfile_data + E_index);
306306 d = get_bignum(keyfile_data + D_index);
307- RSA_set0_key(key, e, n, d);
307+ RSA_set0_key(key, n, e, d);
308308 p = get_bignum(keyfile_data + P_index);
309309 q = get_bignum(keyfile_data + Q_index);
310310 RSA_set0_factors(key, p, q);
@@ -1063,7 +1063,7 @@
10631063 e = BN_new();
10641064 n = BN_new();
10651065 d = BN_new();
1066- RSA_set0_key(result->rsa, e, n, d);
1066+ RSA_set0_key(result->rsa, n, e, d);
10671067
10681068 p = BN_new();
10691069 q = BN_new();
@@ -1417,7 +1417,7 @@
14171417 e = BN_new();
14181418 n = BN_new();
14191419 d = BN_new();
1420- RSA_set0_key(result->rsa, e, n, d);
1420+ RSA_set0_key(result->rsa, n, e, d);
14211421
14221422 p = BN_new();
14231423 q = BN_new();
Show on old repository browser