[asterisk-bugs] [JIRA] (ASTERISK-27356) [patch] libsrtp-2.x.x + AES-GCM support

Alexander Traud (JIRA) noreply at issues.asterisk.org
Wed Oct 18 03:19:21 CDT 2017


Alexander Traud created ASTERISK-27356:
------------------------------------------

             Summary: [patch] libsrtp-2.x.x + AES-GCM support
                 Key: ASTERISK-27356
                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-27356
             Project: Asterisk
          Issue Type: Improvement
      Security Level: None
          Components: Resources/res_srtp
    Affects Versions: 15.0.0, 14.6.0
            Reporter: Alexander Traud
            Severity: Minor


Since ASTERISK-26976, libSRTP 2.x.x can be linked. However, the user might have linked libSRTP to OpenSSL. In that case, libSRTP supports AES-GCM which is auto-detected since ASTERISK-26190. Then, two additional DEFINEs are accessed in libSRTP. However, those were not covered by ASTERISK-26976 and therefore Asterisk does not compile when libSRTP 2.x.x with AES-GCM is present:
{code}
   [CC] res_srtp.c -> res_srtp.o
res_srtp.c: In function ‘res_sdp_crypto_parse_offer’:
res_srtp.c:901:22: error: ‘AES_128_GCM_KEYSIZE_WSALT’ undeclared (first use in this function)
   key_len_expected = AES_128_GCM_KEYSIZE_WSALT;
                      ^~~~~~~~~~~~~~~~~~~~~~~~~
res_srtp.c:901:22: note: each undeclared identifier is reported only once for each function it appears in
res_srtp.c:906:22: error: ‘AES_256_GCM_KEYSIZE_WSALT’ undeclared (first use in this function)
   key_len_expected = AES_256_GCM_KEYSIZE_WSALT;
                      ^~~~~~~~~~~~~~~~~~~~~~~~~
Makefile.rules:149: recipe for target 'res_srtp.o' failed
make[1]: *** [res_srtp.o] Error 1
Makefile:367: recipe for target 'res' failed
make: *** [res] Error 2
{code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list