Correct some badly formated preprocessor lines
authorRichard Levitte <levitte@openssl.org>
Tue, 25 Apr 2017 13:35:41 +0000 (15:35 +0200)
committerRichard Levitte <levitte@openssl.org>
Tue, 25 Apr 2017 13:44:48 +0000 (15:44 +0200)
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3304)

apps/s_server.c
crypto/srp/srp_vfy.c
test/dtlsv1listentest.c

index ebf772da07c8cba50ab63ffc6763daa25e21293c..d842fb8f53927fb1a58297ca150adbd1a9f1b08f 100644 (file)
@@ -2125,11 +2125,11 @@ static int sv_body(int s, int stype, int prot, unsigned char *context)
     struct timeval *timeoutp;
 #endif
 #ifndef OPENSSL_NO_DTLS
- #ifndef OPENSSL_NO_SCTP
+ifndef OPENSSL_NO_SCTP
     int isdtls = (stype == SOCK_DGRAM || prot == IPPROTO_SCTP);
- #else
+else
     int isdtls = (stype == SOCK_DGRAM);
- #endif
+endif
 #endif
 
     buf = app_malloc(bufsize, "server buffer");
@@ -2163,11 +2163,11 @@ static int sv_body(int s, int stype, int prot, unsigned char *context)
     }
 #ifndef OPENSSL_NO_DTLS
     if (isdtls) {
-#ifndef OPENSSL_NO_SCTP
+# ifndef OPENSSL_NO_SCTP
         if (prot == IPPROTO_SCTP)
             sbio = BIO_new_dgram_sctp(s, BIO_NOCLOSE);
         else
-#endif
+# endif
             sbio = BIO_new_dgram(s, BIO_NOCLOSE);
 
         if (enable_timeouts) {
index 29b7afcb047b6f80401c8b61df937dde7c76b77a..20e42584276b68ab46d2c6c9dd15d5dad6f82a0e 100644 (file)
@@ -474,7 +474,7 @@ static SRP_user_pwd *find_user(SRP_VBASE *vb, char *username)
     return NULL;
 }
 
- #if OPENSSL_API_COMPAT < 0x10100000L
+if OPENSSL_API_COMPAT < 0x10100000L
 /*
  * DEPRECATED: use SRP_VBASE_get1_by_user instead.
  * This method ignores the configured seed and fails for an unknown user.
@@ -485,7 +485,7 @@ SRP_user_pwd *SRP_VBASE_get_by_user(SRP_VBASE *vb, char *username)
 {
     return find_user(vb, username);
 }
-#endif
+# endif
 
 /*
  * Ownership of the returned pointer is released to the caller.
index 91d78e1301a7781df412e81b8d574861369c4739..dfbc7aebb877fa18078775af0a3b0bc14e8b9739 100644 (file)
@@ -13,7 +13,7 @@
 #include <openssl/err.h>
 #include <openssl/conf.h>
 #ifndef OPENSSL_NO_ENGINE
- #include <openssl/engine.h>
+include <openssl/engine.h>
 #endif
 #include "e_os.h"