summaryrefslogtreecommitdiff
path: root/res/res_pjsip.c
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2014-10-01 16:39:45 +0000
committerJoshua Colp <jcolp@digium.com>2014-10-01 16:39:45 +0000
commitadba2a8d7fdd70dbe466b50385609a55017fc2b1 (patch)
treed42d965447b25c956aac7b8d944adb0538efe47e /res/res_pjsip.c
parent9233b1cf44e0ec8dcf0895ed8ee15534d8d4f3a7 (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 ........ Merged revisions 424291 from http://svn.asterisk.org/svn/asterisk/branches/13 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@424292 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/res_pjsip.c')
-rw-r--r--res/res_pjsip.c13
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>