summaryrefslogtreecommitdiff
path: root/demos/digest/EVP_MD_demo.c
diff options
context:
space:
mode:
Diffstat (limited to 'demos/digest/EVP_MD_demo.c')
-rw-r--r--demos/digest/EVP_MD_demo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/demos/digest/EVP_MD_demo.c b/demos/digest/EVP_MD_demo.c
index 77146e3f00..99589bd344 100644
--- a/demos/digest/EVP_MD_demo.c
+++ b/demos/digest/EVP_MD_demo.c
@@ -105,9 +105,9 @@ int demonstrate_digest(void)
goto cleanup;
}
/* Determine the length of the fetched digest type */
- digest_length = EVP_MD_size(message_digest);
+ digest_length = EVP_MD_get_size(message_digest);
if (digest_length <= 0) {
- fprintf(stderr, "EVP_MD_size returned invalid size.\n");
+ fprintf(stderr, "EVP_MD_get_size returned invalid size.\n");
goto cleanup;
}