From 2192d23230c8667d19adccadbae7b6f3cb0b3257 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Tue, 21 Aug 2001 00:33:28 +0000 Subject: [PATCH] Add SCM_CREDS to get owner of unix-domain socket on BSD-like systems. --- connection.c | 5 +++++ connection.h | 1 + 2 files changed, 6 insertions(+) diff --git a/connection.c b/connection.c index 1e61670..54e4488 100644 --- a/connection.c +++ b/connection.c @@ -726,6 +726,11 @@ CC_connect(ConnectionClass *self, char do_password) self->errornumber = CONN_AUTH_TYPE_UNSUPPORTED; return 0; + case AUTH_REQ_SCM_CREDS: + self->errormsg = "Unix socket credential authentication not supported"; + self->errornumber = CONN_AUTH_TYPE_UNSUPPORTED; + return 0; + default: self->errormsg = "Unknown authentication type"; self->errornumber = CONN_AUTH_TYPE_UNSUPPORTED; diff --git a/connection.h b/connection.h index 67fb38d..11379e4 100644 --- a/connection.h +++ b/connection.h @@ -94,6 +94,7 @@ typedef enum #define AUTH_REQ_PASSWORD 3 #define AUTH_REQ_CRYPT 4 #define AUTH_REQ_MD5 5 +#define AUTH_REQ_SCM_CREDS 6 /* Startup Packet sizes */ #define SM_DATABASE 64 -- 2.39.5