|
Lines 34-39
Link Here
|
| 34 |
#include "dh.h" |
34 |
#include "dh.h" |
| 35 |
#include "kex.h" |
35 |
#include "kex.h" |
| 36 |
#include "auth.h" |
36 |
#include "auth.h" |
|
|
37 |
#include "auth-options.h" |
| 37 |
#include "buffer.h" |
38 |
#include "buffer.h" |
| 38 |
#include "bufaux.h" |
39 |
#include "bufaux.h" |
| 39 |
#include "packet.h" |
40 |
#include "packet.h" |
|
Lines 310-316
Link Here
|
| 310 |
Buffer m; |
311 |
Buffer m; |
| 311 |
u_char *blob; |
312 |
u_char *blob; |
| 312 |
u_int len; |
313 |
u_int len; |
| 313 |
int allowed = 0; |
314 |
int allowed = 0, have_forced = 0; |
| 314 |
|
315 |
|
| 315 |
debug3("%s entering", __func__); |
316 |
debug3("%s entering", __func__); |
| 316 |
|
317 |
|
|
Lines 332-337
Link Here
|
| 332 |
|
333 |
|
| 333 |
allowed = buffer_get_int(&m); |
334 |
allowed = buffer_get_int(&m); |
| 334 |
|
335 |
|
|
|
336 |
/* fake forced command */ |
| 337 |
if (forced_command) { |
| 338 |
xfree(forced_command); |
| 339 |
forced_command = NULL; |
| 340 |
} |
| 341 |
have_forced = buffer_get_int(&m); |
| 342 |
forced_command = have_forced ? xstrdup("true") : NULL; |
| 343 |
|
| 335 |
/* Send potential debug messages */ |
344 |
/* Send potential debug messages */ |
| 336 |
mm_send_debug(&m); |
345 |
mm_send_debug(&m); |
| 337 |
|
346 |
|
|
Lines 834-840
Link Here
|
| 834 |
Key *key; |
843 |
Key *key; |
| 835 |
u_char *blob; |
844 |
u_char *blob; |
| 836 |
u_int blen; |
845 |
u_int blen; |
| 837 |
int allowed = 0; |
846 |
int allowed = 0, have_forced = 0; |
| 838 |
|
847 |
|
| 839 |
debug3("%s entering", __func__); |
848 |
debug3("%s entering", __func__); |
| 840 |
|
849 |
|
|
Lines 846-851
Link Here
|
| 846 |
|
855 |
|
| 847 |
allowed = buffer_get_int(&m); |
856 |
allowed = buffer_get_int(&m); |
| 848 |
|
857 |
|
|
|
858 |
/* fake forced command */ |
| 859 |
if (forced_command) { |
| 860 |
xfree(forced_command); |
| 861 |
forced_command = NULL; |
| 862 |
} |
| 863 |
have_forced = buffer_get_int(&m); |
| 864 |
forced_command = have_forced ? xstrdup("true") : NULL; |
| 865 |
|
| 849 |
if (allowed && rkey != NULL) { |
866 |
if (allowed && rkey != NULL) { |
| 850 |
blob = buffer_get_string(&m, &blen); |
867 |
blob = buffer_get_string(&m, &blen); |
| 851 |
if ((key = key_from_blob(blob, blen)) == NULL) |
868 |
if ((key = key_from_blob(blob, blen)) == NULL) |