Artifacts Associated With Ticket 14befce25ea1041c
Ticket change [ff2b9f31fe] (rid 1424) by anonymous on 2019-07-30 07:01:05:
- foundin initialized to: "1.7.18"
- icomment:
While compiling against openssl-1.1.1c I get the following error when compiling tls.c In file included from tls.c:83:0: dh_params.h: In function 'get_dhParams': dh_params.h:33:4: error: dereferencing pointer to incomplete type 'DH {aka struct dh_st}' dh->p=BN_bin2bn(dh2048_p,sizeof(dh2048_p),NULL); ^ I have searched the net and saw this problem mentioned elsewhere: https://issues.apache.org/jira/browse/PROTON-1381 I have tried with different GCC versions - all show the same problem. OPENSSL_NO_DH is undefined!
- login: "anonymous"
- mimetype: "text/x-fossil-plain"
- private_contact initialized to: "2aaa286f07c20b4ef15315022e1a387590051891"
- severity initialized to: "Severe"
- status initialized to: "Open"
- title initialized to: "Compile error with openssl1.1.1.c and GCC"
- type initialized to: "Build Problem"
Ticket change [3773354dc1] (rid 1425) by anonymous on 2019-08-02 08:12:45:
- icomment:
As a workaround I just added -DOPENSSL_NO_DH to the makefile.
- login: "anonymous"
- mimetype: "text/x-fossil-plain"
- priority changed to: "Immediate"
- resolution changed to: "Open"
- icomment:
Ticket change [a102dfe711] (rid 1450) by anonymous on 2019-09-26 13:20:29:
- icomment:
The core problem seems to be that include/openssl/bn.h of defines BIGNUM as a typedef of struct bignum_st, but does not define that structure anywhere. The declarations of the header of openssl 1.0.2 are still including such a definition; but the openssl 1.1 distributed with openSUSE 15.1 does no longer define the structure, and it's found nowhere in /usr/include, so the compiler has no chance to know whether 'p' and/or 'g' are members of that structure. So the first approach here might be that the code in tlsInt.h does not define TCLTLS_OPENSSL_PRE_1_1_API for e.g. OPENSSL_VERSION_NUMBER == 0x1010009fL as defined in opensslv.h .
- login: "anonymous"
- mimetype: "text/x-fossil-plain"
- username: "R. J. Mathar"
- icomment:
Ticket change [5e53590942] (rid 3691) by bohagan on 2024-06-29 01:15:58:
- icomment:
This issue has been fixed in commit [d3d16ea77fa810d8] with the change to auto set the DH parameters.
- login: "bohagan"
- mimetype: "text/x-fossil-plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- icomment: