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

Friendly Automation (JIRA) noreply at issues.asterisk.org
Wed Oct 18 10:51:20 CDT 2017


    [ https://issues.asterisk.org/jira/browse/ASTERISK-27356?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=239426#comment-239426 ] 

Friendly Automation commented on ASTERISK-27356:
------------------------------------------------

Change 6825 merged by Jenkins2:
res_srtp: Add support for libsrtp2 with AES-GCM.

[https://gerrit.asterisk.org/6825|https://gerrit.asterisk.org/6825]

> [patch] libsrtp-2.x.x + AES-GCM support
> ---------------------------------------
>
>                 Key: ASTERISK-27356
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-27356
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Resources/res_srtp
>    Affects Versions: 14.6.0, 15.0.0
>            Reporter: Alexander Traud
>            Severity: Minor
>         Attachments: libSRTP_2_x_x+GCM.patch
>
>
> 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