Revision: 7795 https://osdn.net/projects/ttssh2/scm/svn/commits/7795 Author: yutakapon Date: 2019-06-24 12:14:51 +0900 (Mon, 24 Jun 2019) Log Message: ----------- RSA構造体のメンバーアクセスが不可となったため、関数経由でのアクセスに変更した。 r7793の対応漏れ。 チケット #36876 Ticket Links: ------------ https://osdn.net/projects/ttssh2/tracker/detail/36876 Modified Paths: -------------- branches/openssl_1_1_1_v2/ttssh2/ttxssh/keyfiles.c -------------- next part -------------- Modified: branches/openssl_1_1_1_v2/ttssh2/ttxssh/keyfiles.c =================================================================== --- branches/openssl_1_1_1_v2/ttssh2/ttxssh/keyfiles.c 2019-06-24 03:12:02 UTC (rev 7794) +++ branches/openssl_1_1_1_v2/ttssh2/ttxssh/keyfiles.c 2019-06-24 03:14:51 UTC (rev 7795) @@ -76,7 +76,7 @@ RSA_get0_factors(key, &p, &q); RSA_get0_crt_params(key, &dmp1, &dmq1, &iqmp); - if (BN_cmp(key->p, key->q) < 0) { + if (BN_cmp(p, q) < 0) { BIGNUM *tmp = p; p = q; @@ -87,7 +87,7 @@ if (r != NULL && ctx != NULL) { dmp1 = BN_new(); dmq1 = BN_new(); - iqmp = BN_mod_inverse(NULL, key->q, key->p, ctx); + iqmp = BN_mod_inverse(NULL, q, p, ctx); RSA_set0_crt_params(key, dmp1, dmq1, iqmp); if (dmp1 != NULL && dmq1 != NULL && iqmp != NULL) {