dovecot-2.2: lib-auth: Added auth_master_get_socket_path()

dovecot at dovecot.org dovecot at dovecot.org
Sat Jan 5 01:14:34 EET 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/755a2f08cde5
changeset: 15534:755a2f08cde5
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Nov 28 03:32:01 2012 +0200
description:
lib-auth: Added auth_master_get_socket_path()

diffstat:

 src/lib-auth/auth-master.c |  5 +++++
 src/lib-auth/auth-master.h |  3 +++
 2 files changed, 8 insertions(+), 0 deletions(-)

diffs (28 lines):

diff -r 6a97faf3e500 -r 755a2f08cde5 src/lib-auth/auth-master.c
--- 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);
diff -r 6a97faf3e500 -r 755a2f08cde5 src/lib-auth/auth-master.h
--- 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. */


More information about the dovecot-cvs mailing list