summaryrefslogtreecommitdiff
path: root/src/libsystemd-bus/bus-internal.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-03-30 15:21:06 +0100
committerLennart Poettering <lennart@poettering.net>2013-03-30 15:21:55 +0100
commit2181a7f558eb52a22f09f8add9ac0abb4f2ee016 (patch)
tree0de6c09897dd3ff80d13a9ccfab62839e2234ae5 /src/libsystemd-bus/bus-internal.h
parenta3de5ae1d7d881bbd4869c6c4a200c84bda00ced (diff)
bus: implement server mode, and anonymous authentication
Diffstat (limited to 'src/libsystemd-bus/bus-internal.h')
-rw-r--r--src/libsystemd-bus/bus-internal.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/libsystemd-bus/bus-internal.h b/src/libsystemd-bus/bus-internal.h
index 345e6568dc..76b90ea3a6 100644
--- a/src/libsystemd-bus/bus-internal.h
+++ b/src/libsystemd-bus/bus-internal.h
@@ -64,6 +64,12 @@ enum bus_state {
BUS_RUNNING
};
+enum bus_auth {
+ _BUS_AUTH_INVALID,
+ BUS_AUTH_EXTERNAL,
+ BUS_AUTH_ANONYMOUS
+};
+
struct sd_bus {
unsigned n_ref;
enum bus_state state;
@@ -74,6 +80,8 @@ struct sd_bus {
bool can_fds:1;
bool bus_client:1;
bool ucred_valid:1;
+ bool is_server:1;
+ bool anonymous_auth:1;
void *rbuffer;
size_t rbuffer_size;
@@ -109,10 +117,11 @@ struct sd_bus {
int last_connect_error;
+ enum bus_auth auth;
+ size_t auth_rbegin;
struct iovec auth_iovec[3];
unsigned auth_index;
- size_t auth_size;
- char *auth_uid;
+ char *auth_buffer;
usec_t auth_timeout;
struct ucred ucred;