Revision: 7954 https://osdn.net/projects/ttssh2/scm/svn/commits/7954 Author: yutakapon Date: 2019-08-14 16:00:10 +0900 (Wed, 14 Aug 2019) Log Message: ----------- DH_get0_pqg が不要だったので削除した。 チケット #36876 Ticket Links: ------------ https://osdn.net/projects/ttssh2/tracker/detail/36876 Modified Paths: -------------- branches/openssl_1_1_1_v2/ttssh2/ttxssh/kex.c -------------- next part -------------- Modified: branches/openssl_1_1_1_v2/ttssh2/ttxssh/kex.c =================================================================== --- branches/openssl_1_1_1_v2/ttssh2/ttxssh/kex.c 2019-08-14 03:40:48 UTC (rev 7953) +++ branches/openssl_1_1_1_v2/ttssh2/ttxssh/kex.c 2019-08-14 07:00:10 UTC (rev 7954) @@ -34,7 +34,7 @@ static DH *dh_new_group_asc(const char *gen, const char *modulus) { DH *dh = NULL; - BIGNUM *p, *g; + BIGNUM *p = NULL, *g = NULL; if ((dh = DH_new()) == NULL) { printf("dh_new_group_asc: DH_new"); @@ -41,8 +41,6 @@ goto error; } - DH_get0_pqg(dh, &p, NULL, &g); - // P\x82\xC6G\x82͌\xF6\x8AJ\x82\xB5\x82Ă\xE0\x82悢\x91f\x90\x94\x82̑g\x82ݍ\x87\x82킹 if (BN_hex2bn(&p, modulus) == 0) { printf("BN_hex2bn p");