aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/oscar/ssi.c
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/oscar/ssi.c')
-rw-r--r--protocols/oscar/ssi.c71
1 files changed, 0 insertions, 71 deletions
diff --git a/protocols/oscar/ssi.c b/protocols/oscar/ssi.c
index f37d98e5..14201a44 100644
--- a/protocols/oscar/ssi.c
+++ b/protocols/oscar/ssi.c
@@ -999,77 +999,6 @@ int aim_ssi_delpord(aim_session_t *sess, aim_conn_t *conn, char **sn, unsigned i
}
/**
- * Stores your permit/deny setting on the server, and starts using it.
- *
- * @param sess The oscar session.
- * @param conn The bos connection for this session.
- * @param permdeny Your permit/deny setting. Can be one of the following:
- * 1 - Allow all users
- * 2 - Block all users
- * 3 - Allow only the users below
- * 4 - Block only the users below
- * 5 - Allow only users on my buddy list
- * @param vismask A bitmask of the class of users to whom you want to be
- * visible. See the AIM_FLAG_BLEH #defines in aim.h
- * @return Return 0 if no errors, otherwise return the error number.
- */
-int aim_ssi_setpermdeny(aim_session_t *sess, aim_conn_t *conn, guint8 permdeny, guint32 vismask) {
- struct aim_ssi_item *cur; //, *tmp;
-// guint16 j;
- aim_tlv_t *tlv;
-
- if (!sess || !conn)
- return -EINVAL;
-
- /* Look up the permit/deny settings item */
- cur = aim_ssi_itemlist_finditem(sess->ssi.items, NULL, NULL, AIM_SSI_TYPE_PDINFO);
-
- if (cur) {
- /* The permit/deny item exists */
- if (cur->data && (tlv = aim_gettlv(cur->data, 0x00ca, 1))) {
- /* Just change the value of the x00ca TLV */
- if (tlv->length != 1) {
- tlv->length = 1;
- g_free(tlv->value);
- tlv->value = (guint8 *)g_malloc(sizeof(guint8));
- }
- tlv->value[0] = permdeny;
- } else {
- /* Need to add the x00ca TLV to the TLV chain */
- aim_addtlvtochain8((aim_tlvlist_t**)&cur->data, 0x00ca, permdeny);
- }
-
- if (cur->data && (tlv = aim_gettlv(cur->data, 0x00cb, 1))) {
- /* Just change the value of the x00cb TLV */
- if (tlv->length != 4) {
- tlv->length = 4;
- g_free(tlv->value);
- tlv->value = (guint8 *)g_malloc(4*sizeof(guint8));
- }
- aimutil_put32(tlv->value, vismask);
- } else {
- /* Need to add the x00cb TLV to the TLV chain */
- aim_addtlvtochain32((aim_tlvlist_t**)&cur->data, 0x00cb, vismask);
- }
-
- /* Send the mod item SNAC */
- aim_ssi_addmoddel(sess, conn, &cur, 1, AIM_CB_SSI_MOD);
- } else {
- /* Need to add the permit/deny item */
- if (!(cur = aim_ssi_itemlist_add(&sess->ssi.items, NULL, NULL, AIM_SSI_TYPE_PDINFO)))
- return -ENOMEM;
- aim_addtlvtochain8((aim_tlvlist_t**)&cur->data, 0x00ca, permdeny);
- aim_addtlvtochain32((aim_tlvlist_t**)&cur->data, 0x00cb, vismask);
- aim_ssi_addmoddel(sess, conn, &cur, 1, AIM_CB_SSI_ADD);
- }
-
- /* Begin sending SSI SNACs */
- aim_ssi_dispatch(sess, conn);
-
- return 0;
-}
-
-/**
* Stores your setting for whether you should show up as idle or not.
*
* @param sess The oscar session.