1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00

net/libsrtp2: Update to 2.4.1

This commit is contained in:
Tijl Coosemans 2021-08-16 14:10:43 +02:00
parent 03e35e3913
commit 820a862e6e
4 changed files with 17 additions and 30 deletions

View File

@ -1,6 +1,6 @@
PORTNAME= libsrtp
DISTVERSIONPREFIX= v
DISTVERSION= 2.3.0
DISTVERSION= 2.4.1
CATEGORIES= net
PKGNAMESUFFIX= 2

View File

@ -1,3 +1,3 @@
TIMESTAMP = 1581428909
SHA256 (cisco-libsrtp-v2.3.0_GH0.tar.gz) = 94093a5d04c5f4743e8d81182b76938374df6d393b45322f24960d250b0110e8
SIZE (cisco-libsrtp-v2.3.0_GH0.tar.gz) = 633819
TIMESTAMP = 1631988977
SHA256 (cisco-libsrtp-v2.4.1_GH0.tar.gz) = 3cb580928fcd502426809c68406d04aaa5ef1af7ebb0a3a41a52a13576f2fc07
SIZE (cisco-libsrtp-v2.4.1_GH0.tar.gz) = 631328

View File

@ -0,0 +1,13 @@
diff --git a/srtp/srtp.c b/srtp/srtp.c
index c7f6bb9f..dbb09909 100644
--- srtp/srtp.c
+++ srtp/srtp.c
@@ -788,7 +788,7 @@ static inline int full_key_length(const srtp_cipher_type_t *cipher)
case SRTP_AES_GCM_128:
return SRTP_AES_GCM_128_KEY_LEN_WSALT;
case SRTP_AES_GCM_256:
- return SRTP_AES_ICM_256_KEY_LEN_WSALT;
+ return SRTP_AES_GCM_256_KEY_LEN_WSALT;
default:
return 0;
}

View File

@ -1,26 +0,0 @@
diff --git a/crypto/math/datatypes.c b/crypto/math/datatypes.c
index 001584c1..4fcb3965 100644
--- crypto/math/datatypes.c
+++ crypto/math/datatypes.c
@@ -79,7 +79,7 @@ int octet_get_weight(uint8_t octet)
/* the value MAX_PRINT_STRING_LEN is defined in datatypes.h */
-char bit_string[MAX_PRINT_STRING_LEN];
+static char bit_string[MAX_PRINT_STRING_LEN];
uint8_t srtp_nibble_to_hex_char(uint8_t nibble)
{
diff --git a/test/util.c b/test/util.c
index 2abc28e7..c0f76149 100644
--- test/util.c
+++ test/util.c
@@ -49,7 +49,7 @@
#include <stdint.h>
/* include space for null terminator */
-char bit_string[MAX_PRINT_STRING_LEN + 1];
+static char bit_string[MAX_PRINT_STRING_LEN + 1];
static inline int hex_char_to_nibble(uint8_t c)
{