Deleted Added
full compact
sshconnect.h (98941) sshconnect.h (157019)
1/* $OpenBSD: sshconnect.h,v 1.17 2002/06/19 00:27:55 deraadt Exp $ */
1/* $OpenBSD: sshconnect.h,v 1.18 2005/12/06 22:38:28 reyk Exp $ */
2
3/*
4 * Copyright (c) 2000 Markus Friedl. All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:
9 * 1. Redistributions of source code must retain the above copyright

--- 34 unchanged lines hidden (view full) ---

44
45void ssh_kex(char *, struct sockaddr *);
46void ssh_kex2(char *, struct sockaddr *);
47
48void ssh_userauth1(const char *, const char *, char *, Sensitive *);
49void ssh_userauth2(const char *, const char *, char *, Sensitive *);
50
51void ssh_put_password(char *);
2
3/*
4 * Copyright (c) 2000 Markus Friedl. All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:
9 * 1. Redistributions of source code must retain the above copyright

--- 34 unchanged lines hidden (view full) ---

44
45void ssh_kex(char *, struct sockaddr *);
46void ssh_kex2(char *, struct sockaddr *);
47
48void ssh_userauth1(const char *, const char *, char *, Sensitive *);
49void ssh_userauth2(const char *, const char *, char *, Sensitive *);
50
51void ssh_put_password(char *);
52int ssh_local_cmd(const char *);
52
53
53
54/*
55 * Macros to raise/lower permissions.
56 */
57#define PRIV_START do { \
58 int save_errno = errno; \
59 (void)seteuid(original_effective_uid); \
60 errno = save_errno; \
61} while (0)
62
63#define PRIV_END do { \
64 int save_errno = errno; \
65 (void)seteuid(original_real_uid); \
66 errno = save_errno; \
67} while (0)
68
69#endif
54/*
55 * Macros to raise/lower permissions.
56 */
57#define PRIV_START do { \
58 int save_errno = errno; \
59 (void)seteuid(original_effective_uid); \
60 errno = save_errno; \
61} while (0)
62
63#define PRIV_END do { \
64 int save_errno = errno; \
65 (void)seteuid(original_real_uid); \
66 errno = save_errno; \
67} while (0)
68
69#endif