Skip to content

Commit e0c1734

Browse files
authored
Upgrade ffigen (#106)
* Upgrade ffigen dependency * Regenerate bindings with ffigen
1 parent 137237c commit e0c1734

File tree

3 files changed

+30
-22
lines changed

3 files changed

+30
-22
lines changed

example/pubspec.lock

Lines changed: 23 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,26 @@ packages:
55
dependency: transitive
66
description:
77
name: _fe_analyzer_shared
8-
sha256: ae92f5d747aee634b87f89d9946000c2de774be1d6ac3e58268224348cd0101a
8+
sha256: "0b2f2bd91ba804e53a61d757b986f89f1f9eaed5b11e4b2f5a2468d86d6c9fc7"
99
url: "https://pub.dev"
1010
source: hosted
11-
version: "61.0.0"
11+
version: "67.0.0"
1212
analyzer:
1313
dependency: transitive
1414
description:
1515
name: analyzer
16-
sha256: ea3d8652bda62982addfd92fdc2d0214e5f82e43325104990d4f4c4a2a313562
16+
sha256: "37577842a27e4338429a1cbc32679d508836510b056f1eedf0c8d20e39c1383d"
1717
url: "https://pub.dev"
1818
source: hosted
19-
version: "5.13.0"
19+
version: "6.4.1"
2020
args:
2121
dependency: transitive
2222
description:
2323
name: args
24-
sha256: eef6c46b622e0494a36c5a12d10d77fb4e855501a91c1b9ef9339326e58f0596
24+
sha256: "7cf60b9f0cc88203c5a190b4cd62a99feea42759a7fa695010eb5de1c0b2252a"
2525
url: "https://pub.dev"
2626
source: hosted
27-
version: "2.4.2"
27+
version: "2.5.0"
2828
async:
2929
dependency: transitive
3030
description:
@@ -93,10 +93,10 @@ packages:
9393
dependency: "direct main"
9494
description:
9595
name: cupertino_icons
96-
sha256: d57953e10f9f8327ce64a508a355f0b1ec902193f66288e8cb5070e7c47eeb2d
96+
sha256: ba631d1c7f7bef6b729a622b7b752645a2d076dba9976925b8f25725a30e1ee6
9797
url: "https://pub.dev"
9898
source: hosted
99-
version: "1.0.6"
99+
version: "1.0.8"
100100
fake_async:
101101
dependency: transitive
102102
description:
@@ -109,10 +109,10 @@ packages:
109109
dependency: transitive
110110
description:
111111
name: ffi
112-
sha256: "7bf0adc28a23d395f19f3f1eb21dd7cfd1dd9f8e1c50051c069122e6853bc878"
112+
sha256: "493f37e7df1804778ff3a53bd691d8692ddf69702cf4c1c1096a2e41b4779e21"
113113
url: "https://pub.dev"
114114
source: hosted
115-
version: "2.1.0"
115+
version: "2.1.2"
116116
file:
117117
dependency: transitive
118118
description:
@@ -259,10 +259,10 @@ packages:
259259
dependency: transitive
260260
description:
261261
name: mime
262-
sha256: e4ff8e8564c03f255408decd16e7899da1733852a9110a58fe6d1b817684a63e
262+
sha256: "2e123074287cc9fd6c09de8336dae606d1ddb88d9ac47358826db698c176a1f2"
263263
url: "https://pub.dev"
264264
source: hosted
265-
version: "1.0.4"
265+
version: "1.0.5"
266266
node_preamble:
267267
dependency: transitive
268268
description:
@@ -476,21 +476,29 @@ packages:
476476
url: "https://pub.dev"
477477
source: hosted
478478
version: "1.1.0"
479+
web:
480+
dependency: transitive
481+
description:
482+
name: web
483+
sha256: "97da13628db363c635202ad97068d47c5b8aa555808e7a9411963c533b449b27"
484+
url: "https://pub.dev"
485+
source: hosted
486+
version: "0.5.1"
479487
web_socket_channel:
480488
dependency: transitive
481489
description:
482490
name: web_socket_channel
483-
sha256: d88238e5eac9a42bb43ca4e721edba3c08c6354d4a53063afaa568516217621b
491+
sha256: "58c6666b342a38816b2e7e50ed0f1e261959630becd4c879c4f26bfa14aa5a42"
484492
url: "https://pub.dev"
485493
source: hosted
486-
version: "2.4.0"
494+
version: "2.4.5"
487495
webcrypto:
488496
dependency: "direct main"
489497
description:
490498
path: ".."
491499
relative: true
492500
source: path
493-
version: "0.5.5"
501+
version: "0.5.6"
494502
webdriver:
495503
dependency: transitive
496504
description:

lib/src/third_party/boringssl/generated_bindings.dart

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -324,9 +324,8 @@ class BoringSsl {
324324
}
325325

326326
late final _CBB_dataPtr = _lookup<
327-
ffi
328-
.NativeFunction<ffi.Pointer<ffi.Uint8> Function(ffi.Pointer<CBB>)>>(
329-
'CBB_data');
327+
ffi.NativeFunction<
328+
ffi.Pointer<ffi.Uint8> Function(ffi.Pointer<CBB>)>>('CBB_data');
330329
late final _CBB_data = _CBB_dataPtr.asFunction<
331330
ffi.Pointer<ffi.Uint8> Function(ffi.Pointer<CBB>)>();
332331

@@ -2706,9 +2705,8 @@ class BoringSsl {
27062705
}
27072706

27082707
late final _RAND_bytesPtr = _lookup<
2709-
ffi
2710-
.NativeFunction<ffi.Int Function(ffi.Pointer<ffi.Uint8>, ffi.Size)>>(
2711-
'RAND_bytes');
2708+
ffi.NativeFunction<
2709+
ffi.Int Function(ffi.Pointer<ffi.Uint8>, ffi.Size)>>('RAND_bytes');
27122710
late final _RAND_bytes =
27132711
_RAND_bytesPtr.asFunction<int Function(ffi.Pointer<ffi.Uint8>, int)>();
27142712

@@ -2993,6 +2991,7 @@ typedef BIGNUM = bignum_st;
29932991
typedef BN_CTX = bignum_ctx;
29942992
typedef BN_GENCB = bn_gencb_st;
29952993
typedef BN_ULONG = ffi.Uint64;
2994+
typedef DartBN_ULONG = int;
29962995
typedef CBB = cbb_st;
29972996
typedef CBS = cbs_st;
29982997

@@ -3004,6 +3003,7 @@ typedef CBS = cbs_st;
30043003
/// do that. Instead we statically assert that the size and native alignment of
30053004
/// a plain uint32_t and an _Atomic uint32_t are equal in refcount_c11.c.
30063005
typedef CRYPTO_refcount_t = ffi.Uint32;
3006+
typedef DartCRYPTO_refcount_t = int;
30073007
typedef DH = dh_st;
30083008
typedef DSA = dsa_st;
30093009
typedef ECDSA_SIG = ecdsa_sig_st;

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ dependencies:
3232
sdk: flutter
3333

3434
dev_dependencies:
35-
ffigen: ^9.0.0
35+
ffigen: ^11.0.0
3636
test: ^1.16.0
3737
yaml: ^3.0.0
3838
flutter_lints: ^3.0.1

0 commit comments

Comments
 (0)