mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-01 11:32:48 -05:00
Formatting: miscellaneous.
This patch fixes a few other whitespace and formatting issues which were pointed out by the bulk-reindent or which I spotted in passing, some involving manual editing to break lines more nicely. I think the weirdest hunk in here is the one in windows/window.c TranslateKey() where _half_ of an assignment statement inside an 'if' was on the same line as the trailing paren of the if condition. No idea at all how that one managed to happen!
This commit is contained in:
@ -56,7 +56,7 @@ static const gss_OID_desc oids[] = {
|
||||
*
|
||||
* The implementation must reserve static storage for a
|
||||
* gss_OID_desc object containing the value */
|
||||
{10, (void *)"\x2a\x86\x48\x86\xf7\x12\x01\x02\x01\x04"},
|
||||
{10, (void *)"\x2a\x86\x48\x86\xf7\x12\x01\x02\x01\x04"},
|
||||
/* corresponding to an object-identifier value of {iso(1)
|
||||
* member-body(2) Unites States(840) mit(113554) infosys(1)
|
||||
* gssapi(2) generic(1) service_name(4)}. The constant
|
||||
@ -75,7 +75,7 @@ static const gss_OID_desc oids[] = {
|
||||
* The implementation must reserve static storage for a
|
||||
* gss_OID_desc object containing the value */
|
||||
{6, (void *)"\x2b\x06\x01\x05\x06\x04"},
|
||||
/* corresponding to an object-identifier value of
|
||||
/* corresponding to an object-identifier value of
|
||||
* {1(iso), 3(org), 6(dod), 1(internet), 5(security),
|
||||
* 6(nametypes), 4(gss-api-exported-name)}. The constant
|
||||
* GSS_C_NT_EXPORT_NAME should be initialized to point
|
||||
|
@ -514,7 +514,7 @@ void portfwd_raw_setup(Channel *pfchan, Socket *s, SshChannel *sc)
|
||||
}
|
||||
|
||||
/*
|
||||
called when someone connects to the local port
|
||||
* called when someone connects to the local port
|
||||
*/
|
||||
|
||||
static int pfl_accepting(Plug *p, accept_fn_t constructor, accept_ctx_t ctx)
|
||||
|
@ -283,8 +283,7 @@ bool fxp_init(void)
|
||||
return false;
|
||||
}
|
||||
if (remotever > SFTP_PROTO_VERSION) {
|
||||
fxp_internal_error(
|
||||
"remote protocol is more advanced than we support");
|
||||
fxp_internal_error("remote protocol is more advanced than we support");
|
||||
sftp_pkt_free(pktin);
|
||||
return false;
|
||||
}
|
||||
|
@ -2192,9 +2192,9 @@ static void ssh2_transport_reconfigure(PacketProtocolLayer *ppl, Conf *conf)
|
||||
for (i = 0; i < CIPHER_MAX; i++)
|
||||
if (conf_get_int_int(s->conf, CONF_ssh_cipherlist, i) !=
|
||||
conf_get_int_int(conf, CONF_ssh_cipherlist, i)) {
|
||||
rekey_reason = "cipher settings changed";
|
||||
rekey_mandatory = true;
|
||||
}
|
||||
rekey_reason = "cipher settings changed";
|
||||
rekey_mandatory = true;
|
||||
}
|
||||
if (conf_get_bool(s->conf, CONF_ssh2_des_cbc) !=
|
||||
conf_get_bool(conf, CONF_ssh2_des_cbc)) {
|
||||
rekey_reason = "cipher settings changed";
|
||||
|
@ -870,7 +870,7 @@ static void ssh2_userauth_process_queue(PacketProtocolLayer *ppl)
|
||||
agentreq = strbuf_new_for_agent_query();
|
||||
put_byte(agentreq, SSH2_AGENTC_SIGN_REQUEST);
|
||||
put_stringpl(agentreq, ptrlen_from_strbuf(
|
||||
s->agent_keys[s->agent_key_index].blob));
|
||||
s->agent_keys[s->agent_key_index].blob));
|
||||
/* Now the data to be signed... */
|
||||
sigdata = strbuf_new();
|
||||
ssh2_userauth_add_session_id(s, sigdata);
|
||||
@ -1223,8 +1223,9 @@ static void ssh2_userauth_process_queue(PacketProtocolLayer *ppl)
|
||||
ppl_logevent("GSSAPI authentication initialisation "
|
||||
"failed");
|
||||
|
||||
if (s->shgss->lib->display_status(s->shgss->lib,
|
||||
s->shgss->ctx, &s->gss_buf) == SSH_GSS_OK) {
|
||||
if (s->shgss->lib->display_status(
|
||||
s->shgss->lib, s->shgss->ctx, &s->gss_buf)
|
||||
== SSH_GSS_OK) {
|
||||
ppl_logevent("%s", (char *)s->gss_buf.value);
|
||||
sfree(s->gss_buf.value);
|
||||
}
|
||||
|
Reference in New Issue
Block a user