changeset 15534:755a2f08cde5

lib-auth: Added auth_master_get_socket_path()
author Timo Sirainen <tss@iki.fi>
date Wed, 28 Nov 2012 03:32:01 +0200
parents 6a97faf3e500
children 8bc9d40d77c4
files src/lib-auth/auth-master.c src/lib-auth/auth-master.h
diffstat 2 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-auth/auth-master.c	Tue Nov 27 23:06:38 2012 +0200
+++ b/src/lib-auth/auth-master.c	Wed Nov 28 03:32:01 2012 +0200
@@ -107,6 +107,11 @@
 	i_free(conn);
 }
 
+const char *auth_master_get_socket_path(struct auth_master_connection *conn)
+{
+	return conn->auth_socket_path;
+}
+
 static void auth_request_lookup_abort(struct auth_master_connection *conn)
 {
 	io_loop_stop(conn->ioloop);
--- a/src/lib-auth/auth-master.h	Tue Nov 27 23:06:38 2012 +0200
+++ b/src/lib-auth/auth-master.h	Wed Nov 28 03:32:01 2012 +0200
@@ -27,6 +27,9 @@
 auth_master_init(const char *auth_socket_path, enum auth_master_flags flags);
 void auth_master_deinit(struct auth_master_connection **conn);
 
+/* Returns the auth_socket_path */
+const char *auth_master_get_socket_path(struct auth_master_connection *conn);
+
 /* Do a USER lookup. Returns -1 = error, 0 = user not found, 1 = ok.
    When returning -1 and fields[0] isn't NULL, it contains an error message
    that should be shown to user. */