mirror of
https://github.com/adulau/ssldump.git
synced 2024-11-21 17:07:04 +00:00
Remove unused variables
This commit is contained in:
parent
6d333f746b
commit
6004e71647
3 changed files with 3 additions and 6 deletions
|
@ -65,7 +65,7 @@ static int create_pcap_logger(proto_obj **objp,
|
|||
struct sockaddr_storage *r_addr,
|
||||
u_short r_port,
|
||||
struct timeval *base_time) {
|
||||
int r, _status;
|
||||
int _status;
|
||||
logpkt_ctx_t *pcap_obj = 0;
|
||||
struct sockaddr_in src_addr, dst_addr;
|
||||
|
||||
|
|
|
@ -191,8 +191,8 @@ int tls13_decode_rec_data(ssl_obj *ssl,
|
|||
int inl,
|
||||
UCHAR *out,
|
||||
int *outl) {
|
||||
int pad, i;
|
||||
int r, encpadl, x, _status = 0;
|
||||
int i;
|
||||
int x, _status = 0;
|
||||
UCHAR aad[5], aead_nonce[12], *tag;
|
||||
int taglen = d->cs->enc == ENC_AES128_CCM_8 ? 8 : 16;
|
||||
CRDUMP("CipherText", in, inl);
|
||||
|
|
|
@ -216,7 +216,6 @@ int ssl_decode_ctx_destroy(ssl_decode_ctx **dp) {
|
|||
fclose(d->ssl_key_log_file);
|
||||
}
|
||||
|
||||
r_assoc *x = d->session_cache;
|
||||
r_assoc_destroy(&d->session_cache);
|
||||
|
||||
SSL_CTX_free(d->ssl_ctx);
|
||||
|
@ -1174,7 +1173,6 @@ int ssl_tls13_update_keying_material(ssl_obj *ssl,
|
|||
|
||||
int ssl_tls13_generate_keying_material(ssl_obj *ssl, ssl_decoder *d) {
|
||||
int r, _status;
|
||||
Data out;
|
||||
UCHAR *s_wk_h, *s_iv_h, *c_wk_h, *c_iv_h, *s_wk, *s_iv, *c_wk, *c_iv;
|
||||
if(!(d->ctx->ssl_key_log_file && ssl_read_key_log_file(ssl, d) == 0 &&
|
||||
d->SHTS && d->CHTS && d->STS && d->CTS)) {
|
||||
|
@ -1302,7 +1300,6 @@ static int read_hex_string(char *str, UCHAR *buf, int n) {
|
|||
}
|
||||
static int ssl_read_key_log_file(ssl_obj *ssl, ssl_decoder *d) {
|
||||
int r, _status, n, i;
|
||||
unsigned int t;
|
||||
size_t l = 0;
|
||||
char *line, *d_client_random, *label, *client_random, *secret;
|
||||
if(ssl->version == TLSV13_VERSION &&
|
||||
|
|
Loading…
Reference in a new issue