"Fossies" - the Fresh Open Source Software Archive

Member "coda-6.9.5/coda-src/auth2/auth2.common.h" (26 Mar 2004, 1493 Bytes) of package /linux/misc/old/coda-6.9.5.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 /* BLURB gpl
    2 
    3                            Coda File System
    4                               Release 6
    5 
    6           Copyright (c) 1987-2003 Carnegie Mellon University
    7                   Additional copyrights listed below
    8 
    9 This  code  is  distributed "AS IS" without warranty of any kind under
   10 the terms of the GNU General Public Licence Version 2, as shown in the
   11 file  LICENSE.  The  technical and financial  contributors to Coda are
   12 listed in the file CREDITS.
   13 
   14                         Additional copyrights
   15                            none currently
   16 
   17 #*/
   18 
   19 #ifndef _AUTH2_COMMON_
   20 #define _AUTH2_COMMON_
   21 
   22 /* per-connection info */
   23 struct UserInfo
   24 {
   25     RPC2_Handle handle;
   26         int ViceId;     /* from NewConnection */
   27         int HasQuit;    /* TRUE iff Quit() was received on this connection */
   28         PRS_InternalCPS *UserCPS;
   29         int LastUsed;   /* timestamped at each RPC call; for gc'ing */
   30 };
   31 
   32 #ifdef HAVE_KRB4
   33 int Krb4ClientInit(void);
   34 int Krb4ServerInit(void);
   35 int Krb4GetSecret(char *hostname, char **identity, int *identitylen, 
   36            char **secret, int *secretlen, int interactive);
   37 int Krb4Validate(RPC2_CountedBS * cIdent, RPC2_EncryptionKey hKey, RPC2_EncryptionKey sKey);
   38 #endif
   39 
   40 #ifdef HAVE_KRB5
   41 int Krb5ClientInit(void);
   42 int Krb5ServerInit(void);
   43 int Krb5GetSecret(char *hostname, char **identity, int *identitylen, 
   44            char **secret, int *secretlen, int interactive);
   45 int Krb5Validate(RPC2_CountedBS * cIdent, RPC2_EncryptionKey hKey, RPC2_EncryptionKey sKey);
   46 #endif
   47 
   48 #endif