Add srtp lib package
[openwrt/svn-archive/archive.git] / libs / srtp / patches / 1005_fix_data_alignment.patch
1 Description: Fix data alignment
2 Author: "Martin Guy" <martinwguy@yahoo.it>
3 Origin: vendor, http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=5;bug=470505
4 Bug: http://sourceforge.net/tracker/index.php?func=detail&aid=1912057&group_id=38894&atid=423799
5 Bug-Debian: http://bugs.debian.org/470505
6 Last-Update: 2011-05-30
7 --- a/test/srtp_driver.c
8 +++ b/test/srtp_driver.c
9 @@ -1195,7 +1195,6 @@
10 * These packets were made with the default SRTP policy.
11 */
12
13 -
14 err_status_t
15 srtp_validate() {
16 uint8_t srtp_plaintext_ref[28] = {
17 @@ -1204,14 +1203,14 @@
18 0xab, 0xab, 0xab, 0xab, 0xab, 0xab, 0xab, 0xab,
19 0xab, 0xab, 0xab, 0xab
20 };
21 - uint8_t srtp_plaintext[38] = {
22 + uint8_t srtp_plaintext[38] __attribute__((aligned(4))) = {
23 0x80, 0x0f, 0x12, 0x34, 0xde, 0xca, 0xfb, 0xad,
24 0xca, 0xfe, 0xba, 0xbe, 0xab, 0xab, 0xab, 0xab,
25 0xab, 0xab, 0xab, 0xab, 0xab, 0xab, 0xab, 0xab,
26 0xab, 0xab, 0xab, 0xab, 0x00, 0x00, 0x00, 0x00,
27 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
28 };
29 - uint8_t srtp_ciphertext[38] = {
30 + uint8_t srtp_ciphertext[38] __attribute__((aligned(4))) = {
31 0x80, 0x0f, 0x12, 0x34, 0xde, 0xca, 0xfb, 0xad,
32 0xca, 0xfe, 0xba, 0xbe, 0x4e, 0x55, 0xdc, 0x4c,
33 0xe7, 0x99, 0x78, 0xd8, 0x8c, 0xa4, 0xd2, 0x15,