*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/libpq/pqcomm.c,v 1.11 1997/02/14 04:15:29 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/libpq/pqcomm.c,v 1.12 1997/03/12 21:17:58 scrappy Exp $
*
*-------------------------------------------------------------------------
*/
return(STATUS_OK);
}
+
+static char *authentication_type_name[] = {
+ 0, 0, 0, 0, 0, 0, 0,
+ "the default authentication type",
+ 0, 0,
+ "Kerberos v4",
+ "Kerberos v5",
+ "host-based authentication",
+ "unauthenication",
+ "plaintext password authentication"
+};
+
+char *name_of_authentication_type(int type)
+{
+ char *result = 0;
+
+ if(type >= 1 && type <= LAST_AUTHENTICATION_TYPE) {
+ result = authentication_type_name[type];
+ }
+
+ if(result == 0) {
+ result = "<unknown authentication type>";
+ }
+
+ return result;
+}