X-Git-Url: https://git.saurik.com/apple/security.git/blobdiff_plain/80e2389990082500d76eb566d4946be3e786c3ef..d8f41ccd20de16f8ebe2ccc84d47bf1cb2b26bbb:/authd/credential.h diff --git a/authd/credential.h b/authd/credential.h deleted file mode 100644 index eb25b450..00000000 --- a/authd/credential.h +++ /dev/null @@ -1,54 +0,0 @@ -/* Copyright (c) 2012 Apple Inc. All rights reserved. */ - -#ifndef _SECURITY_AUTH_CREDENTIAL_H_ -#define _SECURITY_AUTH_CREDENTIAL_H_ - -#if defined(__cplusplus) -extern "C" { -#endif - -#ifdef __BLOCKS__ - typedef bool (^credential_iterator_t)(credential_t); -#endif /* __BLOCKS__ */ - -AUTH_WARN_RESULT AUTH_MALLOC AUTH_NONNULL_ALL AUTH_RETURNS_RETAINED -credential_t credential_create(uid_t); - -AUTH_WARN_RESULT AUTH_MALLOC AUTH_NONNULL_ALL AUTH_RETURNS_RETAINED -credential_t credential_create_with_credential(credential_t,bool); - -AUTH_WARN_RESULT AUTH_MALLOC AUTH_NONNULL_ALL AUTH_RETURNS_RETAINED -credential_t credential_create_with_right(const char *); - -AUTH_NONNULL_ALL -uid_t credential_get_uid(credential_t); - -AUTH_NONNULL_ALL -const char * credential_get_name(credential_t); - -AUTH_NONNULL_ALL -const char * credential_get_realname(credential_t); - -AUTH_NONNULL_ALL -CFAbsoluteTime credential_get_creation_time(credential_t); - -AUTH_NONNULL_ALL -bool credential_get_valid(credential_t); - -AUTH_NONNULL_ALL -bool credential_get_shared(credential_t); - -AUTH_NONNULL_ALL -bool credential_is_right(credential_t); - -AUTH_NONNULL_ALL -bool credential_check_membership(credential_t,const char*); - -AUTH_NONNULL_ALL -void credential_invalidate(credential_t); - -#if defined(__cplusplus) -} -#endif - -#endif /* !_SECURITY_AUTH_CREDENTIAL_H_ */