diff options
Diffstat (limited to 'sshd.c')
-rw-r--r-- | sshd.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -42,7 +42,7 @@ | |||
42 | */ | 42 | */ |
43 | 43 | ||
44 | #include "includes.h" | 44 | #include "includes.h" |
45 | RCSID("$OpenBSD: sshd.c,v 1.298 2004/07/11 17:48:47 deraadt Exp $"); | 45 | RCSID("$OpenBSD: sshd.c,v 1.299 2004/07/17 05:31:41 dtucker Exp $"); |
46 | 46 | ||
47 | #include <openssl/dh.h> | 47 | #include <openssl/dh.h> |
48 | #include <openssl/bn.h> | 48 | #include <openssl/bn.h> |
@@ -216,6 +216,9 @@ Buffer loginmsg; | |||
216 | /* global authentication context */ | 216 | /* global authentication context */ |
217 | Authctxt *the_authctxt = NULL; | 217 | Authctxt *the_authctxt = NULL; |
218 | 218 | ||
219 | /* message to be displayed after login */ | ||
220 | Buffer loginmsg; | ||
221 | |||
219 | /* Prototypes for various functions defined later in this file. */ | 222 | /* Prototypes for various functions defined later in this file. */ |
220 | void destroy_sensitive_data(void); | 223 | void destroy_sensitive_data(void); |
221 | void demote_sensitive_data(void); | 224 | void demote_sensitive_data(void); |
@@ -1680,6 +1683,9 @@ main(int ac, char **av) | |||
1680 | if (privsep_preauth(authctxt) == 1) | 1683 | if (privsep_preauth(authctxt) == 1) |
1681 | goto authenticated; | 1684 | goto authenticated; |
1682 | 1685 | ||
1686 | /* prepare buffer to collect messages to display to user after login */ | ||
1687 | buffer_init(&loginmsg); | ||
1688 | |||
1683 | /* perform the key exchange */ | 1689 | /* perform the key exchange */ |
1684 | /* authenticate user and start session */ | 1690 | /* authenticate user and start session */ |
1685 | if (compat20) { | 1691 | if (compat20) { |