[openssl-commits] [openssl] master update

Richard Levitte levitte at openssl.org
Wed May 25 22:48:28 UTC 2016


The branch master has been updated
       via  dc6b5c7beb9f637f6cf5b5412e810bd0a9e1983b (commit)
      from  656bbdc68c4f6e79209cb7622fac0ca1301dee24 (commit)


- Log -----------------------------------------------------------------
commit dc6b5c7beb9f637f6cf5b5412e810bd0a9e1983b
Author: Richard Levitte <levitte at openssl.org>
Date:   Wed May 25 23:35:54 2016 +0200

    Handle Visual C warning about non-standard function names.
    
    Visual C version from version 2003 complain about certain function
    names, for example:
    
        apps\apps.c(2572) : warning C4996: 'open': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _open. See online help for details.
    
    This adds preprocessor aliases for them in e_os.h.
    
    Additionally, crypto/conf/conf_lib.c needs to include e_os.h to catch
    those aliases.
    
    RT#4488
    RT#4489
    
    Reviewed-by: Matt Caswell <matt at openssl.org>

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

Summary of changes:
 crypto/conf/conf_lib.c | 1 +
 e_os.h                 | 7 +++++++
 2 files changed, 8 insertions(+)

diff --git a/crypto/conf/conf_lib.c b/crypto/conf/conf_lib.c
index a1e42eb..c998373 100644
--- a/crypto/conf/conf_lib.c
+++ b/crypto/conf/conf_lib.c
@@ -15,6 +15,7 @@
 #include <openssl/conf.h>
 #include <openssl/conf_api.h>
 #include <openssl/lhash.h>
+#include "e_os.h"
 
 static CONF_METHOD *default_CONF_method = NULL;
 
diff --git a/e_os.h b/e_os.h
index 1c4c204..53e0ecf 100644
--- a/e_os.h
+++ b/e_os.h
@@ -469,6 +469,13 @@ struct servent *PASCAL getservbyname(const char *, const char *);
 # if defined(OPENSSL_SYS_WINDOWS)
 #  define strcasecmp _stricmp
 #  define strncasecmp _strnicmp
+#  if (_MSC_VER >= 1310)
+#   define open _open
+#   define fdopen _fdopen
+#   define close _close
+#   define strdup _strdup
+#   define unlink _unlink
+#  endif
 # elif defined(OPENSSL_SYS_VMS)
 /* VMS below version 7.0 doesn't have strcasecmp() */
 #  include "internal/o_str.h"


More information about the openssl-commits mailing list