summaryrefslogtreecommitdiffstats
path: root/dbus/dbus-sysdeps-unix.c
diff options
context:
space:
mode:
authorHavoc Pennington <hp@redhat.com>2007-06-14 21:15:33 +0000
committerHavoc Pennington <hp@redhat.com>2007-06-14 21:15:33 +0000
commite7c0d217795f4e8eb618f82b9b3e52807436c8f1 (patch)
tree57a9db1b12b67e6e160c845a4575dc7bace9c286 /dbus/dbus-sysdeps-unix.c
parent48c6f1472dc315c9572cb1aebf8c7b68a66f5bef (diff)
2007-06-14 Havoc Pennington <hp@redhat.com>
* dbus/dbus-sysdeps-unix.c (_dbus_credentials_parse_and_add_user): delete this function since it was effectively the same as _dbus_credentials_add_from_username()
Diffstat (limited to 'dbus/dbus-sysdeps-unix.c')
-rw-r--r--dbus/dbus-sysdeps-unix.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/dbus/dbus-sysdeps-unix.c b/dbus/dbus-sysdeps-unix.c
index 725c4de7..6ba3da0d 100644
--- a/dbus/dbus-sysdeps-unix.c
+++ b/dbus/dbus-sysdeps-unix.c
@@ -1506,33 +1506,6 @@ _dbus_credentials_add_from_current_process (DBusCredentials *credentials)
}
/**
- * Parses a desired identity provided from a client in the auth protocol.
- * On UNIX this means parsing a UID, on Windows probably parsing an
- * SID string.
- *
- * @todo this is broken because it treats OOM and parse error
- * the same way. Needs a #DBusError.
- *
- * @param credentials the credentials to add what we parse to
- * @param desired_identity the string to parse
- * @returns #TRUE if we successfully parsed something
- */
-dbus_bool_t
-_dbus_credentials_parse_and_add_user (DBusCredentials *credentials,
- const DBusString *desired_identity)
-{
- dbus_uid_t uid;
-
- if (!_dbus_parse_uid (desired_identity, &uid))
- return FALSE;
-
- if (!_dbus_credentials_add_unix_uid (credentials, uid))
- return FALSE;
-
- return TRUE;
-}
-
-/**
* Append to the string the identity we would like to have when we
* authenticate, on UNIX this is the current process UID and on
* Windows something else, probably a Windows SID string. No escaping