Re: New(ish) draft: Secure Messaging in XMPP

Bartosz MaƂkowski <[email protected]> Thu, 5 Nov 2015 11:11:38 +0100
Newsgroups gmane.ietf.xmpp
Message-ID <[email protected]>
--===============1716592531659379497==
Content-Type: multipart/signed;
 boundary="Apple-Mail=_CCCF85A3-7ADB-4960-AB3F-0E6E32AC8B5B";
 protocol="application/pgp-signature"; micalg=pgp-sha512


--Apple-Mail=_CCCF85A3-7ADB-4960-AB3F-0E6E32AC8B5B
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8


> Wiadomo=C5=9B=C4=87 napisana przez Dave Cridland <[email protected]> w =
dniu 05.11.2015, o godz. 10:46:
>=20
> I think you want stanzas to be encapsulated as the same stanza in =
order to maintain the same semantics on, for example, routing, error =
handling, etc.


My point of view is, that envelope is just an envelope and shouldn=E2=80=99=
t be related to content.

If I want to send <iq type=3D=E2=80=9Eset=E2=80=9D id=3D=E2=80=9E1"> =
then I just send:

<message to=3D=E2=80=9EX" >
  <encrypted xmlns=3D=E2=80=9E=E2=80=A6=E2=80=9D>
    enc(<iq to=3D=E2=80=9EX=E2=80=9D type=3D=E2=80=9Eset=E2=80=9D =
id=3D=E2=80=9E1=E2=80=9D></iq>)
  </encrypted>
</message>

and in response I will receive

<message from=3D=E2=80=9EX" >
  <encrypted xmlns=3D=E2=80=9E=E2=80=A6=E2=80=9D>
    enc(<iq from=3D=E2=80=9EX=E2=80=9D type=3D=E2=80=9Eresult=E2=80=9D =
id=3D=E2=80=9E1=E2=80=9D></iq>)
  </encrypted>
</message>


In case of using IQ envelope for IQ stanzas: what type of stanza should =
have envelope if response type is error? Also error?

<iq type=3D=E2=80=9Eerror=E2=80=9D from=3D=E2=80=9EX=E2=80=9D id=3D=E2=80=9E=
1">
  <encrypted xmlns=3D=E2=80=9E=E2=80=A6=E2=80=9D>
    enc(<iq type=3D=E2=80=9Eerror=E2=80=9D from=3D=E2=80=9EX=E2=80=9D =
id=3D=E2=80=9E1"/>)
  <encrypted>
</iq>

I think that envelope should be independent from content. Let it be IQ =
stanza or Message stanza, but the same type of envelope for all type of =
contents.

--
Bartosz Ma=C5=82kowski
Tigase Polska
xmpp:[email protected]


--Apple-Mail=_CCCF85A3-7ADB-4960-AB3F-0E6E32AC8B5B
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP using GPGMail

-----BEGIN PGP SIGNATURE-----

iQF8BAEBCgBmBQJWOytaXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRBNjBEQjY2NTU3RTQ0RjQ4NUI4Rjg2OERB
ODAxRDY5QkQwRUNDNkUzAAoJEKgB1pvQ7MbjsQEH+wV+xSSpGqnbop1tiUraEsxx
MKQLaAWRVTpkQfvrb1qeY6HF9XY4fRYvhJkPG2EF6LUFf3IlN9DyawMqwn/kQVzD
mfSv+kbzQwD8KaT5cv+Ljenx6s8fOtGpmczi8zpKLUdOpjaiEaLsaMMnwPbomxvV
16E5oSf85rR1KE2deJYC/NxNm5lpEsb76StmwSm6JKPn9iuI0UZdSM5p9/tmVzOe
DI5nMtpELRSwd+v62LPOThi5/I4gAz7SNIVrUYjs2+aK3rvUdgF/R9ebUbyhuTr+
9MjIE3sIL9dcnS4TJhvrLQ27XQPu51kyPmDAQLyi8QsipTHeDNm375w8zWrwE5U=
=2kZN
-----END PGP SIGNATURE-----

--Apple-Mail=_CCCF85A3-7ADB-4960-AB3F-0E6E32AC8B5B--


--===============1716592531659379497==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
xmpp mailing list
[email protected]
https://www.ietf.org/mailman/listinfo/xmpp

--===============1716592531659379497==--