diff options
Diffstat (limited to 'net/libsrtp/files/patch-crypto-include-sha1.h')
-rw-r--r-- | net/libsrtp/files/patch-crypto-include-sha1.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/net/libsrtp/files/patch-crypto-include-sha1.h b/net/libsrtp/files/patch-crypto-include-sha1.h new file mode 100644 index 000000000000..a2857a7f68c3 --- /dev/null +++ b/net/libsrtp/files/patch-crypto-include-sha1.h @@ -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; |