net-snmp/net-snmp-5.2.1-typeclash.diff
Radek Vokál b103b40370 - fixed unexpected length for type ASN_UNSIGNED (#151892)
- fixed uptime problems on ia64
2005-03-24 12:41:07 +00:00

31 lines
799 B
Diff

--- snmplib/scapi.c
+++ snmplib/scapi.c
@@ -334,6 +334,7 @@
int rval = SNMPERR_SUCCESS;
const EVP_MD *hashfn;
EVP_MD_CTX ctx, *cptr;
+ unsigned int tmp_len;
#endif
DEBUGTRACE;
@@ -379,13 +380,16 @@
/** do the final pass */
#if defined(OLD_DES)
- EVP_DigestFinal(cptr, MAC, MAC_len);
+ EVP_DigestFinal(cptr, MAC, &tmp_len);
+ *MAC_len = tmp_len;
#else /* !OLD_DES */
if (SSLeay() < 0x907000) {
- EVP_DigestFinal(cptr, MAC, MAC_len);
+ EVP_DigestFinal(cptr, MAC, &tmp_len);
+ *MAC_len = tmp_len;
free(cptr);
} else {
- EVP_DigestFinal_ex(cptr, MAC, MAC_len);
+ EVP_DigestFinal_ex(cptr, MAC, &tmp_len);
+ *MAC_len = tmp_len;
EVP_MD_CTX_cleanup(cptr);
}
#endif