On Fri 2017-10-27 04:34:01-0400 Josef wrote: > From my point of view, I have done all that I could.
I have a question about one part of the patch: diff -urNp old/snmplib/scapi.c new/snmplib/scapi.c --- old/snmplib/scapi.c 2014-12-08 21:23:22.000000000 +0100 +++ new/snmplib/scapi.c 2017-02-20 10:27:34.152379515 +0100 @@ -627,14 +627,14 @@ sc_hash(const oid * hashtype, size_t has return SNMPERR_GENERR; /** initialize the pointer */ -#ifdef HAVE_EVP_MD_CTX_CREATE - cptr = EVP_MD_CTX_create(); +#ifdef HAVE_EVP_MD_CTX_NEW + cptr = EVP_MD_CTX_new(); #else cptr = malloc(sizeof(*cptr)); #if defined(OLD_DES) memset(cptr, 0, sizeof(*cptr)); #else - EVP_MD_CTX_init(cptr); + EVP_MD_CTX_init(&cptr); #endif #endif if (!EVP_DigestInit(cptr, hashfn)) { @@ -648,11 +648,11 @@ sc_hash(const oid * hashtype, size_t has /** do the final pass */ EVP_DigestFinal(cptr, MAC, &tmp_len); *MAC_len = tmp_len; -#ifdef HAVE_EVP_MD_CTX_DESTROY - EVP_MD_CTX_destroy(cptr); +#ifdef HAVE_EVP_MD_CTX_FREE + EVP_MD_CTX_free(cptr); #else #if !defined(OLD_DES) - EVP_MD_CTX_cleanup(cptr); + EVP_MD_CTX_cleanup(&cptr); #endif free(cptr); #endif My question is about the changes for EVP_MD_CTX_init(&cptr) and EVP_MD_CTX_cleanup(&cptr). You changed the arguments from cptr to &cptr, but both these calls are in an ifdef where HAVE_EVP_MD_CTX_NEW is not defined. That should mean that it's an older version of openssl, so shouldn't the argument be the pointer (ctpr) and not its address? Robert ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders