policy_id

Function policy_id 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn policy_id( descriptor: *const c_char, ) -> *mut c_char
Expand description

Gets the policy id from a given descriptor.

  • OUTPUT
String,String

First 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.