Package Details: ccrtp 2.1.2-4

Git Clone URL: https://aur.archlinux.org/ccrtp.git (read-only, click to copy)
Package Base: ccrtp
Description: An implementation of RTP, the real-time transport protocol from the IETF
Upstream URL: https://www.gnu.org/software/ccrtp/
Licenses: GPL, custom
Submitter: tredaelli
Maintainer: pmattern
Last Packager: pmattern
Votes: 7
Popularity: 0.000000
First Submitted: 2015-08-18 17:59 (UTC)
Last Updated: 2022-04-20 14:27 (UTC)

Latest Comments

1 2 Next › Last »

freaknils commented on 2025-10-08 05:40 (UTC) (edited on 2025-10-08 05:41 (UTC) by freaknils)

@ChrisTX I coult not build your fix, the patch was invalid here, but on base of your's I was able to build it this way:

diff --git a/PKGBUILD b/PKGBUILD
index 21d2de8..037f784 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -15,13 +15,20 @@ url="https://www.gnu.org/software/ccrtp/"
 license=('GPL' 'custom')
 depends=('ucommon>=6.2.2' 'libgcrypt')
 optdepends=("texinfo: handle and view info files")
-source=("https://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz"{,.sig})
+source=("https://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz"{,.sig}
+        "ccrtp-openssl-fix.patch")
 sha256sums=('f035ca0e1b5d37b78e358f07a25b05c5cdaf2c85c4b31cf29f6be17f288a349e'
-            'SKIP')
+            'SKIP'
+            'a353c44940fb96512ebc448c9f1244ba390015501322c5183e38093385283edc')
 validpgpkeys=('5CF995AAD5CC1E4079F76C38B1732A9CB37C87BA')

+prepare() {
+  patch -Np1 -d ${pkgname}-${pkgver} -i ../ccrtp-openssl-fix.patch
+}
+
 build() {
   cd ${pkgname}-${pkgver}
+  ./autogen.sh
   ./configure --prefix=/usr
   make
 }

and ccrtp-openssl-fix.patch as

diff --color -Naur ccrtp-2.1.2/src/ccrtp/crypto/openssl/hmac.cpp ccrtp-2.1.2-b/src/ccrtp/crypto/openssl/hmac.cpp
--- ccrtp-2.1.2/src/ccrtp/crypto/openssl/hmac.cpp       2015-01-11 15:43:52.000000000 +0100
+++ ccrtp-2.1.2-b/src/ccrtp/crypto/openssl/hmac.cpp     2025-07-24 16:18:32.002150251 +0200
@@ -52,23 +52,20 @@
                 const uint8_t* data_chunks[],
                 uint32_t data_chunck_length[],
                 uint8_t* mac, int32_t* mac_length ) {
-    HMAC_CTX ctx;
-    HMAC_CTX_init(&ctx);
-    HMAC_Init_ex(&ctx, key, key_length, EVP_sha1(), NULL);
+    HMAC_CTX* ctx = HMAC_CTX_new();
+    HMAC_Init_ex(ctx, key, key_length, EVP_sha1(), NULL);
     while (*data_chunks) {
-        HMAC_Update(&ctx, *data_chunks, *data_chunck_length);
+        HMAC_Update(ctx, *data_chunks, *data_chunck_length);
         data_chunks ++;
         data_chunck_length ++;
     }
-    HMAC_Final(&ctx, mac, reinterpret_cast<uint32_t*>(mac_length));
-    HMAC_CTX_cleanup(&ctx);
+     HMAC_Final(ctx, mac, reinterpret_cast<uint32_t*>(mac_length));
+     HMAC_CTX_free(ctx);
 }

 void* createSha1HmacContext(uint8_t* key, int32_t key_length)
 {
-    HMAC_CTX* ctx = (HMAC_CTX*)malloc(sizeof(HMAC_CTX));
-    
-    HMAC_CTX_init(ctx);
+    HMAC_CTX* ctx = HMAC_CTX_new();
     HMAC_Init_ex(ctx, key, key_length, EVP_sha1(), NULL);
     return ctx;
 }
@@ -100,7 +97,6 @@
 void freeSha1HmacContext(void* ctx)
 {
     if (ctx) {
-        HMAC_CTX_cleanup((HMAC_CTX*)ctx);
-        free(ctx);
+        HMAC_CTX_free((HMAC_CTX*)ctx);
     }
-}
\ Kein Zeilenumbruch am Dateiende.
+}
diff --color -Naur ccrtp-2.1.2/src/Makefile.am ccrtp-2.1.2-b/src/Makefile.am
--- ccrtp-2.1.2/src/Makefile.am 2015-01-11 15:43:52.000000000 +0100
+++ ccrtp-2.1.2-b/src/Makefile.am       2025-07-24 16:17:59.562599744 +0200
@@ -23,7 +23,7 @@

 if SRTP_OPENSSL
 srtp_src_o =    ccrtp/crypto/openssl/hmac.cpp \
-        ccrtp/crypto/openssl/SrtpSymCrypto.cpp
+        ccrtp/crypto/openssl/SrtpSymCrypto.cpp ccrtp/crypto/twofish.c
 endif

 if SRTP_GCRYPT

Thanks!

ChrisTX commented on 2025-07-24 14:28 (UTC)

Yeah, the OpenSSL API dropped some calls. The following will fix it for now:

diff --git a/PKGBUILD b/PKGBUILD
index 21d2de8..b3f5c23 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -15,13 +15,20 @@ url="https://www.gnu.org/software/ccrtp/"
 license=('GPL' 'custom')
 depends=('ucommon>=6.2.2' 'libgcrypt')
 optdepends=("texinfo: handle and view info files")
-source=("https://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz"{,.sig})
+source=("https://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz"{,.sig}
+       "ccrtp-openssl-fix.patch")
 sha256sums=('f035ca0e1b5d37b78e358f07a25b05c5cdaf2c85c4b31cf29f6be17f288a349e'
-            'SKIP')
+            'SKIP'
+            'e1bd497207903ab49f688f3d2b9b428c2e8ce28ad7a314722931a36217ae52da')
 validpgpkeys=('5CF995AAD5CC1E4079F76C38B1732A9CB37C87BA')

+prepare() {
+  patch -Np1 -d ${pkgname}-${pkgver} -i ../ccrtp-openssl-fix.patch
+}
+
 build() {
   cd ${pkgname}-${pkgver}
+  ./autogen.sh
   ./configure --prefix=/usr
   make
 }

and ccrtp-openssl-fix.patch as

diff --color -Naur ccrtp-2.1.2/src/ccrtp/crypto/openssl/hmac.cpp ccrtp-2.1.2-b/src/ccrtp/crypto/openssl/hmac.cpp
--- ccrtp-2.1.2/src/ccrtp/crypto/openssl/hmac.cpp       2015-01-11 15:43:52.000000000 +0100
+++ ccrtp-2.1.2-b/src/ccrtp/crypto/openssl/hmac.cpp     2025-07-24 16:18:32.002150251 +0200
@@ -52,23 +52,21 @@
                 const uint8_t* data_chunks[],
                 uint32_t data_chunck_length[],
                 uint8_t* mac, int32_t* mac_length ) {
-    HMAC_CTX ctx;
-    HMAC_CTX_init(&ctx);
-    HMAC_Init_ex(&ctx, key, key_length, EVP_sha1(), NULL);
+    HMAC_CTX* ctx = HMAC_CTX_new();
+    HMAC_Init_ex(ctx, key, key_length, EVP_sha1(), NULL);
     while (*data_chunks) {
-        HMAC_Update(&ctx, *data_chunks, *data_chunck_length);
+        HMAC_Update(ctx, *data_chunks, *data_chunck_length);
         data_chunks ++;
         data_chunck_length ++;
     }
-    HMAC_Final(&ctx, mac, reinterpret_cast<uint32_t*>(mac_length));
-    HMAC_CTX_cleanup(&ctx);
+    HMAC_Final(ctx, mac, reinterpret_cast<uint32_t*>(mac_length));
+    HMAC_CTX_free(ctx);
 }

 void* createSha1HmacContext(uint8_t* key, int32_t key_length)
 {
-    HMAC_CTX* ctx = (HMAC_CTX*)malloc(sizeof(HMAC_CTX));
+    HMAC_CTX* ctx = HMAC_CTX_new();

-    HMAC_CTX_init(ctx);
     HMAC_Init_ex(ctx, key, key_length, EVP_sha1(), NULL);
     return ctx;
 }
@@ -100,7 +98,6 @@
 void freeSha1HmacContext(void* ctx)
 {
     if (ctx) {
-        HMAC_CTX_cleanup((HMAC_CTX*)ctx);
-        free(ctx);
+        HMAC_CTX_free((HMAC_CTX*)ctx);
     }
-}
\ No newline at end of file
+}
diff --color -Naur ccrtp-2.1.2/src/Makefile.am ccrtp-2.1.2-b/src/Makefile.am
--- ccrtp-2.1.2/src/Makefile.am 2015-01-11 15:43:52.000000000 +0100
+++ ccrtp-2.1.2-b/src/Makefile.am       2025-07-24 16:17:59.562599744 +0200
@@ -23,7 +23,7 @@

 if SRTP_OPENSSL
 srtp_src_o =    ccrtp/crypto/openssl/hmac.cpp \
-        ccrtp/crypto/openssl/SrtpSymCrypto.cpp
+        ccrtp/crypto/openssl/SrtpSymCrypto.cpp ccrtp/crypto/twofish.c
 endif

 if SRTP_GCRYPT

Marek72 commented on 2025-06-04 20:34 (UTC)

Same error here.

DrTebi commented on 2025-03-02 00:51 (UTC)

I am getting the following error when running makepkg:

/usr/include/openssl/hmac.h:43:27: note: declared here
   43 | OSSL_DEPRECATEDIN_3_0 int HMAC_Init_ex(HMAC_CTX *ctx, const void *key, int len,
      |                           ^~~~~~~~~~~~
ccrtp/crypto/openssl/hmac.cpp:93:20: warning: 'int HMAC_Update(HMAC_CTX*, const unsigned char*, size_t)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
   93 |         HMAC_Update(pctx, *data, *data_length);
      |         ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/openssl/hmac.h:45:27: note: declared here
   45 | OSSL_DEPRECATEDIN_3_0 int HMAC_Update(HMAC_CTX *ctx, const unsigned char *data,
      |                           ^~~~~~~~~~~
ccrtp/crypto/openssl/hmac.cpp:97:15: warning: 'int HMAC_Final(HMAC_CTX*, unsigned char*, unsigned int*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
   97 |     HMAC_Final(pctx, mac, reinterpret_cast<uint32_t*>(mac_length) );
      |     ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/openssl/hmac.h:47:27: note: declared here
   47 | OSSL_DEPRECATEDIN_3_0 int HMAC_Final(HMAC_CTX *ctx, unsigned char *md,
      |                           ^~~~~~~~~~
ccrtp/crypto/openssl/hmac.cpp: In function 'void freeSha1HmacContext(void*)':
ccrtp/crypto/openssl/hmac.cpp:103:9: error: 'HMAC_CTX_cleanup' was not declared in this scope; did you mean 'HMAC_CTX_reset'?
  103 |         HMAC_CTX_cleanup((HMAC_CTX*)ctx);
      |         ^~~~~~~~~~~~~~~~
      |         HMAC_CTX_reset

There are more errors before this... all related to HMAC_CTX

tredaelli commented on 2015-08-31 09:02 (UTC)

@youngunix are you kidding?

Pietro_Pizzi commented on 2015-08-22 19:08 (UTC)

@youngunix: Thx for pointing out that a remove is a possibility :). I don't have twinkle and i don't know why i have ccrtp installed at all. So i removed it, works good!

Pietro_Pizzi commented on 2015-08-22 19:01 (UTC)

At the ucommon pkg you can read why the link don't help, at least for me.

youngunix commented on 2015-08-20 21:56 (UTC)

You've got too many issues with your packages "ccrtp & ucommon", both their git links are dead and PGP keys are invalid. You need to verify your keys and resubmit them. For all users; I recommend you delete the two packages 'cause this isn't safe to begin with. You can use the following command: "sudo pacman -R libzrtpcpp ccrtp ucommon".