]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Prevent sha1_init et al from being undefined
authorTravis Cross <tc@traviscross.com>
Fri, 28 Feb 2014 18:17:25 +0000 (18:17 +0000)
committerTravis Cross <tc@traviscross.com>
Fri, 28 Feb 2014 18:33:32 +0000 (18:33 +0000)
sha1_init, sha1_update, and sha1_final were ending up as undefined
symbols in libfreeswitch.so because of the inline declaration, which
caused us to blow up while linking the freeswitch executable.  Declare
these as static inline instead.

libs/srtp/crypto/include/sha1.h

index 8b02f7681140f349f897f96b9d85302c5d3513c1..3708fd9cdb3857fae38df1b3644289aa4c4781fa 100644 (file)
@@ -67,18 +67,18 @@ typedef EVP_MD_CTX sha1_ctx_t;
  *
  */
 
-void inline sha1_init (sha1_ctx_t *ctx)
+static inline void sha1_init (sha1_ctx_t *ctx)
 {
     EVP_MD_CTX_init(ctx);
     EVP_DigestInit(ctx, EVP_sha1());
 }
 
-void inline sha1_update (sha1_ctx_t *ctx, const uint8_t *M, int octets_in_msg)
+static inline void sha1_update (sha1_ctx_t *ctx, const uint8_t *M, int octets_in_msg)
 {
     EVP_DigestUpdate(ctx, M, octets_in_msg);
 }
 
-void inline sha1_final (sha1_ctx_t *ctx, uint32_t *output)
+static inline void sha1_final (sha1_ctx_t *ctx, uint32_t *output)
 {
     unsigned int len = 0;