*
* Implementation of the VCard 3.0 standard (RFC 2426) that can be used
* with Requested Attributes (in WHOIS command) to deliver personal
- * information. All fields are not supported since some other the
+ * information. All fields are not supported since some of the
* information are not needed in context of SILC. If such VCard is
- * received this ignores the unsupported fields.
+ * received this implementation ignores the unsupported fields.
*
***/
char *bday; /* birth day, UTC date string */
char *title; /* job title X.520, string */
char *role; /* job role X.520, string */
- char *org_name; /* organization name */
- char *org_unit; /* organization unit */
+ char *org_name; /* organization name, string */
+ char *org_unit; /* organization unit, string */
char *categories; /* application category, string */
- char *class; /* class (public, private, confidental), string */
+ char *catclass; /* class (public, private, confidental), string */
char *url; /* home page, URI string */
char *label; /* formatted address label, string (same
format as for 'addr' but comma sep.) */
char *type; /* telephone number type, string
(msg, voice, home, work, pref, bbs, modem, car,
cell, video, pager, isdn, fax) */
- char *tel; /* single telephone number, string */
+ char *telnum; /* single telephone number, string */
} *tels;
SilcUInt8 num_tels;
char *note; /* a note, string */
char *rev; /* revision of card, UTC date string */
+
+ bool dynamic; /* TRUE when dynamically allocated */
} SilcVCardStruct, *SilcVCard;
/***/
*
* SYNOPSIS
*
- * char *silc_vcard_encode(SilcVCard vcard, SilcUInt8 *vcard_len);
+ * char *silc_vcard_encode(SilcVCard vcard, SilcUInt32 *vcard_len);
*
* DESCRIPTION
*
* buffer. Returns NULL on error.
*
***/
-char *silc_vcard_encode(SilcVCard vcard, SilcUInt32 *vcard_len);
+unsigned char *silc_vcard_encode(SilcVCard vcard, SilcUInt32 *vcard_len);
/****f* silcutil/SilcVCard/silc_vcard_decode
*
bool silc_vcard_decode(const unsigned char *data, SilcUInt32 data_len,
SilcVCard vcard);
+/****f* silcutil/SilcVCard/silc_vcard_alloc
+ *
+ * SYNOPSIS
+ *
+ * SilcVCard silc_vcard_alloc(void);
+ *
+ * DESCRIPTION
+ *
+ * Allocate a SilcVCard context which must be freed with the
+ * silc_vcard_free function.
+ *
+ ***/
+SilcVCard silc_vcard_alloc(void);
+
/****f* silcutil/SilcVCard/silc_vcard_free
*
* SYNOPSIS
*
- * void silc_vcard_free(SilcVcard vcard);
+ * void silc_vcard_free(SilcVCard vcard);
*
* DESCRIPTION
*