diff --git a/CHANGELOG.md b/CHANGELOG.md index 4170ce26ee..5177c683f8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # v136.0 (In progress) +### `rc_crypto` +- New low level bindings for dealing with primary password. + [Full Changelog](In progress) # v135.0 (_2025-01-06_) diff --git a/components/support/rc_crypto/nss/nss_sys/src/bindings/pk11pub.rs b/components/support/rc_crypto/nss/nss_sys/src/bindings/pk11pub.rs index 48ef60dcc9..3083596d4b 100644 --- a/components/support/rc_crypto/nss/nss_sys/src/bindings/pk11pub.rs +++ b/components/support/rc_crypto/nss/nss_sys/src/bindings/pk11pub.rs @@ -9,6 +9,9 @@ extern "C" { pub fn PK11_FreeSlot(slot: *mut PK11SlotInfo); pub fn PK11_GetInternalSlot() -> *mut PK11SlotInfo; pub fn PK11_GetInternalKeySlot() -> *mut PK11SlotInfo; + pub fn PK11_NeedUserInit(slot: *mut PK11SlotInfo) -> PRBool; + pub fn PK11_NeedLogin(slot: *mut PK11SlotInfo) -> PRBool; + pub fn PK11_CheckUserPassword(slot: *mut PK11SlotInfo, password: *const c_char) -> SECStatus; pub fn PK11_GenerateRandom(data: *mut c_uchar, len: c_int) -> SECStatus; pub fn PK11_FreeSymKey(key: *mut PK11SymKey); pub fn PK11_InitPin( @@ -41,6 +44,7 @@ extern "C" { isPerm: PRBool, wincx: *mut c_void, ) -> *mut PK11SymKey; + pub fn PK11_SetSymKeyNickname(key: *mut PK11SymKey, name: *const c_char) -> SECStatus; pub fn PK11_Derive( baseKey: *mut PK11SymKey, mechanism: CK_MECHANISM_TYPE,