Hi All, I have a function which add a list of EVP_digest that I want to look up to. Later on, I would like to free these digest from this look up table.
Below is a snipet of the function that add these digest into the openssl's lookup table: /* Add EVP_MD digest into a lookup table */ if((EVP_add_digest(EVP_sha1()) <= 0) || (EVP_add_digest(EVP_sha224()) <= 0) || (EVP_add_digest(EVP_sha256()) <= 0) || (EVP_add_digest(EVP_sha384()) <= 0) || (EVP_add_digest(EVP_sha512()) <= 0)) { printf("Error adding EVP_sha1, EVP_sha224, EVP_sha256, EVP_sha384, EVP_sha512 into a lookup table\n"); } else { retStatus = 1; } After I finish doing my lookup, I would like to clean the lookup table. For this, I called the EVP_cleanup(). My question is, when the EVP_cleanup() is called, does EVP_cleanup() smart enough to just clean these digests or will it cause unexpected results? Thanks, Erwin