#include "ssclient.h"
#include <Security/Authorization.h>
extern "C" kern_return_t mig_deallocate(vm_address_t addr, vm_size_t size);
namespace Security {
using namespace SecurityServer;
typedef void *Data;
typedef void *Pointer;
typedef const char *CssmString;
typedef void *ContextAttributes;
typedef Context::Attr *ContextAttributesPointer;
typedef AclEntryPrototype *AclEntryPrototypePtr;
typedef AclEntryInfo *AclEntryInfoPtr;
typedef AclOwnerPrototype *AclOwnerPrototypePtr;
typedef AccessCredentials *AccessCredentialsPtr;
typedef DataWalkers::DLDbFlatIdentifier DLDbIdentBlob;
typedef DataWalkers::DLDbFlatIdentifier *DLDbIdentPtr;
typedef AuthorizationItemSet AuthorizationItemSetBlob;
typedef AuthorizationItemSet *AuthorizationItemSetPtr;
typedef void *AuthorizationHandle;
typedef CssmKey::Header CssmKeyHeader;
typedef const char *ExecutablePath;
inline Context &inTrans(CSSM_CONTEXT &arg) { return Context::overlay(arg); }
inline CssmKey &inTrans(CSSM_KEY &arg) { return CssmKey::overlay(arg); }
inline CSSM_KEY &outTrans(CssmKey &key) { return key; }
inline int mig_strncpy(char *dest, const char *src, int length)
{ return ::mig_strncpy(dest, const_cast<char *>(src), length); }
#define __AfterSendRpc(id, name) \
if (msg_result == MACH_MSG_SUCCESS && Out0P->Head.msgh_id == MACH_NOTIFY_DEAD_NAME) \
return MIG_SERVER_DIED;
#define UseStaticTemplates 0
}