| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent a653e9b commit ce6f29e
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -449,10 +449,9 @@ EVPKeyCtxPointer DhKeyGenTraits::Setup(DhKeyPairGenConfig* params) { | |||
| 449 | 449 | if (!dh) return {}; | |
| 450 | 450 | ||
| 451 | 451 | key_params = EVPKeyPointer::NewDH(std::move(dh)); | |
| 452 | - } else if (std::get_if<int>(¶ms->params.prime)) { | ||
| 452 | + } else if (int* prime_size = std::get_if<int>(¶ms->params.prime)) { | ||
| 453 | 453 | auto param_ctx = EVPKeyCtxPointer::NewFromID(EVP_PKEY_DH); | |
| 454 | 454 | #ifndef OPENSSL_IS_BORINGSSL | |
| 455 | - int* prime_size = std::get_if<int>(¶ms->params.prime); | ||
| 456 | 455 | if (!param_ctx.initForParamgen() || | |
| 457 | 456 | !param_ctx.setDhParameters(*prime_size, params->params.generator)) { | |
| 458 | 457 | return {}; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments