Change-Id: I447e73c4076c0b0efc1ef9c0d5a67451ba52d852
Signed-off-by: José Bollo <jose.bollo@open.eurogiciel.org>
return result;
}
+#ifdef DBUS_ENABLE_SMACK
/**
* Gets the Smack label of the peer at the time when the connection
* was established. Returns #TRUE if the label is filled in.
_dbus_return_val_if_fail (connection != NULL, FALSE);
_dbus_return_val_if_fail (label != NULL, FALSE);
- *label =
-#ifdef DBUS_ENABLE_SMACK
- connection->peer_smack_label
-#else
- NULL
-#endif
- ;
+ *label = connection->peer_smack_label;
return *label != NULL;
}
+#endif
/**
* Gets the ADT audit data of the connection if any.
DBUS_EXPORT
dbus_bool_t dbus_connection_get_unix_process_id (DBusConnection *connection,
unsigned long *pid);
+#ifdef DBUS_ENABLE_SMACK
DBUS_EXPORT
dbus_bool_t dbus_connection_get_smack_label (DBusConnection *connection,
+#endif
const char **label);
DBUS_EXPORT
dbus_bool_t dbus_connection_get_adt_audit_session_data (DBusConnection *connection,