Fix NetBSD build by renaming the hmac function to avoid conflicts

This commit is contained in:
Victor Hora
2018-11-04 21:20:10 -05:00
parent 96e21b0f3e
commit b3fa87dc7c
3 changed files with 76 additions and 3 deletions

View File

@@ -27,8 +27,13 @@
#define INT32_MAX (2147483647)
#endif
#ifdef __NetBSD__
char DSOLOCAL *mschmac(modsec_rec *msr, const char *key, int key_len,
unsigned char *msg, int msglen);
#else
char DSOLOCAL *hmac(modsec_rec *msr, const char *key, int key_len,
unsigned char *msg, int msglen);
#endif
char DSOLOCAL *do_hash_link(modsec_rec *msr, char *link,
int type);
char DSOLOCAL *getkey(apr_pool_t *mp);