summaryrefslogtreecommitdiff
path: root/Cryptlib/OpenSSL/crypto/uid.c
diff options
context:
space:
mode:
authorMathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com>2016-07-26 12:03:25 -0400
committerMathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com>2016-07-26 12:03:25 -0400
commit1854cb28d1aec5a415474c27b9689fb9926ec4ca (patch)
tree45b4dc5bcbe5a1d8f535977d9242ca1226e6f27c /Cryptlib/OpenSSL/crypto/uid.c
parentc2f285a93f50edc40d6f2b8114e4f9af812398d0 (diff)
parentd3819813b8e0a64400ddf3ce033bae7c3f245508 (diff)
downloadefi-boot-shim-1854cb28d1aec5a415474c27b9689fb9926ec4ca.tar.gz
efi-boot-shim-1854cb28d1aec5a415474c27b9689fb9926ec4ca.zip
New upstream release.
Diffstat (limited to 'Cryptlib/OpenSSL/crypto/uid.c')
-rw-r--r--Cryptlib/OpenSSL/crypto/uid.c35
1 files changed, 17 insertions, 18 deletions
diff --git a/Cryptlib/OpenSSL/crypto/uid.c b/Cryptlib/OpenSSL/crypto/uid.c
index b1fd52ba..90694c67 100644
--- a/Cryptlib/OpenSSL/crypto/uid.c
+++ b/Cryptlib/OpenSSL/crypto/uid.c
@@ -7,7 +7,7 @@
* are met:
*
* 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
+ * notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
@@ -58,32 +58,31 @@
#if defined(__OpenBSD__) || (defined(__FreeBSD__) && __FreeBSD__ > 2)
-#include OPENSSL_UNISTD
+# include OPENSSL_UNISTD
int OPENSSL_issetugid(void)
- {
- return issetugid();
- }
+{
+ return issetugid();
+}
#elif defined(OPENSSL_SYS_WIN32) || defined(OPENSSL_SYS_VXWORKS) || defined(OPENSSL_SYS_NETWARE)
int OPENSSL_issetugid(void)
- {
- return 0;
- }
+{
+ return 0;
+}
#else
-#include OPENSSL_UNISTD
-#include <sys/types.h>
+# include OPENSSL_UNISTD
+# include <sys/types.h>
int OPENSSL_issetugid(void)
- {
- if (getuid() != geteuid()) return 1;
- if (getgid() != getegid()) return 1;
- return 0;
- }
+{
+ if (getuid() != geteuid())
+ return 1;
+ if (getgid() != getegid())
+ return 1;
+ return 0;
+}
#endif
-
-
-