Skip to content

common/crypto_openssl.c: fix build with libressl >= 3.5.0#522

Merged
bk138 merged 1 commit intoLibVNC:masterfrom
ffontaine:master
May 12, 2022
Merged

common/crypto_openssl.c: fix build with libressl >= 3.5.0#522
bk138 merged 1 commit intoLibVNC:masterfrom
ffontaine:master

Conversation

@ffontaine
Copy link
Contributor

Fix the following build failure with libressl >= 3.5.0:

/nvmedata/autobuild/instance-26/output-1/build/libvncserver-0.9.13/common/crypto_openssl.c: In function 'dh_generate_keypair':
/nvmedata/autobuild/instance-26/output-1/build/libvncserver-0.9.13/common/crypto_openssl.c:149:7: error: dereferencing pointer to incomplete type 'DH' {aka 'struct dh_st'}
  149 |     dh->p = BN_bin2bn(prime, keylen, NULL);
      |       ^~

Fixes:

Signed-off-by: Fabrice Fontaine fontaine.fabrice@gmail.com

Fix the following build failure with libressl >= 3.5.0:

/nvmedata/autobuild/instance-26/output-1/build/libvncserver-0.9.13/common/crypto_openssl.c: In function 'dh_generate_keypair':
/nvmedata/autobuild/instance-26/output-1/build/libvncserver-0.9.13/common/crypto_openssl.c:149:7: error: dereferencing pointer to incomplete type 'DH' {aka 'struct dh_st'}
  149 |     dh->p = BN_bin2bn(prime, keylen, NULL);
      |       ^~

Fixes:
 - http://autobuild.buildroot.org/results/49b3940b9d0432cb5fb0c5d22dfa017b18c6e233

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
@bk138 bk138 merged commit 97fbbd6 into LibVNC:master May 12, 2022
@bk138 bk138 added this to the Release 0.10.0 milestone May 12, 2022
orbea added a commit to orbea/libressl that referenced this pull request Jul 5, 2022
Upstream-Commit: 97fbbd678b2012e64acddd523677bc55a177bc58
Upstream-PR: LibVNC/libvncserver#522
Signed-off-by: orbea <orbea@riseup.net>
gentoo-bot pushed a commit to gentoo/libressl that referenced this pull request Jul 5, 2022
Upstream-Commit: 97fbbd678b2012e64acddd523677bc55a177bc58
Upstream-PR: LibVNC/libvncserver#522
Signed-off-by: orbea <orbea@riseup.net>
Signed-off-by: Quentin Retornaz <gentoo@retornaz.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants