[openssl-commits] [openssl] OpenSSL_1_1_1-stable update

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


The branch OpenSSL_1_1_1-stable has been updated
       via  a53561e822f151071a834ddeb3870b1363ac9e1e (commit)
      from  7f0e220f4d842a7694ed0f8ff9675745977ce9a0 (commit)


- Log -----------------------------------------------------------------
commit a53561e822f151071a834ddeb3870b1363ac9e1e
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)
    
    (cherry picked from commit 19ac1bf2de07214ee7ee6d2e118fa3aa8e5850f3)

-----------------------------------------------------------------------

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