Skip to content

OpenSSL 1.1.x makes RSA, DSA and DH structs opaque #763

@bagder

Description

@bagder

... and it breaks the curl build (again). Using openssl from their git repository (I used OpenSSL_1_1_0-pre4-277-g9d5ac95):

get_cert_chain’:
vtls/openssl.c:2403:46: error: dereferencing pointer to incomplete type ‘RSA {aka struct rsa_st}’
         BIO_printf(mem, "%d", BN_num_bits(rsa->n));
                                              ^
vtls/openssl.c:2240:11: error: dereferencing pointer to incomplete type ‘DSA {aka struct dsa_st}’
   if(_type->_name) { \
           ^
vtls/openssl.c:2424:9: note: in expansion of macro ‘print_pubkey_BN’
         print_pubkey_BN(dsa, p, i);
         ^
vtls/openssl.c:2240:11: error: dereferencing pointer to incomplete type ‘DH {aka struct dh_st}’
   if(_type->_name) { \
           ^
vtls/openssl.c:2439:9: note: in expansion of macro ‘print_pubkey_BN’
         print_pubkey_BN(dh, p, i);
         ^

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions