1 /*
\r * KClient 1.9 deprecated API
\r *
\r * $Header: /afs/andrew/system/cvs/src/sasl/mac/CommonKClient/mac_kclient3/Headers/KClientCompat/KClientCompat.h,v 1.2 2001/12/04 02:05:40 rjs3 Exp $
\r */
\r\r#ifndef __KCLIENTCOMPAT__
\r#define __KCLIENTCOMPAT__
\r\r/* Constants */
\r\r/* Error codes, only listing the ones actually returned by the library */
\renum {
\r cKrbMapDoesntExist = -1020, /* tried to access a map that doesn't exist (index too large, or criteria doesn't match anything) */
\r cKrbSessDoesntExist = -1019, /* tried to access a session that doesn't exist */
\r cKrbCredsDontExist = -1018, /* tried to access credentials that don't exist */
\r cKrbUserCancelled = -1016, /* user cancelled a log in operation */
\r cKrbConfigurationErr = -1015, /* Kerberos Preference file is not configured properly */
\r cKrbServerRejected = -1014, /* A server rejected our ticket */
\r cKrbServerImposter = -1013, /* Server appears to be a phoney */
\r cKrbServerRespIncomplete = -1012, /* Server response is not complete */
\r cKrbNotLoggedIn = -1011, /* Returned by cKrbGetUserName if user is not logged in */
\r cKrbAppInBkgnd = -1008, /* driver won't put up password dialog when in background */
\r cKrbInvalidSession = -1007, /* invalid structure passed to KClient/KServer routine */
\r \r cKrbKerberosErrBlock = -20000 /* start of block of 256 kerberos error numbers */
\r};
\r\r#ifndef rez
\r\r#if PRAGMA_ONCE
\r#pragma once
\r#endif /* PRAGMA_ONCE */
\r\r#include <Kerberos4/Kerberos4.h>
\r#include <KClient/KClientTypes.h>
\r\r#ifdef __cplusplus
\rextern "C" {
\r#endif
\r\rtypedef KClientSession KClientSessionInfo;
\r\renum {
\r KClientLoggedIn,
\r KClientNotLoggedIn
\r};
\r\rOSErr KClientVersionCompat (
\r SInt16* outMajorVersion,
\r SInt16* outMinorVersion,
\r char* outVersionString);
\r\rOSErr KClientNewSessionCompat (
\r KClientSessionInfo* inSession,
\r UInt32 inLocalAddress,
\r UInt16 inLocalPort,
\r UInt32 inRemoteAddress,
\r UInt16 inRemotePort);
\r \rOSErr KClientDisposeSessionCompat (
\r KClientSessionInfo* inSession);
\r \rOSErr KClientGetTicketForServiceCompat (
\r KClientSessionInfo* inSession,
\r char* inService,
\r void* inBuffer,
\r UInt32* outBufferLength);
\r \rOSErr KClientGetTicketForServiceWithChecksumCompat (
\r KClientSessionInfo* inSession,
\r UInt32 inChecksum,
\r char* inService,
\r void* inBuffer,
\r UInt32* outBufferLength);
\r \rOSErr KClientLoginCompat (
\r KClientSessionInfo* inSession,
\r KClientKey* outPrivateKey);
\r \rOSErr KClientPasswordLoginCompat (
\r KClientSessionInfo* inSession,
\r char* inPassword,
\r KClientKey* outPrivateKey);
\r \rOSErr KClientLogoutCompat (void);
\r\rSInt16 KClientStatusCompat (void);
\r\rOSErr KClientGetSessionKeyCompat (
\r KClientSessionInfo* inSession,
\r KClientKey* outSessionKey);
\r \rOSErr KClientEncryptCompat (
\r KClientSessionInfo* inSession,
\r void* inPlainBuffer,
\r UInt32 inPlainBufferLength,
\r void* outEncryptedBuffer,
\r UInt32* ioEncryptedBufferLength);
\r \rOSErr KClientDecryptCompat (
\r KClientSessionInfo* inSession,
\r void* inEncryptedBuffer,
\r UInt32 inEncryptedBufferLength,
\r UInt32* outPlainBufferOffset,
\r UInt32* outPlainBufferLength);
\r\rOSErr KClientProtectIntegrityCompat (
\r KClientSessionInfo* inSession,
\r void* inPlainBuffer,
\r UInt32 inPlainBufferLength,
\r void* outProtectedBuffer,
\r UInt32* ioProtectedBufferLength);
\r\rOSErr KClientVerifyIntegrityCompat (
\r KClientSessionInfo* inSession,
\r void* inProtectedBuffer,
\r UInt32 inProtectedBufferLength,
\r UInt32* outPlainBufferOffset,
\r UInt32* outPlainBufferLength);
\r\rOSErr KServerNewSessionCompat (
\r KClientSessionInfo* inSession,
\r char* inService,
\r UInt32 inLocalAddress,
\r UInt16 inLocalPort,
\r UInt32 inRemoteAddress,
\r UInt16 inRemotePort);
\r\rOSErr KServerVerifyTicketCompat (
\r KClientSessionInfo* inSession,
\r void* inBuffer,
\r char* inFilename);
\r \rOSErr KServerGetReplyTicketCompat (
\r KClientSessionInfo* inSession,
\r void* outBuffer,
\r UInt32* ioBufferLength);
\r \rOSErr KServerAddKeyCompat (
\r KClientSessionInfo* inSession,
\r KClientKey* inPrivateKey,
\r char* inService,
\r SInt32 inVersion,
\r char* inFilename);
\r \rOSErr KServerGetKeyCompat (
\r KClientSessionInfo* inSession,
\r KClientKey* outPrivateKey,
\r char* inService,
\r SInt32 inVersion,
\r char* inFilename);
\r\rOSErr KServerGetSessionTimeRemainingCompat (
\r KClientSessionInfo* inSession,
\r SInt32* outSeconds);
\r \rOSErr KClientGetSessionUserNameCompat (
\r KClientSessionInfo* inSession,
\r char* outUserName,
\r SInt16 inNameType);
\r\rOSErr KClientMakeSendAuthCompat (
\r KClientSessionInfo* inSession,
\r char* inService,
\r void* outBuffer,
\r UInt32* ioBufferLength,
\r SInt32 inChecksum,
\r char* inApplicationVersion);
\r \rOSErr KClientVerifyReplyTicketCompat (
\r KClientSessionInfo* inSession,
\r void* inBuffer,
\r UInt32* ioBufferLength);
\r \rOSErr KClientVerifyUnencryptedReplyTicketCompat (
\r KClientSessionInfo* inSession,
\r void* inBuffer,
\r UInt32* ioBufferLength);
\r\r#ifdef __cplusplus
\r}
\r#endif
\r\r#endif /* !rez */
\r\r#endif /* __KCLIENTCOMPAT__ */