google/webcrypto.dart

update ffigen

Closed this issue · 4 comments

Running:

flutter pub run ffigen --config=lib/src/boringssl/bindings/ffigen.yaml
flutter pub run ffigen --config=lib/src/third_party/boringssl/ffigen.yaml

causes things like:

[WARNING]: Resolved name conflict: Declaration 'RSA_set0_key' and has been renamed to 'RSA_set0_key1'.
[WARNING]: Resolved name conflict: Declaration 'RSA_set0_key' and has been renamed to 'RSA_set0_key2'.
[WARNING]: Resolved name conflict: Declaration 'RSA_set0_key' and has been renamed to 'RSA_set0_key3'.
[WARNING]: Resolved name conflict: Declaration 'RSA_set0_key' and has been renamed to 'RSA_set0_key4'.
[WARNING]: Resolved name conflict: Declaration 'RSA_set0_key' and has been renamed to 'RSA_set0_key5'.
[WARNING]: Resolved name conflict: Declaration 'RSA_set0_key' and has been renamed to 'RSA_set0_key6'.

where multiple methods for the same thing is generated.

@dcharkes, any ideas? (this is upgrading from ffigen version 4 to 6)

Sounds like:

This improved after 6.1.2 but we still have:

[WARNING]: Resolved name conflict: Declaration 'BIGNUM' and has been renamed to 'BIGNUM1'.
[WARNING]: Resolved name conflict: Declaration 'BN_CTX' and has been renamed to 'BN_CTX1'.
[WARNING]: Resolved name conflict: Declaration 'BN_GENCB' and has been renamed to 'BN_GENCB1'.
[WARNING]: Resolved name conflict: Declaration 'BN_MONT_CTX' and has been renamed to 'BN_MONT_CTX1'.
[WARNING]: Resolved name conflict: Declaration 'CBB' and has been renamed to 'CBB1'.
[WARNING]: Resolved name conflict: Declaration 'CBS' and has been renamed to 'CBS1'.
[WARNING]: Resolved name conflict: Declaration 'ECDSA_SIG' and has been renamed to 'ECDSA_SIG1'.
[WARNING]: Resolved name conflict: Declaration 'EC_GROUP' and has been renamed to 'EC_GROUP1'.
[WARNING]: Resolved name conflict: Declaration 'EC_KEY' and has been renamed to 'EC_KEY1'.
[WARNING]: Resolved name conflict: Declaration 'EC_POINT' and has been renamed to 'EC_POINT1'.
[WARNING]: Resolved name conflict: Declaration 'ENGINE' and has been renamed to 'ENGINE1'.
[WARNING]: Resolved name conflict: Declaration 'EVP_AEAD' and has been renamed to 'EVP_AEAD1'.
[WARNING]: Resolved name conflict: Declaration 'EVP_CIPHER' and has been renamed to 'EVP_CIPHER1'.
[WARNING]: Resolved name conflict: Declaration 'EVP_CIPHER_CTX' and has been renamed to 'EVP_CIPHER_CTX1'.
[WARNING]: Resolved name conflict: Declaration 'EVP_MD' and has been renamed to 'EVP_MD1'.
[WARNING]: Resolved name conflict: Declaration 'EVP_MD_CTX' and has been renamed to 'EVP_MD_CTX1'.
[WARNING]: Resolved name conflict: Declaration 'EVP_PKEY' and has been renamed to 'EVP_PKEY1'.
[WARNING]: Resolved name conflict: Declaration 'EVP_PKEY_ASN1_METHOD' and has been renamed to 'EVP_PKEY_ASN1_METHOD1'.
[WARNING]: Resolved name conflict: Declaration 'EVP_PKEY_CTX' and has been renamed to 'EVP_PKEY_CTX1'.
[WARNING]: Resolved name conflict: Declaration 'HMAC_CTX' and has been renamed to 'HMAC_CTX1'.
[WARNING]: Resolved name conflict: Declaration 'RSA' and has been renamed to 'RSA1'.

Please file on ffigen repo.

I think I have resolved this by tweaking the configuration. Still need to brush off a few things...