summaryrefslogtreecommitdiff
path: root/src/include/libpq/be-gssapi-common.h
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2019-06-08 09:59:02 +0900
committerMichael Paquier <michael@paquier.xyz>2019-06-08 09:59:02 +0900
commit35b2d4bc0eb5d61a2a294ccb6b2e4abdad307604 (patch)
treeab2ec13b3204c80f748f42f44a3c8ebd68f13b68 /src/include/libpq/be-gssapi-common.h
parent84d4de97e8d14469974eb488730a13f942aa787a (diff)
downloadpostgresql-35b2d4bc0eb5d61a2a294ccb6b2e4abdad307604.tar.gz
Move be-gssapi-common.h into src/include/libpq/
The file has been introduced in src/backend/libpq/ as of b0b39f72, but all backend-side headers of libpq are located in src/include/libpq/. Note that the identification path on top of the file referred to src/include/libpq/ from the start. Author: Michael Paquier Reviewed-by: Stephen Frost Discussion: https://postgr.es/m/20190607043415.GE1736@paquier.xyz
Diffstat (limited to 'src/include/libpq/be-gssapi-common.h')
-rw-r--r--src/include/libpq/be-gssapi-common.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/include/libpq/be-gssapi-common.h b/src/include/libpq/be-gssapi-common.h
new file mode 100644
index 0000000000..acb30b9494
--- /dev/null
+++ b/src/include/libpq/be-gssapi-common.h
@@ -0,0 +1,26 @@
+/*-------------------------------------------------------------------------
+ *
+ * be-gssapi-common.h
+ * Definitions for GSSAPI authentication and encryption handling
+ *
+ * Portions Copyright (c) 1996-2019, PostgreSQL Global Development Group
+ * Portions Copyright (c) 1994, Regents of the University of California
+ *
+ * src/include/libpq/be-gssapi-common.h
+ *
+ *-------------------------------------------------------------------------
+ */
+
+#ifndef BE_GSSAPI_COMMON_H
+#define BE_GSSAPI_COMMON_H
+
+#if defined(HAVE_GSSAPI_H)
+#include <gssapi.h>
+#else
+#include <gssapi/gssapi.h>
+#endif
+
+void pg_GSS_error(int severity, const char *errmsg,
+ OM_uint32 maj_stat, OM_uint32 min_stat);
+
+#endif /* BE_GSSAPI_COMMON_H */