SessionGetInfo

Function SessionGetInfo 

Source
pub unsafe extern "C-unwind" fn SessionGetInfo(
    session: SecuritySessionId,
    session_id: *mut SecuritySessionId,
    attributes: *mut SessionAttributeBits,
) -> i32
Available on crate feature AuthSession only.
Expand description

Obtain information about a session. You can ask about any session whose identifier you know. Use the callerSecuritySession constant to ask about your own session (the one your process is in).

Parameter session: (input) The Session you are asking about. Can be one of the special constants defined above.

Parameter sessionId: (output/optional) The actual SecuritySessionId for the session you asked about. Will never be one of those constants.

Parameter attributes: (output/optional) Receives the attribute bits for the session.

Returns: An OSStatus indicating success (errSecSuccess) or an error cause.

errSessionInvalidId -60500 Invalid session id specified

ยงSafety

  • session_id must be a valid pointer or null.
  • attributes must be a valid pointer or null.