Skip to content

Commit 45f048b

Browse files
committed
linux/android adding few if_alg.h constants.
close #3329
1 parent df3f7c1 commit 45f048b

File tree

5 files changed

+11
-1
lines changed

5 files changed

+11
-1
lines changed

libc-test/build.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1863,7 +1863,8 @@ fn test_android(target: &str) {
18631863
| "NDA_NDM_FLAGS_MASK"
18641864
| "NDTPA_INTERVAL_PROBE_TIME_MS"
18651865
| "NFQA_UNSPEC"
1866-
| "NTF_EXT_LOCKED" => true,
1866+
| "NTF_EXT_LOCKED"
1867+
| "ALG_SET_DRBG_ENTROPY" => true,
18671868

18681869
_ => false,
18691870
}
@@ -3862,6 +3863,9 @@ fn test_linux(target: &str) {
38623863
// FIXME: Requires more recent kernel headers
38633864
"HWTSTAMP_TX_ONESTEP_P2P" if musl => true, // linux v5.6+
38643865

3866+
// FIXME: Requires linux 6.1
3867+
"ALG_SET_KEY_BY_KEY_SERIAL" | "ALG_SET_DRBG_ENTROPY" => true,
3868+
38653869
_ => false,
38663870
}
38673871
});

libc-test/semver/android.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ ALG_OP_DECRYPT
6161
ALG_OP_ENCRYPT
6262
ALG_SET_AEAD_ASSOCLEN
6363
ALG_SET_AEAD_AUTHSIZE
64+
ALG_SET_DRBG_ENTROPY
6465
ALG_SET_IV
6566
ALG_SET_KEY
6667
ALG_SET_OP

libc-test/semver/linux.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,10 @@ ALG_OP_DECRYPT
7171
ALG_OP_ENCRYPT
7272
ALG_SET_AEAD_ASSOCLEN
7373
ALG_SET_AEAD_AUTHSIZE
74+
ALG_SET_DRBG_ENTROPY
7475
ALG_SET_IV
7576
ALG_SET_KEY
77+
ALG_SET_KEY_BY_KEY_SERIAL
7678
ALG_SET_OP
7779
ALT_DIGITS
7880
AM_STR

src/unix/linux_like/android/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2745,6 +2745,7 @@ pub const ALG_SET_IV: ::c_int = 2;
27452745
pub const ALG_SET_OP: ::c_int = 3;
27462746
pub const ALG_SET_AEAD_ASSOCLEN: ::c_int = 4;
27472747
pub const ALG_SET_AEAD_AUTHSIZE: ::c_int = 5;
2748+
pub const ALG_SET_DRBG_ENTROPY: ::c_int = 6;
27482749

27492750
pub const ALG_OP_DECRYPT: ::c_int = 0;
27502751
pub const ALG_OP_ENCRYPT: ::c_int = 1;

src/unix/linux_like/linux/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3196,6 +3196,8 @@ pub const ALG_SET_IV: ::c_int = 2;
31963196
pub const ALG_SET_OP: ::c_int = 3;
31973197
pub const ALG_SET_AEAD_ASSOCLEN: ::c_int = 4;
31983198
pub const ALG_SET_AEAD_AUTHSIZE: ::c_int = 5;
3199+
pub const ALG_SET_DRBG_ENTROPY: ::c_int = 6;
3200+
pub const ALG_SET_KEY_BY_KEY_SERIAL: ::c_int = 7;
31993201

32003202
pub const ALG_OP_DECRYPT: ::c_int = 0;
32013203
pub const ALG_OP_ENCRYPT: ::c_int = 1;

0 commit comments

Comments
 (0)