svn commit: r376717 - in head/net/libsrtp: . files
Tijl Coosemans
tijl at FreeBSD.org
Sat Jan 10 16:48:31 UTC 2015
Author: tijl
Date: Sat Jan 10 16:48:30 2015
New Revision: 376717
URL: https://svnweb.freebsd.org/changeset/ports/376717
QAT: https://qat.redports.org/buildarchive/r376717/
Log:
Mark some inline functions static such that gcc (in C89 mode) doesn't
export them. Clang already doesn't export them because it assumes C99 by
default. This fixes net/ortp on systems without clang.
Added:
head/net/libsrtp/files/patch-crypto-include-sha1.h (contents, props changed)
Modified:
head/net/libsrtp/Makefile
Modified: head/net/libsrtp/Makefile
==============================================================================
--- head/net/libsrtp/Makefile Sat Jan 10 16:31:39 2015 (r376716)
+++ head/net/libsrtp/Makefile Sat Jan 10 16:48:30 2015 (r376717)
@@ -4,6 +4,7 @@
PORTNAME= libsrtp
DISTVERSIONPREFIX= v
DISTVERSION= 1.5.0
+PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= GHR
Added: head/net/libsrtp/files/patch-crypto-include-sha1.h
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/net/libsrtp/files/patch-crypto-include-sha1.h Sat Jan 10 16:48:30 2015 (r376717)
@@ -0,0 +1,23 @@
+--- crypto/include/sha1.h.orig 2014-10-13 14:35:33 UTC
++++ crypto/include/sha1.h
+@@ -68,17 +68,20 @@ typedef EVP_MD_CTX sha1_ctx_t;
+ *
+ */
+
++static
+ void inline sha1_init (sha1_ctx_t *ctx)
+ {
+ EVP_MD_CTX_init(ctx);
+ EVP_DigestInit(ctx, EVP_sha1());
+ }
+
++static
+ void inline sha1_update (sha1_ctx_t *ctx, const uint8_t *M, int octets_in_msg)
+ {
+ EVP_DigestUpdate(ctx, M, octets_in_msg);
+ }
+
++static
+ void inline sha1_final (sha1_ctx_t *ctx, uint32_t *output)
+ {
+ unsigned int len = 0;
More information about the svn-ports-all
mailing list