mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Fix #1685, support RTC cross-build for armv7/armv8(aarch64). 4.0.128
This commit is contained in:
parent
1e9de0e191
commit
229578cc65
10 changed files with 34 additions and 119 deletions
25
trunk/3rdparty/libsrtp-2-fit/configure.ac
vendored
25
trunk/3rdparty/libsrtp-2-fit/configure.ac
vendored
|
@ -263,31 +263,6 @@ if test "$enable_openssl" = "yes"; then
|
|||
HMAC_OBJS=crypto/hash/hmac_ossl.o
|
||||
AC_SUBST([USE_EXTERNAL_CRYPTO], [1])
|
||||
|
||||
AC_MSG_CHECKING([if OPENSSL_cleanse is broken])
|
||||
AC_RUN_IFELSE([AC_LANG_PROGRAM([
|
||||
#include <stdio.h>
|
||||
#include <openssl/crypto.h>
|
||||
], [
|
||||
#define BUFFER_SIZE (16)
|
||||
char buffer[[BUFFER_SIZE]];
|
||||
int i;
|
||||
for (i = 0; i < BUFFER_SIZE; i++) {
|
||||
buffer[[i]] = i & 0xff;
|
||||
}
|
||||
OPENSSL_cleanse(buffer, BUFFER_SIZE);
|
||||
for (i = 0; i < BUFFER_SIZE; i++) {
|
||||
if (buffer[[i]]) {
|
||||
printf("Buffer contents not zero at position %d (is %d)\n", i,
|
||||
buffer[[i]]);
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
])], [openssl_cleanse_broken=no], [
|
||||
openssl_cleanse_broken=yes
|
||||
AC_DEFINE([OPENSSL_CLEANSE_BROKEN], [1], [Define this if OPENSSL_cleanse is broken.])
|
||||
])
|
||||
AC_MSG_RESULT([$openssl_cleanse_broken])
|
||||
|
||||
AC_MSG_CHECKING([whether to leverage OpenSSL KDF algorithm])
|
||||
AC_ARG_ENABLE([openssl-kdf],
|
||||
[AS_HELP_STRING([--enable-openssl-kdf], [Use OpenSSL KDF algorithm])],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue