diff options
author | Ben Lindstrom <mouring@eviladmin.org> | 2002-06-21 00:41:51 +0000 |
---|---|---|
committer | Ben Lindstrom <mouring@eviladmin.org> | 2002-06-21 00:41:51 +0000 |
commit | cb72e4f6d2cf63cda22484ec90142689fed288f6 (patch) | |
tree | 3bc1bb95abd19df05ee0b3e78bad6cdba987837f /sshconnect.h | |
parent | 115422f918d86e007cb3c050e9c4d09102580089 (diff) |
- deraadt@cvs.openbsd.org 2002/06/19 00:27:55
[auth-bsdauth.c auth-skey.c auth1.c auth2-chall.c auth2-none.c authfd.c
authfd.h monitor_wrap.c msg.c nchan.c radix.c readconf.c scp.c sftp.1
ssh-add.1 ssh-add.c ssh-agent.1 ssh-agent.c ssh-keygen.1 ssh-keygen.c
ssh-keysign.c ssh.1 sshconnect.c sshconnect.h sshconnect2.c ttymodes.c
xmalloc.h]
KNF done automatically while reading....
Diffstat (limited to 'sshconnect.h')
-rw-r--r-- | sshconnect.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/sshconnect.h b/sshconnect.h index 48148833f..0be30fe69 100644 --- a/sshconnect.h +++ b/sshconnect.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: sshconnect.h,v 1.16 2002/06/11 04:14:26 markus Exp $ */ | 1 | /* $OpenBSD: sshconnect.h,v 1.17 2002/06/19 00:27:55 deraadt Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Copyright (c) 2000 Markus Friedl. All rights reserved. | 4 | * Copyright (c) 2000 Markus Friedl. All rights reserved. |
@@ -28,9 +28,9 @@ | |||
28 | 28 | ||
29 | typedef struct Sensitive Sensitive; | 29 | typedef struct Sensitive Sensitive; |
30 | struct Sensitive { | 30 | struct Sensitive { |
31 | Key **keys; | 31 | Key **keys; |
32 | int nkeys; | 32 | int nkeys; |
33 | int external_keysign; | 33 | int external_keysign; |
34 | }; | 34 | }; |
35 | 35 | ||
36 | int | 36 | int |
@@ -54,16 +54,16 @@ void ssh_put_password(char *); | |||
54 | /* | 54 | /* |
55 | * Macros to raise/lower permissions. | 55 | * Macros to raise/lower permissions. |
56 | */ | 56 | */ |
57 | #define PRIV_START do { \ | 57 | #define PRIV_START do { \ |
58 | int save_errno = errno; \ | 58 | int save_errno = errno; \ |
59 | (void)seteuid(original_effective_uid); \ | 59 | (void)seteuid(original_effective_uid); \ |
60 | errno = save_errno; \ | 60 | errno = save_errno; \ |
61 | } while (0) | 61 | } while (0) |
62 | 62 | ||
63 | #define PRIV_END do { \ | 63 | #define PRIV_END do { \ |
64 | int save_errno = errno; \ | 64 | int save_errno = errno; \ |
65 | (void)seteuid(original_real_uid); \ | 65 | (void)seteuid(original_real_uid); \ |
66 | errno = save_errno; \ | 66 | errno = save_errno; \ |
67 | } while (0) | 67 | } while (0) |
68 | 68 | ||
69 | #endif | 69 | #endif |