mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 13:13:44 +01:00
resolve warnings
svn:r89
This commit is contained in:
parent
fdb31225b7
commit
ca834335da
@ -68,7 +68,7 @@ RETURN VALUE: 0 on success, non-zero on error
|
||||
int Verbose;
|
||||
int code;
|
||||
poptContext optCon;
|
||||
char *cmd;
|
||||
const char *cmd;
|
||||
struct poptOption opt_tab[] =
|
||||
{
|
||||
{ "APPort", 'a', POPT_ARG_INT, &options->APPort,
|
||||
|
@ -522,7 +522,7 @@ int connection_encrypt_cell(cell_t *cellp, connection_t *conn) {
|
||||
printf("\n");
|
||||
#endif
|
||||
|
||||
if(crypto_cipher_encrypt(conn->f_crypto, (char *)cellp, sizeof(cell_t), &newcell)) {
|
||||
if(crypto_cipher_encrypt(conn->f_crypto, (char *)cellp, sizeof(cell_t), (char *)&newcell)) {
|
||||
log(LOG_ERR,"Could not encrypt cell for connection %s:%u.",conn->address,conn->port);
|
||||
return -1;
|
||||
}
|
||||
|
@ -32,7 +32,7 @@ int connection_op_process_inbuf(connection_t *conn) {
|
||||
|
||||
int op_handshake_process_keys(connection_t *conn) {
|
||||
int retval;
|
||||
int x;
|
||||
//int x;
|
||||
unsigned char iv[16];
|
||||
|
||||
/* key exchange message */
|
||||
|
@ -111,7 +111,7 @@ int connection_or_finished_flushing(connection_t *conn) {
|
||||
/*********************/
|
||||
|
||||
void conn_or_init_crypto(connection_t *conn) {
|
||||
int x;
|
||||
//int x;
|
||||
unsigned char iv[16];
|
||||
|
||||
assert(conn);
|
||||
@ -257,7 +257,7 @@ connection_t *connection_or_connect_as_op(routerinfo_t *router, crypto_pk_env_t
|
||||
}
|
||||
|
||||
int or_handshake_op_send_keys(connection_t *conn) {
|
||||
int x;
|
||||
//int x;
|
||||
uint32_t bandwidth = DEFAULT_BANDWIDTH_OP;
|
||||
unsigned char message[20]; /* bandwidth(32bits), forward key(64bits), backward key(64bits) */
|
||||
unsigned char cipher[128];
|
||||
|
Loading…
Reference in New Issue
Block a user