Acquires a new credential using a password or certificate.
- iOS 5.0+
- macOS 10.7+
- Mac Catalyst 13.0+
The name to use to acquire the credential. Import the name using
gss. Ensure that the mechanism specified by the
_import _name(_: _: _: _:)
desiredparameter supports the name type.
An error pointer that the function sets to point at a new error object if the function call fails. Pass
NULLto ignore this error. When an error does exist, it describes the reason for the failure, and you are responsible for releasing it with
A status code set to
GSS if the call succeeds, or some other value indicating the reason for failure if not.
Don't call this function on a UI update thread because it may block on network activity.