UNPKG

@fnlb-project/stanza

Version:

Modern XMPP in the browser, with a JSON API

36 lines (35 loc) 1.23 kB
// ==================================================================== // XEP-0320: Use of DTLS-SRTP in Jingle Sessions // -------------------------------------------------------------------- // Source: https://xmpp.org/extensions/xep-0320.html // Version: 0.3.1 (2015-10-15) // ==================================================================== import { attribute, text } from '../jxt'; import { NS_JINGLE_DTLS_0, NS_JINGLE_ICE_0, NS_JINGLE_ICE_UDP_1, NS_JINGLE_RTP_1 } from '../Namespaces'; const Protocol = { aliases: [ { multiple: true, path: 'iq.jingle.contents.transport.fingerprints', selector: NS_JINGLE_ICE_UDP_1 }, { multiple: true, path: 'iq.jingle.contents.transport.fingerprints', selector: NS_JINGLE_ICE_0 }, { multiple: true, path: 'iq.jingle.contents.application.encryption.dtls', selector: NS_JINGLE_RTP_1 } ], element: 'fingerprint', fields: { algorithm: attribute('hash'), setup: attribute('setup'), value: text() }, namespace: NS_JINGLE_DTLS_0 }; export default Protocol;