Skip to content

Commit bece2e8

Browse files
committed
Swift: Add models for sqlite3 C API.
1 parent 9a628d4 commit bece2e8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

swift/ql/lib/codeql/swift/security/HardcodedEncryptionKeyExtensions.qll

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,11 @@ private class EncryptionKeySinks extends SinkModelCsv {
7171
";Realm.Configuration;true;init(fileURL:inMemoryIdentifier:syncConfiguration:encryptionKey:readOnly:schemaVersion:migrationBlock:deleteRealmIfMigrationNeeded:shouldCompactOnLaunch:objectTypes:);;;Argument[3];encryption-key",
7272
";Realm.Configuration;true;init(fileURL:inMemoryIdentifier:syncConfiguration:encryptionKey:readOnly:schemaVersion:migrationBlock:deleteRealmIfMigrationNeeded:shouldCompactOnLaunch:objectTypes:seedFilePath:);;;Argument[3];encryption-key",
7373
";Realm.Configuration;true;encryptionKey;;;PostUpdate;encryption-key",
74+
// sqlite3 C API (Encryption Extension)
75+
";;false;sqlite3_key(_:_:_:);;;Argument[1];encryption-key",
76+
";;false;sqlite3_rekey(_:_:_:);;;Argument[1];encryption-key",
77+
";;false;sqlite3_key_v2(_:_:_:_:);;;Argument[2];encryption-key",
78+
";;false;sqlite3_rekey_v2(_:_:_:_:);;;Argument[2];encryption-key",
7479
]
7580
}
7681
}

0 commit comments

Comments
 (0)