diff options
Diffstat (limited to 'demos/digest')
-rwxr-xr-x | demos/digest/BIO_f_md.c | 2 | ||||
-rw-r--r-- | demos/digest/EVP_MD_demo.c | 4 | ||||
-rwxr-xr-x | demos/digest/EVP_MD_stdin.c | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/demos/digest/BIO_f_md.c b/demos/digest/BIO_f_md.c index ce1dfcc34a..2ecc53e137 100755 --- a/demos/digest/BIO_f_md.c +++ b/demos/digest/BIO_f_md.c @@ -68,7 +68,7 @@ int main(int argc, char * argv[]) fprintf(stderr, "EVP_MD_fetch did not find SHA3-512.\n"); goto cleanup; } - digest_size = EVP_MD_size(md); + digest_size = EVP_MD_get_size(md); digest_value = OPENSSL_malloc(digest_size); if (digest_value == NULL) { fprintf(stderr, "Can't allocate %lu bytes for the digest value.\n", (unsigned long)digest_size); 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; } diff --git a/demos/digest/EVP_MD_stdin.c b/demos/digest/EVP_MD_stdin.c index 3e24f342cb..71a3d325a3 100755 --- a/demos/digest/EVP_MD_stdin.c +++ b/demos/digest/EVP_MD_stdin.c @@ -63,9 +63,9 @@ int demonstrate_digest(BIO *input) return 0; } /* 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; } |