Nuke the last of the windows related defines from the openssl apps.
authorjsing <jsing@openbsd.org>
Tue, 22 Apr 2014 14:54:13 +0000 (14:54 +0000)
committerjsing <jsing@openbsd.org>
Tue, 22 Apr 2014 14:54:13 +0000 (14:54 +0000)
ok deraadt@

lib/libssl/src/apps/apps.c
lib/libssl/src/apps/ciphers.c
lib/libssl/src/apps/engine.c
lib/libssl/src/apps/req.c
lib/libssl/src/apps/s_client.c
lib/libssl/src/apps/s_server.c
lib/libssl/src/apps/s_time.c
lib/libssl/src/apps/speed.c
lib/libssl/src/apps/x509.c

index 675d826..d2fc72f 100644 (file)
@@ -502,14 +502,6 @@ app_get_pass(BIO * err, char *arg, int keepbio)
                                    arg + 5);
                                return NULL;
                        }
-                       /*
-                        * Under _WIN32, which covers even Win64 and CE, file
-                        * descriptors referenced by BIO_s_fd are not inherited
-                        * by child process and therefore below is not an option.
-                        * It could have been an option if bss_fd.c was operating
-                        * on real Windows descriptors, such as those obtained
-                        * with CreateFile.
-                        */
                } else if (!strncmp(arg, "fd:", 3)) {
                        BIO *btmp;
                        i = atoi(arg + 3);
index ef2da82..e9712bc 100644 (file)
@@ -59,9 +59,6 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#ifdef OPENSSL_NO_STDIO
-#define APPS_WIN16
-#endif
 #include "apps.h"
 #include <openssl/err.h>
 #include <openssl/ssl.h>
index 7898c96..648d465 100644 (file)
@@ -60,9 +60,6 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#ifdef OPENSSL_NO_STDIO
-#define APPS_WIN16
-#endif
 #include "apps.h"
 #include <openssl/err.h>
 #ifndef OPENSSL_NO_ENGINE
index 8fac592..a4a3414 100644 (file)
@@ -66,9 +66,6 @@
 #include <stdlib.h>
 #include <time.h>
 #include <string.h>
-#ifdef OPENSSL_NO_STDIO
-#define APPS_WIN16
-#endif
 #include "apps.h"
 #include <openssl/bio.h>
 #include <openssl/evp.h>
index 94f02e8..871e696 100644 (file)
 #include <netdb.h>
 #include <sys/socket.h>
 #include <netinet/in.h>
-#ifdef OPENSSL_NO_STDIO
-#define APPS_WIN16
-#endif
 
 #include "apps.h"
 #include <openssl/x509.h>
index b5c6c2f..b6eb163 100644 (file)
 #include <sys/socket.h>
 
 #include <openssl/e_os2.h>
-#ifdef OPENSSL_NO_STDIO
-#define APPS_WIN16
-#endif
 
 #include <sys/types.h>
 
index d8f7294..a532a3f 100644 (file)
 #include <sys/socket.h>
 
 #include "apps.h"
-#ifdef OPENSSL_NO_STDIO
-#define APPS_WIN16
-#endif
 #include <openssl/x509.h>
 #include <openssl/ssl.h>
 #include <openssl/pem.h>
 #include "s_apps.h"
 #include <openssl/err.h>
-#ifdef WIN32_STUFF
-#include "winmain.h"
-#include "wintext.h"
-#endif
 #include <unistd.h>
 
 
@@ -385,15 +378,6 @@ s_time_main(int argc, char **argv)
        for (;;) {
                if (finishtime < (long) time(NULL))
                        break;
-#ifdef WIN32_STUFF
-
-               if (flushWinMsgs(0) == -1)
-                       goto end;
-
-               if (waitingToDie || exitNow)    /* we're dead */
-                       goto end;
-#endif
-
                if ((scon = doConnection(NULL)) == NULL)
                        goto end;
 
@@ -487,15 +471,6 @@ next:
        for (;;) {
                if (finishtime < (long) time(NULL))
                        break;
-
-#ifdef WIN32_STUFF
-               if (flushWinMsgs(0) == -1)
-                       goto end;
-
-               if (waitingToDie || exitNow)    /* we're dead */
-                       goto end;
-#endif
-
                if ((doConnection(scon)) == NULL)
                        goto end;
 
index f1bf226..ea9a0fd 100644 (file)
@@ -90,9 +90,6 @@
 #include <string.h>
 #include <math.h>
 #include "apps.h"
-#ifdef OPENSSL_NO_STDIO
-#define APPS_WIN16
-#endif
 #include <openssl/crypto.h>
 #include <openssl/rand.h>
 #include <openssl/err.h>
 
 #include <signal.h>
 
-#if defined(_WIN32) || defined(__CYGWIN__)
-#include <windows.h>
-#if defined(__CYGWIN__) && !defined(_WIN32)
- /*
-  * <windows.h> should define _WIN32, which normally is mutually exclusive
-  * with __CYGWIN__, but if it didn't...
-  */
-#define _WIN32
- /* this is done because Cygwin alarm() fails sometimes. */
-#endif
-#endif
-
 #include <openssl/bn.h>
 #ifndef OPENSSL_NO_DES
 #include <openssl/des.h>
index f714b81..319f288 100644 (file)
@@ -60,9 +60,6 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#ifdef OPENSSL_NO_STDIO
-#define APPS_WIN16
-#endif
 #include "apps.h"
 #include <openssl/bio.h>
 #include <openssl/asn1.h>