Setting a SilcMime attribute

Christian Dietrich <[email protected]>
Newsgroups gmane.network.silc.devel
Message-ID <[email protected]>
Hi,
i think i've found a bug in silc toolkit beta4, when i set a SilcMime as
an attribute (e.g. SILC_ATTRIBUTE_STATUS_MESSAGE) i only recieve binary
chunk on the other side.

I do it this way:
      SilcTK::SilcMime mime = SilcTK::silc_mime_alloc();
      SilcTK::silc_mime_add_field(mime, "MIME-Version", "1.0");
      SilcTK::silc_mime_add_field(mime, "Content-Transfer-Encoding", "binary");
      SilcTK::silc_mime_add_field(mime, "Content-Type", 
                                  "text/plain; charset=utf-8");
 
      QCString content = QString(getAttributeMessage()).utf8();
      SilcTK::silc_mime_add_data(mime, (unsigned char *)(const char *)content,
                                    content.length());
 
      silc_client_attribute_add(_client, _conn,
                                SILC_ATTRIBUTE_STATUS_MESSAGE,
                                mime, sizeof(*mime));

Also when i set status_message in silc-client beta5 i get the same
result.

Is there something wrong in setting the attribute, or is it a real bug
in libsilc?

didi
-- 
No documentation is better than bad documentation

_______________________________________________________________________
Info:    https://lists.silcnet.org/mailman/listinfo/silc-announce
Archive: https://lists.silcnet.org/pipermail/silc-announce
FAQ:     http://silcnet.org/support/faq/
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)

iD8DBQFGWxZV9Fo/3NFezhERAtrYAJsGrPA+HhlJpBvMfwmU3n/UiTpFfQCfTstc
m5K1uqMcGd1tvPT/KvWZDnw=
=BPfQ
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.