mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-02 04:04:39 +02:00
Merge pull request #2593 from ejohnstown/maintenance-DH
Maintenance: DH
This commit is contained in:
@@ -19575,6 +19575,12 @@ static int GetDhPublicKey(WOLFSSL* ssl, const byte* input, word32 size,
|
|||||||
int group = 0;
|
int group = 0;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
ssl->buffers.weOwnDH = 1;
|
||||||
|
|
||||||
|
ssl->buffers.serverDH_P.buffer = NULL;
|
||||||
|
ssl->buffers.serverDH_G.buffer = NULL;
|
||||||
|
ssl->buffers.serverDH_Pub.buffer = NULL;
|
||||||
|
|
||||||
/* p */
|
/* p */
|
||||||
if ((args->idx - args->begin) + OPAQUE16_LEN > size) {
|
if ((args->idx - args->begin) + OPAQUE16_LEN > size) {
|
||||||
ERROR_OUT(BUFFER_ERROR, exit_gdpk);
|
ERROR_OUT(BUFFER_ERROR, exit_gdpk);
|
||||||
@@ -19638,8 +19644,6 @@ static int GetDhPublicKey(WOLFSSL* ssl, const byte* input, word32 size,
|
|||||||
length);
|
length);
|
||||||
args->idx += length;
|
args->idx += length;
|
||||||
|
|
||||||
ssl->buffers.weOwnDH = 1;
|
|
||||||
|
|
||||||
/* pub */
|
/* pub */
|
||||||
if ((args->idx - args->begin) + OPAQUE16_LEN > size) {
|
if ((args->idx - args->begin) + OPAQUE16_LEN > size) {
|
||||||
ERROR_OUT(BUFFER_ERROR, exit_gdpk);
|
ERROR_OUT(BUFFER_ERROR, exit_gdpk);
|
||||||
|
Reference in New Issue
Block a user