[openssl-commits] [openssl] master update

yang.yang at baishancloud.com yang.yang at baishancloud.com
Thu Oct 11 03:23:17 UTC 2018

The branch master has been updated
       via  19ac1bf2de07214ee7ee6d2e118fa3aa8e5850f3 (commit)
      from  c2e33a05b1eb9dda988aebdeaa529973d7c22142 (commit)

- Log -----------------------------------------------------------------
commit 19ac1bf2de07214ee7ee6d2e118fa3aa8e5850f3
Author: Paul Yang <yang.yang at baishancloud.com>
Date:   Mon Oct 8 16:36:49 2018 +0800

    Fix compiling warnings in example code
    The example code in EVP_DigestInit.pod generates warnings if users try
    to compile it.
    [skip ci]
    Reviewed-by: Matt Caswell <matt at openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/7362)


Summary of changes:
 doc/man3/EVP_DigestInit.pod | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/doc/man3/EVP_DigestInit.pod b/doc/man3/EVP_DigestInit.pod
index 0fedd17..5ecbcc5 100644
--- a/doc/man3/EVP_DigestInit.pod
+++ b/doc/man3/EVP_DigestInit.pod
@@ -310,16 +310,17 @@ This example digests the data "Test Message\n" and "Hello World\n", using the
 digest name passed on the command line.
  #include <stdio.h>
+ #include <string.h>
  #include <openssl/evp.h>
- main(int argc, char *argv[])
+ int main(int argc, char *argv[])
      EVP_MD_CTX *mdctx;
      const EVP_MD *md;
      char mess1[] = "Test Message\n";
      char mess2[] = "Hello World\n";
      unsigned char md_value[EVP_MAX_MD_SIZE];
-     int md_len, i;
+     unsigned int md_len, i;
      if (argv[1] == NULL) {
          printf("Usage: mdtest digestname\n");

More information about the openssl-commits mailing list