diff options
author | Joshua Colp <jcolp@digium.com> | 2014-10-01 16:37:46 +0000 |
---|---|---|
committer | Joshua Colp <jcolp@digium.com> | 2014-10-01 16:37:46 +0000 |
commit | a1763a89a3029058ff9123bfce2eafdbe6a19dcc (patch) | |
tree | bfae5538987a959b75d26440092031fb00152380 /res/res_pjsip.c | |
parent | 0de2d080c2d112a7a2e6493cfe77dcbbcf9eed68 (diff) |
res_pjsip: Add 'dtls_fingerprint' option to configure DTLS fingerprint hash.
During the latest update to DTLS-SRTP support the ability to configure
the hash used for fingerprints was added. This gave us two supported ones:
SHA-1 and SHA-256. The default was accordingly updated to SHA-256.
Unfortunately this configuration ability was not exposed within res_pjsip.
This change adds a dtls_fingerprint option that controls it.
#SIPit31
........
Merged revisions 424290 from http://svn.asterisk.org/svn/asterisk/branches/12
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/13@424291 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/res_pjsip.c')
-rw-r--r-- | res/res_pjsip.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/res/res_pjsip.c b/res/res_pjsip.c index a7f684650..e6d0d0c48 100644 --- a/res/res_pjsip.c +++ b/res/res_pjsip.c @@ -692,6 +692,19 @@ </enumlist> </description> </configOption> + <configOption name="dtls_fingerprint"> + <synopsis>Type of hash to use for the DTLS fingerprint in the SDP.</synopsis> + <description> + <para> + This option only applies if <replaceable>media_encryption</replaceable> is + set to <literal>dtls</literal>. + </para> + <enumlist> + <enum name="SHA-256"></enum> + <enum name="SHA-1"></enum> + </enumlist> + </description> + </configOption> <configOption name="srtp_tag_32"> <synopsis>Determines whether 32 byte tags should be used instead of 80 byte tags.</synopsis> <description><para> |