#[unsafe(no_mangle)]pub unsafe extern "C" fn policy_id(
descriptor: *const c_char,
) -> *mut c_charExpand description
Gets the policy id from a given descriptor.
- OUTPUT
String,StringFirst string is whether specifying a policy id is required. Second string is the policy id.
ยงSafety
- This function is unsafe because it dereferences and a returns raw pointer.
- ENSURE that result is passed into cstring_free(ptr: *mut c_char) after use.