PostgreSQL Source Code  git master
be-gssapi-common.h
Go to the documentation of this file.
1 /*-------------------------------------------------------------------------
2  *
3  * be-gssapi-common.h
4  * Definitions for GSSAPI authentication and encryption handling
5  *
6  * Portions Copyright (c) 1996-2024, PostgreSQL Global Development Group
7  * Portions Copyright (c) 1994, Regents of the University of California
8  *
9  * src/include/libpq/be-gssapi-common.h
10  *
11  *-------------------------------------------------------------------------
12  */
13 
14 #ifndef BE_GSSAPI_COMMON_H
15 #define BE_GSSAPI_COMMON_H
16 
17 #ifdef ENABLE_GSS
18 
19 #if defined(HAVE_GSSAPI_H)
20 #include <gssapi.h>
21 #include <gssapi_ext.h>
22 #else
23 #include <gssapi/gssapi.h>
24 #include <gssapi/gssapi_ext.h>
25 #endif
26 
27 extern void pg_GSS_error(const char *errmsg,
28  OM_uint32 maj_stat, OM_uint32 min_stat);
29 
30 extern void pg_store_delegated_credential(gss_cred_id_t cred);
31 #endif /* ENABLE_GSS */
32 
33 #endif /* BE_GSSAPI_COMMON_H */
void pg_store_delegated_credential(gss_cred_id_t cred)
void pg_GSS_error(const char *errmsg, OM_uint32 maj_stat, OM_uint32 min_stat)
int errmsg(const char *fmt,...)
Definition: elog.c:1072