Package: srtp
Version: 1.4.4~dfsg-1
User: [EMAIL PROTECTED]
Usertags: eabi
The srtp testsuite fails the debian build on arm and armel because it
violates the requirement that certain functions only be handed
32-bit-aligned data. The attached patch is the minimum required to fix
this problem.
I have reported the problem upstream as well:
http://sourceforge.net/tracker/index.php?func=detail&aid=1912057&group_id=38894&atid=423799
--- srtp-1.4.4~dfsg.orig/test/srtp_driver.c 2006-09-18 14:41:35.000000000
+0100
+++ srtp-1.4.4~dfsg/test/srtp_driver.c 2008-03-11 17:08:32.000000000 +0000
@@ -1129,7 +1129,6 @@
* These packets were made with the default SRTP policy.
*/
-
err_status_t
srtp_validate() {
unsigned char test_key[30] = {
@@ -1144,14 +1143,14 @@
0xab, 0xab, 0xab, 0xab, 0xab, 0xab, 0xab, 0xab,
0xab, 0xab, 0xab, 0xab
};
- uint8_t srtp_plaintext[38] = {
+ uint8_t srtp_plaintext[38] __attribute__((aligned(32))) = {
0x80, 0x0f, 0x12, 0x34, 0xde, 0xca, 0xfb, 0xad,
0xca, 0xfe, 0xba, 0xbe, 0xab, 0xab, 0xab, 0xab,
0xab, 0xab, 0xab, 0xab, 0xab, 0xab, 0xab, 0xab,
0xab, 0xab, 0xab, 0xab, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00
};
- uint8_t srtp_ciphertext[38] = {
+ uint8_t srtp_ciphertext[38] __attribute__((aligned(32))) = {
0x80, 0x0f, 0x12, 0x34, 0xde, 0xca, 0xfb, 0xad,
0xca, 0xfe, 0xba, 0xbe, 0x4e, 0x55, 0xdc, 0x4c,
0xe7, 0x99, 0x78, 0xd8, 0x8c, 0xa4, 0xd2, 0x15,