#ifndef _SECURITY_SECKEYCHAINPRIV_H_
#define _SECURITY_SECKEYCHAINPRIV_H_
#include <Security/SecBase.h>
#if defined(__cplusplus)
extern "C" {
#endif
OSStatus SecKeychainCreateNew(SecKeychainRef keychainRef, UInt32 passwordLength, const char* inPassword);
OSStatus SecKeychainMakeFromFullPath(const char *fullPathName, SecKeychainRef *keychainRef);
OSStatus SecKeychainIsValid(SecKeychainRef keychainRef, Boolean* isValid);
OSStatus SecKeychainRemoveFromSearchList(SecKeychainRef keychain);
UInt16 SecKeychainListGetCount(void);
OSStatus SecKeychainListCopyKeychainAtIndex(UInt16 index, SecKeychainRef *keychainRef);
OSStatus SecKeychainListRemoveKeychain(SecKeychainRef *keychainRef);
OSStatus SecKeychainChangePassword(SecKeychainRef keychainRef, UInt32 oldPasswordLength, const void *oldPassword, UInt32 newPasswordLength, const void *newPassword);
OSStatus SecKeychainCopyLogin(SecKeychainRef *keychainRef);
OSStatus SecKeychainLogin(UInt32 nameLength, const void* name, UInt32 passwordLength, const void* password);
OSStatus SecKeychainLogout();
OSStatus SecKeychainResetLogin(UInt32 passwordLength, const void* password, Boolean resetSearchList);
OSStatus SecKeychainErrFromOSStatus(OSStatus osStatus);
#if defined(__cplusplus)
}
#endif
#endif