summaryrefslogtreecommitdiff
path: root/Cryptlib/OpenSSL/crypto/uid.c
diff options
context:
space:
mode:
authorGary Ching-Pang Lin <glin@suse.com>2015-03-31 12:14:06 +0800
committerPeter Jones <pjones@redhat.com>2015-05-12 13:51:02 -0400
commit3285f5394161e2fde1045fd3f9753a625d03a1aa (patch)
treea3149decea22d31dfe81cc7054f55d65fc45f46a /Cryptlib/OpenSSL/crypto/uid.c
parentd7cbd4e3927ea272c709e3f0fd28d53fcc074c34 (diff)
downloadefi-boot-shim-3285f5394161e2fde1045fd3f9753a625d03a1aa.tar.gz
efi-boot-shim-3285f5394161e2fde1045fd3f9753a625d03a1aa.zip
Update Cryptlib and openssl
Update Cryptlib to r16559 and openssl to 0.9.8zf Signed-off-by: Gary Ching-Pang Lin <glin@suse.com>
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
-
-
-