Searched refs:outPrincipal (Results 1 - 9 of 9) sorted by relevance

/macosx-10.9.5/KerberosHelper-148/Tests/
H A Dkerberos-helper-tests.c33 CFStringRef localRealm = NULL, outPrincipal = NULL, outUsername = NULL, inUsername = NULL, hostName = NULL, hostNameDotLocal = NULL; local
94 err = KRBCopyServicePrincipal (krbHelper, CFSTR("afpserver"), &outPrincipal);
97 __KRBCreateUTF8StringFromCFString (outPrincipal, &output);
108 err = KRBCopyServicePrincipal (krbHelper, CFSTR("afpserver"), &outPrincipal);
111 __KRBCreateUTF8StringFromCFString (outPrincipal, &output);
122 err = KRBCopyServicePrincipal (krbHelper, CFSTR("afpserver"), &outPrincipal);
125 __KRBCreateUTF8StringFromCFString (outPrincipal, &output);
132 outPrincipal = CFDictionaryGetValue (outDict, kKRBClientPrincipalKey);
134 __KRBCreateUTF8StringFromCFString (outPrincipal, &output);
146 err = KRBCopyServicePrincipal (krbHelper, CFSTR("cifs"), &outPrincipal);
[all...]
/macosx-10.9.5/passwordserver_sasl-170/cyrus_sasl/mac/CommonKClient/mac_kclient3/Headers/TicketKeeper/
H A DTicketKeeper.h210 /* $Copyright: * * Copyright 1998-2000 by the Massachusetts Institute of Technology. * * All rights reserved. * * Export of this software from the United States of America may require a * specific license from the United States Government. It is the * responsibility of any person or organization contemplating export to * obtain such a license before exporting. * * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and distribute * this software and its documentation for any purpose and without fee is * hereby granted, provided that the above copyright notice appear in all * copies and that both that copyright notice and this permission notice * appear in supporting documentation, and that the name of M.I.T. not be * used in advertising or publicity pertaining to distribution of the * software without specific, written prior permission. Furthermore if you * modify this software you must label your software as modified software * and not distribute it in such a fashion that it might be confused with * the original MIT software. M.I.T. makes no representations about the * suitability of this software for any purpose. It is provided "as is" * without express or implied warranty. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF * MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * * Individual source code files are copyright MIT, Cygnus Support, * OpenVision, Oracle, Sun Soft, FundsXpress, and others. * * Project Athena, Athena, Athena MUSE, Discuss, Hesiod, Kerberos, Moira, * and Zephyr are trademarks of the Massachusetts Institute of Technology * (MIT). No commercial use of these trademarks may be made without prior * written permission of MIT. * * "Commercial use" means use of a name in a product or other for-profit * manner. It does NOT prevent a commercial firm from referring to the MIT * trademarks in order to convey information (although in doing so, * recognition of their trademark status should be given). * $ */ /* $Header: /Volumes/backup/dsmigrate/Dumps/../CVS/passwordserver_sasl/cyrus_sasl/mac/CommonKClient/mac_kclient3/Headers/TicketKeeper/TicketKeeper.h,v 1.4 2005/01/10 19:10:47 snsimon Exp $ */ #pragma once #include <Types.h> #include <Files.h> #include <Processes.h> #include <ConditionalMacros.h> #ifdef __cplusplus extern "C" { #endif #if PRAGMA_IMPORT #pragma import on #endif /* * TKAE_SendQuitApplication * * Send quit event to ticket keeper. This will cause Ticket Keeper to remove its * notification if it's up */ OSStatus TKAE_SendQuitApplication (); /* * TKAE_SendOpenApplication * * Send open event to ticket keeper. Thiw will launch ticket keeper, and it will * display its self-dismissing notification if there's a problem */ OSStatus TKAE_SendOpenApplication (); /* * TKAE_SendOpenApplicationNoNotification * * Send open event to Ticket Keeper. This will launch Ticket Keeper, and it will not * display its notification if there's a problem. It will stay running. */ OSStatus TKAE_SendOpenApplicationNoNotification (); /* * TKAE_SendOpenApplicationNoNotificationFSSpec * * Send open event to the copy of Ticket Keeper specified in inTKFileSpec. * This will launch Ticket Keeper, and it will not * display its notification if there's a problem. It will stay running. */ OSStatus TKAE_SendOpenApplicationNoNotificationFSSpec (FSSpec *inTKFileSpec); /* * TKAE_SendGetStatus * * Get status from Ticket Keeper */ OSStatus TKAE_SendGetStatus ( OSErr* outStatus); /* * IsTicketKeeperRunning * * Return true if TK is running, and fills out outPSN if the pointer is non-null. * Return false if TK is not running, and outPSN is unchanged. * */ Boolean IsTicketKeeperRunning (ProcessSerialNumber *outPSN); /* FindTicketKeeperInExtensions() Searches the startup volume for copies of Ticket Keeper and checks to see if any of them are in the Extensions Folder. If it finds one, returns true and fills out *tkSpec. If it doesn't find one or an error occurs, returns false and *tkSpec is unchanged. If the hard drive catalog changes during the search, continues anyway. Uses functions from MoreFiles. */ Boolean FindTicketKeeperInExtensions(FSSpec *tkSpec); /* TKAE_FindTargetTicketKeeper() Searches the startup volume to find the Ticket Keeper that would receive AppleEvents if any of the TicketKeeperLib functions that send AEs were called. First checks to see if TK is running, and returns the FSSpec of that one if it is. Next looks in the Extensions Folder. Finally it searches the drive for a copy. If a Ticket Keeper is found, returns true and fills out *tkSpec. If it doesn't find one or an error occurs, returns false and *tkSpec is unchanged. If the hard drive catalog changes during the search, continues anyway. */ Boolean TKAE_FindTargetTicketKeeper(FSSpec *tkSpec); #if !TARGET_API_MAC_CARBON /* Menu State functions Ticket Keeper provides information needed for menus presented by the Kerberos Control Strip and Kerberos Menu. */ struct MenuStateHeader; typedef struct MenuStateHeader MenuStateHeader; typedef MenuStateHeader** MenuState; /* TKMS_GetMenuState Returns the current menu state. Dispose with TKMS_DisposeMenuState */ OSErr TKMS_GetMenuState (MenuState* outMenuState); /* TKMS_DisposeMenuState Disposes the menu state. */ void TKMS_DisposeMenuState (MenuState outMenuState); /* TKMS_GetDefaultCacheExpiration Pass in the menu state returned by TKMS_GetMenuState Returns the expiration time of the default cache, in Mac epoch */ OSErr TKMS_GetDefaultCacheExpiration (MenuState inState, UInt32* outExpiration); /* TKMS_GetDefaultCacheLastChangeTime Pass in the menu state returned by TKMS_GetMenuState Returns the last change time of the default cache, in Mac epoch */ OSErr TKMS_GetDefaultCacheLastChangeTime (MenuState inState, UInt32* outChangeTime); /* TKMS_GetDefaultCachePrincipal Pass in the menu state returned by TKMS_GetMenuState Returns the principal of the default cache, realm removed if necessary */ OSErr TKMS_GetDefaultCachePrincipal (MenuState inState, Str255 outPrincipal); /* TKMS_GetDefaultCacheDisplayPrincipal Pass in the menu state returned by TKMS_GetMenuState Returns the principal of the default cache, quoting removed */ OSErr TKMS_GetDefaultCacheDisplayPrincipal (MenuState inState, Str255 outPrincipal); /* TKMS_GetDefaultCacheShortDisplayPrincipal Pass in the menu state returned by TKMS_GetMenuState Returns the principal of the default cache, quoting and default realm removed */ OSErr TKMS_GetDefaultCacheShortDisplayPrincipal (MenuState inState, Str255 outPrincipal); /* TKMS_GetDefaultCacheHasValidTickets Pass in the menu state returned by TKMS_GetMenuState Returns whether the default cache has valid tickets */ OSErr TKMS_GetDefaultCacheHasValidTickets (MenuState inState, Boolean* outValidTickets); /* TKMS_GetNumberOfCaches Pass in the menu state returned by TKMS_GetMenuState Returns the total number of caches in the list */ OSErr TKMS_GetNumberOfCaches (MenuState inState, UInt32* outNumCaches); /* TKMS_SortCachesAlphabetically Pass in the menu state returned by TKMS_GetMenuState Sorts the caches in the list alphabetically by principal */ OSErr TKMS_SortCachesAlphabetically ( MenuState inState); /* TKMS_GetCacheListChangeTime Pass in the menu state returned by TKMS_GetMenuState Returns the last change time of the cache list in Mac epoch */ OSErr TKMS_GetCacheListLastChangeTime (MenuState inState, UInt32* outChangeTime); /* TKMS_GetIndexedCachePrincipal Pass in the menu state returned by TKMS_GetMenuState Pass in index (zero based, less than value returned from TKMS_GetCachePrincipalForIndex) Returns the cache principal of the cache at the index */ OSErr TKMS_GetIndexedCachePrincipal (MenuState inState, UInt32 inIndex, Str255 outPrincipal); /* TKMS_GetIndexedCacheDisplayPrincipal Pass in the menu state returned by TKMS_GetMenuState Pass in index (zero based, less than value returned from TKMS_GetCachePrincipalForIndex) Returns the cache principal of the cache at the index, quoting removed */ OSErr TKMS_GetIndexedCacheDisplayPrincipal (MenuState inState, UInt32 inIndex, Str255 outPrincipal); /* TKMS_GetIndexedCacheShortDisplayPrincipal Pass in the menu state returned by TKMS_GetMenuState Pass in index (zero based, less than value returned from TKMS_GetCachePrincipalForIndex) Returns the cache principal of the cache at the index, quoting and default realm removed */ OSErr TKMS_GetIndexedCacheShortDisplayPrincipal (MenuState inState, UInt32 inIndex, Str255 outPrincipal); /* TKMS_GetIndexedCacheVersion Pass in the menu state returned by TKMS_GetMenuState Pass i (…)
/macosx-10.9.5/MITKerberosShim-62.1/
H A Dkll.c71 KLPrincipal *outPrincipal,
77 outPrincipal,
84 KLPrincipal *outPrincipal,
90 outPrincipal,
143 KLPrincipal *outPrincipal,
153 if (outPrincipal)
154 *outPrincipal = NULL;
214 if (ret == 0 && outPrincipal) {
224 heim_krb5_parse_name(milcontext, str, outPrincipal);
230 if (*outPrincipal
70 KLAcquireTickets(KLPrincipal inPrincipal, KLPrincipal *outPrincipal, char **outCredCacheName) argument
83 KLAcquireNewTickets(KLPrincipal inPrincipal, KLPrincipal *outPrincipal, char **outCredCacheName) argument
141 acquireticket_ui(KLPrincipal inPrincipal, KLLoginOptions inLoginOptions, KLPrincipal *outPrincipal, char **outCredCacheName) argument
242 KLAcquireInitialTickets(KLPrincipal inPrincipal, KLLoginOptions inLoginOptions, KLPrincipal *outPrincipal, char **outCredCacheName) argument
265 KLAcquireNewInitialTickets(KLPrincipal inPrincipal, KLLoginOptions inLoginOptions, KLPrincipal *outPrincipal, char **outCredCacheName) argument
437 KLRenewInitialTickets(KLPrincipal inPrincipal, KLLoginOptions inLoginOptions, KLPrincipal *outPrincipal, char **outCredCacheName) argument
624 KLCacheHasValidTickets(KLPrincipal inPrincipal, KLKerberosVersion inKerberosVersion, KLBoolean *outFoundValidTickets, KLPrincipal *outPrincipal, char **outCredCacheName) argument
917 KLCreatePrincipalFromTriplet(const char *inName, const char *inInstance, const char *inRealm, KLPrincipal *outPrincipal) argument
927 KLCreatePrincipalFromString(const char *inFullPrincipal, KLKerberosVersion inKerberosVersion, KLPrincipal *outPrincipal) argument
942 KLCreatePrincipalFromKerberos5Principal(void *inKerberos5Principal, KLPrincipal *outPrincipal) argument
951 KLCreatePrincipalFromPrincipal(KLPrincipal inPrincipal, KLPrincipal *outPrincipal) argument
1202 __KLCreatePrincipalFromTriplet(const char *inName, const char *inInstance, const char *inRealm, KLKerberosVersion inKerberosVersion, KLPrincipal *outPrincipal) argument
1228 __KLCreatePrincipalFromKerberos5Principal(krb5_principal inPrincipal, KLPrincipal *outPrincipal) argument
[all...]
H A DKrb4DeprecatedAPIs.c851 OSStatus KClientGetClientPrincipal (KClientSession inSession, KClientPrincipal *outPrincipal) argument
861 OSStatus KClientGetServerPrincipal (KClientSession inSession, KClientPrincipal *outPrincipal) argument
1021 OSStatus KClientV4StringToPrincipal (const char *inPrincipalString, KClientPrincipal *outPrincipal) argument
/macosx-10.9.5/MITKerberosShim-62.1/PrivateKerberos/
H A DKerberosLoginPrivate.h85 KLPrincipal *outPrincipal);
94 KLPrincipal *outPrincipal);
/macosx-10.9.5/MITKerberosShim-62.1/Kerberos/
H A DKerberosLogin.h213 KLPrincipal *outPrincipal,
218 KLPrincipal *outPrincipal,
244 KLPrincipal *outPrincipal,
250 KLPrincipal *outPrincipal,
318 KLPrincipal *outPrincipal,
335 KLPrincipal *outPrincipal,
452 KLPrincipal *outPrincipal)
458 KLPrincipal *outPrincipal)
463 KLPrincipal *outPrincipal)
468 KLPrincipal *outPrincipal)
[all...]
/macosx-10.9.5/MITKerberosShim-62.1/include/
H A Dmit-KerberosLogin.h202 KLPrincipal *outPrincipal,
207 KLPrincipal *outPrincipal,
233 KLPrincipal *outPrincipal,
238 KLPrincipal *outPrincipal,
288 KLPrincipal *outPrincipal,
300 KLPrincipal *outPrincipal,
382 KLPrincipal *outPrincipal);
386 KLPrincipal *outPrincipal);
389 KLPrincipal *outPrincipal);
392 KLPrincipal *outPrincipal);
[all...]
/macosx-10.9.5/passwordserver_sasl-170/cyrus_sasl/mac/CommonKClient/mac_kclient3/Headers/KerberosLogin/
H A DKerberosLogin.h259 /* * KerberosLogin.h * * $Header: /Volumes/backup/dsmigrate/Dumps/../CVS/passwordserver_sasl/cyrus_sasl/mac/CommonKClient/mac_kclient3/Headers/KerberosLogin/KerberosLogin.h,v 1.4 2005/01/10 19:17:29 snsimon Exp $ * */ /* * This file contains part of the login library API. See * <http://web.mit.edu/macdev/mit/lib/Login/doc/API.html> * for API documentation */ #ifndef __KERBEROSLOGIN__ #define __KERBEROSLOGIN__ /* * * Constants * */ /* Kerberos versions */ enum KLEKerberosVersion { kerberosVersion_Any = 0, kerberosVersion_V4 = 1, kerberosVersion_V5 = 2, kerberosVersion_All = 0xFFFFFFFF }; /* dialog identifier constants */ enum KLEDialogIdentifiers { loginLibrary_LoginDialog, loginLibrary_OptionsDialog, loginLibrary_ChangePasswordDialog, loginLibrary_ProgressDialog, loginLibrary_PrompterDialog }; /* Login dialog items */ enum KLELoginDialogItems { loginDialog_Username, loginDialog_Password, loginDialog_Realm, loginDialog_TicketLifetime, loginDialog_ForwardableTicket }; /* Password dialog items */ enum KLEChangePasswordDialogItems { changePasswordDialog_OldPassword, changePasswordDialog_NewPassword, changePasswordDialog_VerifyPassword }; /* Option identifier constants */ enum KLEDefaultLoginOptions { /* Dialog state options */ loginOption_LoginName = 'name', loginOption_LoginInstance = 'inst', loginOption_AdvancedLoginMode = 'adv ', loginOption_ShowTicketLifetime = 'life', loginOption_ShowForwardableTicket = 'forw', loginOption_ShowProxiableTicket = 'prox', /* Initial values and ranges */ loginOption_RememberPrincipal = 'prin', loginOption_RememberExtras = 'extr', loginOption_MinimalTicketLifetime = '-lif', loginOption_MaximalTicketLifetime = '+lif', loginOption_DefaultTicketLifetime = '0lif', loginOption_LongTicketLifetimeDisplay = 'hms ', loginOption_DefaultForwardableTicket = '0fwd', loginOption_DefaultProxiableTicket = '0prx' }; /* Login mode identifier constants (for loginOption_AdvancedLoginMode) */ enum KLELoginMode { loginMode_Basic = 1, loginMode_Advanced = 2 }; /* Realm list constants */ enum KLERealmListIndexes { realmList_Start = 0, realmList_End = 0xFFFF }; #define klFirstError 19276 #define klLastError 19876 /* Error codes */ enum KLEStatus { klNoErr = 0, /* parameter errors */ klParameterErr = 19276, klBadPrincipalErr, klBadPasswordErr, klBadLoginOptionsErr, klInvalidVersionErr, /* Runtime Login errors */ klUserCanceledErr = 19476, klMemFullErr, klPreferencesReadErr, klPreferencesWriteErr, klV5InitializationFailedErr, klPrincipalDoesNotExistErr, klSystemDefaultDoesNotExistErr, klCredentialsExpiredErr, klNoRealmsErr, klRealmDoesNotExistErr, klNoCredentialsErr, klCredentialsBadAddressErr, klCacheDoesNotExistErr, /* Get/SetKerberosOption errors */ klBufferTooSmallErr = 19376, klBufferTooLargeErr, klInvalidOptionErr, klBadOptionValueErr, /* Password changing errors */ klPasswordMismatchErr = 19576, klInsecurePasswordErr, klPasswordChangeFailedErr, /* Dialog errors */ klDialogDoesNotExistErr = 19676, klDialogAlreadyExistsErr, klNotInForegroundErr, klNoAppearanceErr, klFatalDialogErr, klCarbonUnavailableErr, /* Login IPC errors */ klCantContactServerErr = 19776 }; #ifndef rez /* This stuff will confuse rez */ #include <KerberosSupport/KerberosConditionalMacros.h> #if TARGET_API_MAC_OSX && TARGET_API_MAC_CARBON #include <Carbon/Carbon.h> #elif TARGET_API_MAC_OS8 || TARGET_API_MAC_CARBON #include <Dialogs.h> #include <Events.h> #include <MacTypes.h> #else #error "Unknown OS" #endif #if PRAGMA_ONCE #pragma once #endif #if PRAGMA_IMPORT #pragma import on #endif #ifdef __cplusplus extern "C" { #endif #if PRAGMA_STRUCT_ALIGN #pragma options align=mac68k #elif PRAGMA_STRUCT_PACKPUSH #pragma pack(push, 2) #elif PRAGMA_STRUCT_PACK #pragma pack(2) #endif /* * * Types * */ typedef OSStatus KLStatus; /* one of KLEStatus */ typedef UInt32 KLKerberosVersion; /* one of KLEKerberosVersion */ typedef UInt32 KLDefaultLoginOption; /* one of KLEDefaultLoginOptions */ typedef UInt32 KLLoginMode; /* one of KLELoginMode */ typedef UInt32 KLDialogIdentifier; /* one of KLEDialogIdentifiers */ typedef UInt32 KLIndex; /* index (used for the realm list) */ typedef UInt32 KLLifetime; /* Lifetime in seconds */ typedef UInt32 KLTime; /* Unix time (seconds since 1/1/1970 00:00:00 GMT) */ typedef UInt32 KLSize; /* size of a buffer (KLG/SetDefaultLoginOptions) or realm list (CountKerberosRealms) */ typedef UInt32 KLRefCon; /* application ref con */ typedef Boolean KLBoolean; /* true or false! */ typedef SInt16 KLSInt16; /* used for Darwin-compat for KLApplicationOptions */ /* Callback API for Kerberos Login event filter */ /* Must be the same as an Idle Library event filter */ /* Callback API for Event handler proc for idle loop */ typedef CALLBACK_API (Boolean, KLEventFilterProcPtr) (const EventRecord *theEvent, KLRefCon appData); /* Procinfo for Login Library event filter */ enum { uppKLEventFilterProcInfo = kPascalStackBased | RESULT_SIZE (sizeof (Boolean)) | STACK_ROUTINE_PARAMETER (1, SIZE_CODE (sizeof (const EventRecord *))) | STACK_ROUTINE_PARAMETER (2, SIZE_CODE (sizeof (KLRefCon))) }; #if !TARGET_API_MAC_CARBON /* UPP for Kerberos Login event filter */ typedef STACK_UPP_TYPE (KLEventFilterProcPtr) KLEventFilterUPP; #define NewKLEventFilterProc(userRoutine) \ (KLEventFilterUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppKLEventFilterProcInfo, GetCurrentArchitecture()) /* How to call the event Handler UPPs */ #define CallKLEventFilterProc(userRoutine, theEvent, appData) \ ((Boolean)CALL_TWO_PARAMETER_UPP ((userRoutine), uppKLEventFilterProcInfo, theEvent, appData)) #else typedef KLEventFilterProcPtr KLEventFilterUPP; #define NewKLEventFilterProc(userRoutine) \ userRoutine #define CallKLEventFilterProc(userRoutine, theEvent, appData) \ ((userRoutine) (theEvent, appData)) #endif /* Application options */ typedef struct { KLEventFilterUPP eventFilter; KLRefCon eventFilterAppData; KLSInt16 realmsPopupMenuID; KLSInt16 loginModeMenuID; } KLApplicationOptions; /* Principal information */ struct OpaqueKLPrincipal; typedef struct OpaqueKLPrincipal * KLPrincipal; /* Login Options */ struct OpaqueKLLoginOptions; typedef struct OpaqueKLLoginOptions * KLLoginOptions; /* * * Functions * */ /* Kerberos Login high-level API */ KLStatus KLAcquireTickets ( KLPrincipal inPrincipal, KLPrincipal *outPrincipal, char **outCredCacheName); KLStatus KLAcquireNewTickets ( KLPrincipal inPrincipal, KLPrincipal *outPrincipal, char **outCredCacheName); KLStatus KLDestroyTickets (KLPrincipal inPrincipal); KLStatus KLChangePassword (KLPrincipal inPrincipal); /* Kerberos Login dialog low level functions */ KLStatus KLAcquireTicketsWithPassword ( KLPrincipal inPrincipal, KLLoginOptions inLoginOptions, const char *inPassword, char **outCredCacheName); KLStatus KLAcquireNewTicketsWithPassword ( KLPrincipal inPrincipal, KLLoginOptions inLoginOptions, const char *inPassword, char **outCredCacheName); KLStatus KLLastChangedTime (KLTime *outLastChangedTime); KLStatus KLCacheHasValidTickets ( KLPrincipal inPrincipal, KLKerberosVersion inKerberosVersion, KLBoolean *outFoundValidTickets, KLPrincipal *outPrincipal, char **outCredCacheName); KLStatus KLTicketStartTime ( KLPrincipal inPrincipal, KLKerberosVersion inKerberosVersion, KLTime *outStartTime); KLStatus KLTicketExpirationTime ( KLPrincipal inPrincipal, KLKerberosVersion inKerberosVersion, KLTime *outExpirationTime); KLStatus KLSetSystemDefaultCache (KLPrincipal inPrincipal); KLStatus KLHandleError ( KLStatus inError, KLDialogIdentifier inDialogIdentifier, Boolean inShowAlert); KLStatus KLGetErrorString ( KLStatus inError, char **outErrorString); KLStatus KLCancelAllDialogs (void); /* Kerberos change password dialog low level functions */ KLStatus KLChangePasswordWithPasswords ( KLPrincipal inPrincipal, const char *inOldPassword, const char *inNewPassword); /* Application Configuration functions */ KLStatus KLSetApplicationOptions (const KLApplicationOptions *inAppOptions); KLStatus KLGetApplicationOptions (KLApplicationOptions *outAppOptions); /* Library configuration functions */ KLStatus KLGetDefaultLoginOption ( const KLDefaultLoginOption inOption, void *ioBuffer, KLSize *ioBufferSize); KLStatus KLSetDefaultLoginOption ( const KLDefaultLoginOption inOption, const void *inBuffer, const KLSize inBufferSize); /* Realm configuration functions */ KLStatus KLFindKerberosRealmByName ( const char *inRealmName, KLIndex *outIndex); KLStatus KLGetKerberosRealm ( KLIndex inIndex, char **outRealmName); KLStatus KLSetKerberosRealm ( KLIndex inIndex, const char *inRealmName); KLStatus KLRemoveKerberosRealm (UInt32 inIndex); KLStatus KLInsertKerberosRealm ( KLIndex inInsertBeforeIndex, const char *inRealmName); KLStatus KLRemoveAllKerberosRealms (void); KLSize KLCountKerberosRealms (void); KLStatus KLGetKerberosDefaultRealm(KLIndex *outIndex); KLStatus KLGetKerberosDefaultRealmByName (char **outRealmName); KLStatus KLSetKerberosDefaultRealm (KLIndex inIndex); KLStatus KLSetKerberosDefaultRealmByName (const char *inRealm); /* KLPrincipal functions */ KLStatus KLCreatePrincipalFromTriplet( const char *inName, const char *inInstance, const char *inRealm, KLPrincipal *outPrincipal); KLStatus KLCreatePrincipalFromString( const char *inFullPrincipal, KLKerberosVersion inKerberosVersion, KLPrincipal *outPrincipal); KLStatus KLGetTripletFromPrincipal( KLPrincipal inPrincipal, char **outName, cha (…)
/macosx-10.9.5/passwordserver_sasl-170/cyrus_sasl/mac/CommonKClient/mac_kclient3/Headers/KClient/
H A DKClient.h92 /* * KClient 3.0 API declarations * See KClient30-API.html * * $Header: /Volumes/backup/dsmigrate/Dumps/../CVS/passwordserver_sasl/cyrus_sasl/mac/CommonKClient/mac_kclient3/Headers/KClient/KClient.h,v 1.4 2005/01/10 19:17:31 snsimon Exp $ */ #ifndef __KCLIENT__ #define __KCLIENT__ /* Constants */ enum { /* No error */ kcNoError = 0, /* General runtime errors */ kcErrNoMemory = 23000, kcErrBadParam, /* Various invalid structures */ kcErrInvalidSession = 23010, kcErrInvalidPrincipal, kcErrInvalidAddress, kcErrInvalidFile, /* Missing required settings in the session */ kcErrNoClientPrincipal = 23020, kcErrNoServerPrincipal, kcErrNoLocalAddress, kcErrNoRemoteAddress, kcErrNoSessionKey, kcErrNoServiceKey, kcErrNoChecksum, kcErrNotLoggedIn = 23030, kcErrUserCancelled, kcErrIncorrectPassword, kcErrBufferTooSmall = 23040, kcErrKeyFileAccess, kcErrFileNotFound, kcErrInvalidPreferences, kcErrChecksumMismatch, kcFirstKerberosError = 20000, kcLastKerberosError = kcFirstKerberosError + 256 }; #ifndef rez #include <KerberosSupport/KerberosSupport.h> #include <CredentialsCache/CredentialsCache.h> #include <KerberosProfile/KerberosProfile.h> #include <KerberosDES/KerberosDES.h> #include <KClient/KClientTypes.h> #if TARGET_API_MAC_OSX && TARGET_API_MAC_CARBON #include <CoreServices/CoreServices.h> #elif TARGET_API_MAC_OS8 || TARGET_API_MAC_CARBON #include <Files.h> #else #error "Unknown OS" #endif #ifdef __cplusplus extern "C" { #endif /* Functions */ OSStatus KClientGetVersion ( UInt16* outMajorVersion, UInt16* outMinorVersion, const char** outVersionString); /* Initialization / destruction */ OSStatus KClientNewClientSession ( KClientSession* outSession); OSStatus KClientNewServerSession ( KClientSession* inSession, KClientPrincipal inService); OSStatus KClientDisposeSession ( KClientSession inSession); /* Accessing session properties */ OSStatus KClientGetClientPrincipal ( KClientSession inSession, KClientPrincipal* outPrincipal); OSStatus KClientSetClientPrincipal ( KClientSession inSession, KClientPrincipal inPrincipal); OSStatus KClientGetServerPrincipal ( KClientSession inSession, KClientPrincipal* outPrincipal); OSStatus KClientSetServerPrincipal ( KClientSession inSession, KClientPrincipal inPrincipal); OSStatus KClientGetLocalAddress ( KClientSession inSession, KClientAddress* outLocalAddress); OSStatus KClientSetLocalAddress ( KClientSession inSession, const KClientAddress* inLocalAddress); OSStatus KClientGetRemoteAddress ( KClientSession inSession, KClientAddress* outRemoteAddress); OSStatus KClientSetRemoteAddress ( KClientSession inSession, const KClientAddress* inRemoteAddress); OSStatus KClientGetSessionKey ( KClientSession inSession, KClientKey* outKey); OSStatus KClientGetExpirationTime ( KClientSession inSession, UInt32* outExpiration); OSStatus KClientSetKeyFile ( KClientSession inSession, const KClientFile* inKeyFile); /* Logging in and out (client) */ OSStatus KClientLogin ( KClientSession inSession); OSStatus KClientPasswordLogin ( KClientSession inSession, const char* inPassword); OSStatus KClientKeyFileLogin ( KClientSession inSession); /*OSStatus KClientKeyLogin ( KClientSession inSession, const KClientKey* inKey);*/ OSStatus KClientLogout ( KClientSession inSession); /* Accessing service keys (server) */ OSStatus KClientGetServiceKey ( KClientSession inSession, UInt32 inVersion, KClientKey* outKey); OSStatus KClientAddServiceKey ( KClientSession inSession, UInt32 inVersion, const KClientKey* inKey); /* Authenticating to a service (client) */ OSStatus KClientGetTicketForService ( KClientSession inSession, UInt32 inChecksum, void* outBuffer, UInt32* ioBufferLength); OSStatus KClientGetAuthenticatorForService ( KClientSession inSession, UInt32 inChecksum, const char* inApplicationVersion, void* outBuffer, UInt32* ioBufferLength); OSStatus KClientVerifyEncryptedServiceReply ( KClientSession inSession, const void* inBuffer, UInt32 inBufferLength); OSStatus KClientVerifyProtectedServiceReply ( KClientSession inSession, const void* inBuffer, UInt32 inBufferLength); /* Authenticating a client (server) */ OSStatus KClientVerifyAuthenticator ( KClientSession inSession, const void* inBuffer, UInt32 inBufferLength); OSStatus KClientGetEncryptedServiceReply ( KClientSession inSession, void* outBuffer, UInt32* ioBufferSize); OSStatus KClientGetProtectedServiceReply ( KClientSession inSession, void* outBuffer, UInt32* ioBufferSize); /* Communicating between a server and a client */ OSStatus KClientEncrypt ( KClientSession inSession, const void* inPlainBuffer, UInt32 inPlainBufferLength, void* outEncryptedBuffer, UInt32* ioEncryptedBufferLength); OSStatus KClientDecrypt ( KClientSession inSession, void* inEncryptedBuffer, UInt32 inDecryptedBufferLength, UInt32* outPlainOffset, UInt32* outPlainLength); OSStatus KClientProtectIntegrity ( KClientSession inSession, const void* inPlainBuffer, UInt32 inPlainBufferLength, void* outProtectedBuffer, UInt32* ioProtectedBufferLength); OSStatus KClientVerifyIntegrity ( KClientSession inSession, void* inProtectedBuffer, UInt32 inProtectedBufferLength, UInt32* outPlainOffset, UInt32* outPlainLength); /* Miscellaneous */ OSStatus KClientPasswordToKey ( KClientSession inSession, const char* inPassword, KClientKey* outKey); /* Getting to other APIs */ OSStatus KClientGetCCacheReference ( KClientSession inSession, cc_ccache_t* outCCacheReference); OSStatus KClientGetProfileHandle ( KClientSession inSession, profile_t* outProfileHandle); /* Principal manipulation */ OSStatus KClientV4StringToPrincipal ( const char* inPrincipalString, KClientPrincipal* outPrincipal); OSStatus KClientPrincipalToV4String ( KClientPrincipal inPrincipal, char* outPrincipalS (…)

Completed in 143 milliseconds