Annotation of parser3/src/sql/pgsql/PgSQL32/include/fe-auth.h, revision 1.1

1.1     ! parser      1: /*-------------------------------------------------------------------------
        !             2:  *
        !             3:  * fe-auth.h
        !             4:  *
        !             5:  *       Definitions for network authentication routines
        !             6:  *
        !             7:  * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
        !             8:  * Portions Copyright (c) 1994, Regents of the University of California
        !             9:  *
        !            10:  * $Id: fe-auth.h,v 1.12 2001/01/24 19:43:30 momjian Exp $
        !            11:  *
        !            12:  *-------------------------------------------------------------------------
        !            13:  */
        !            14: #ifndef FE_AUTH_H
        !            15: #define FE_AUTH_H
        !            16: 
        !            17: #include "libpq-fe.h"
        !            18: #include "libpq-int.h"
        !            19: 
        !            20: 
        !            21: /*----------------------------------------------------------------
        !            22:  * Common routines and definitions
        !            23:  *----------------------------------------------------------------
        !            24:  */
        !            25: 
        !            26: /* what we call "no authentication system" */
        !            27: #define UNAUTHNAME                             "unauth"
        !            28: 
        !            29: /* what a frontend uses by default */
        !            30: #if !defined(KRB4) && !defined(KRB5)
        !            31: #define DEFAULT_CLIENT_AUTHSVC UNAUTHNAME
        !            32: #else                                                  /* KRB4 || KRB5 */
        !            33: #define DEFAULT_CLIENT_AUTHSVC "kerberos"
        !            34: #endif  /* KRB4 || KRB5 */
        !            35: 
        !            36: extern int fe_sendauth(AuthRequest areq, PGconn *conn, const char *hostname,
        !            37:                        const char *password, char *PQerrormsg);
        !            38: extern MsgType fe_getauthsvc(char *PQerrormsg);
        !            39: extern void fe_setauthsvc(const char *name, char *PQerrormsg);
        !            40: extern char *fe_getauthname(char *PQerrormsg);
        !            41: 
        !            42: #define PG_KRB4_VERSION "PGVER4.1"             /* at most KRB_SENDAUTH_VLEN chars */
        !            43: #define PG_KRB5_VERSION "PGVER5.1"
        !            44: 
        !            45: #endif  /* FE_AUTH_H */

E-mail: