Mercurial > dropbear
comparison process-packet.c @ 594:a98a2138364a
Improve capitalisation for all logged strings
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Wed, 23 Feb 2011 15:50:30 +0000 |
parents | afb089e70892 |
children | 9a5438271556 |
comparison
equal
deleted
inserted
replaced
593:ea103e4476ce | 594:a98a2138364a |
---|---|
63 goto out; | 63 goto out; |
64 | 64 |
65 case SSH_MSG_UNIMPLEMENTED: | 65 case SSH_MSG_UNIMPLEMENTED: |
66 /* debugging XXX */ | 66 /* debugging XXX */ |
67 TRACE(("SSH_MSG_UNIMPLEMENTED")) | 67 TRACE(("SSH_MSG_UNIMPLEMENTED")) |
68 dropbear_exit("received SSH_MSG_UNIMPLEMENTED"); | 68 dropbear_exit("Received SSH_MSG_UNIMPLEMENTED"); |
69 | 69 |
70 case SSH_MSG_DISCONNECT: | 70 case SSH_MSG_DISCONNECT: |
71 /* TODO cleanup? */ | 71 /* TODO cleanup? */ |
72 dropbear_close("Disconnect received"); | 72 dropbear_close("Disconnect received"); |
73 } | 73 } |
75 /* This applies for KEX, where the spec says the next packet MUST be | 75 /* This applies for KEX, where the spec says the next packet MUST be |
76 * NEWKEYS */ | 76 * NEWKEYS */ |
77 if (ses.requirenext != 0) { | 77 if (ses.requirenext != 0) { |
78 if (ses.requirenext != type) { | 78 if (ses.requirenext != type) { |
79 /* TODO send disconnect? */ | 79 /* TODO send disconnect? */ |
80 dropbear_exit("unexpected packet type %d, expected %d", type, | 80 dropbear_exit("Unexpected packet type %d, expected %d", type, |
81 ses.requirenext); | 81 ses.requirenext); |
82 } else { | 82 } else { |
83 /* Got what we expected */ | 83 /* Got what we expected */ |
84 ses.requirenext = 0; | 84 ses.requirenext = 0; |
85 } | 85 } |
97 /* Kindly the protocol authors gave all the preauth packets type values | 97 /* Kindly the protocol authors gave all the preauth packets type values |
98 * less-than-or-equal-to 60 ( == MAX_UNAUTH_PACKET_TYPE ). | 98 * less-than-or-equal-to 60 ( == MAX_UNAUTH_PACKET_TYPE ). |
99 * NOTE: if the protocol changes and new types are added, revisit this | 99 * NOTE: if the protocol changes and new types are added, revisit this |
100 * assumption */ | 100 * assumption */ |
101 if ( !ses.authstate.authdone && type > MAX_UNAUTH_PACKET_TYPE ) { | 101 if ( !ses.authstate.authdone && type > MAX_UNAUTH_PACKET_TYPE ) { |
102 dropbear_exit("received message %d before userauth", type); | 102 dropbear_exit("Received message %d before userauth", type); |
103 } | 103 } |
104 | 104 |
105 for (i = 0; ; i++) { | 105 for (i = 0; ; i++) { |
106 if (ses.packettypes[i].type == 0) { | 106 if (ses.packettypes[i].type == 0) { |
107 /* end of list */ | 107 /* end of list */ |