comparison cli-authpubkey.c @ 1798:8dc43b30c6bf

Define _GNU_SOURCE properly, other header fixes This lets -std=c89 build for gcc 8.4.0
author Matt Johnston <matt@ucc.asn.au>
date Thu, 04 Mar 2021 21:03:02 +0800
parents d18fa38c1fd4
children df8d8ec1801c
comparison
equal deleted inserted replaced
1797:f680a19bd559 1798:8dc43b30c6bf
123 } 123 }
124 124
125 static void cli_buf_put_sign(buffer* buf, sign_key *key, enum signature_type sigtype, 125 static void cli_buf_put_sign(buffer* buf, sign_key *key, enum signature_type sigtype,
126 const buffer *data_buf) { 126 const buffer *data_buf) {
127 #if DROPBEAR_CLI_AGENTFWD 127 #if DROPBEAR_CLI_AGENTFWD
128 // TODO: rsa-sha256 agent 128 /* TODO: rsa-sha256 agent */
129 if (key->source == SIGNKEY_SOURCE_AGENT) { 129 if (key->source == SIGNKEY_SOURCE_AGENT) {
130 /* Format the agent signature ourselves, as buf_put_sign would. */ 130 /* Format the agent signature ourselves, as buf_put_sign would. */
131 buffer *sigblob; 131 buffer *sigblob;
132 sigblob = buf_new(MAX_PUBKEY_SIZE); 132 sigblob = buf_new(MAX_PUBKEY_SIZE);
133 agent_buf_sign(sigblob, key, data_buf, sigtype); 133 agent_buf_sign(sigblob, key, data_buf, sigtype);