version 1.13.4.1, 2002/06/26 15:30:39 |
version 1.14, 2002/05/23 19:24:30 |
|
|
|
|
typedef struct Sensitive Sensitive; |
typedef struct Sensitive Sensitive; |
struct Sensitive { |
struct Sensitive { |
Key **keys; |
Key **keys; |
int nkeys; |
int nkeys; |
int external_keysign; |
int external_keysign; |
}; |
}; |
|
|
int |
int |
ssh_connect(const char *, struct sockaddr_storage *, u_short, int, int, |
ssh_connect(const char *, struct sockaddr_storage *, u_short, int, int, |
int, const char *); |
int, struct passwd *, const char *); |
|
|
void |
void |
ssh_login(Sensitive *, const char *, struct sockaddr *, struct passwd *); |
ssh_login(Sensitive *, const char *, struct sockaddr *, struct passwd *); |
|
|
void ssh_userauth2(const char *, const char *, char *, Sensitive *); |
void ssh_userauth2(const char *, const char *, char *, Sensitive *); |
|
|
void ssh_put_password(char *); |
void ssh_put_password(char *); |
|
|
|
|
/* |
|
* Macros to raise/lower permissions. |
|
*/ |
|
#define PRIV_START do { \ |
|
int save_errno = errno; \ |
|
(void)seteuid(original_effective_uid); \ |
|
errno = save_errno; \ |
|
} while (0) |
|
|
|
#define PRIV_END do { \ |
|
int save_errno = errno; \ |
|
(void)seteuid(original_real_uid); \ |
|
errno = save_errno; \ |
|
} while (0) |
|
|
|
#endif |
#endif |