• R/O
  • SSH
  • HTTPS

ttssh2: Commit


Commit MetaInfo

Revision7954 (tree)
Zeit2019-08-14 16:00:10
Autoryutakapon

Log Message

DH_get0_pqg が不要だったので削除した。
チケット #36876

Ändern Zusammenfassung

Diff

--- branches/openssl_1_1_1_v2/ttssh2/ttxssh/kex.c (revision 7953)
+++ branches/openssl_1_1_1_v2/ttssh2/ttxssh/kex.c (revision 7954)
@@ -34,7 +34,7 @@
3434 static DH *dh_new_group_asc(const char *gen, const char *modulus)
3535 {
3636 DH *dh = NULL;
37- BIGNUM *p, *g;
37+ BIGNUM *p = NULL, *g = NULL;
3838
3939 if ((dh = DH_new()) == NULL) {
4040 printf("dh_new_group_asc: DH_new");
@@ -41,8 +41,6 @@
4141 goto error;
4242 }
4343
44- DH_get0_pqg(dh, &p, NULL, &g);
45-
4644 // PとGは公開してもよい素数の組み合わせ
4745 if (BN_hex2bn(&p, modulus) == 0) {
4846 printf("BN_hex2bn p");
Show on old repository browser