Skip to content

Commit

Permalink
Add missing return statements
Browse files Browse the repository at this point in the history
  • Loading branch information
wllm-rbnt committed Aug 16, 2023
1 parent de05391 commit ead8fce
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ssl/ssl.enums.c
Original file line number Diff line number Diff line change
Expand Up @@ -565,6 +565,7 @@ static int decode_HandshakeType_SessionTicket(ssl_obj *ssl,
}
}
}
return 0;
}

static int decode_HandshakeType_EncryptedExtensions(ssl_obj *ssl,
Expand Down Expand Up @@ -592,6 +593,7 @@ static int decode_HandshakeType_EncryptedExtensions(ssl_obj *ssl,
LF;
}
}
return 0;
}

static int decode_HandshakeType_ServerKeyExchange(ssl_obj *ssl,
Expand Down Expand Up @@ -1595,6 +1597,7 @@ static int decode_extension_supported_versions(ssl_obj *ssl,
}
if(dir == DIR_R2I)
ssl->version = version; // Server sets the tls version
return 0;
}

decoder tls13_certificate_types[] = {{0, "x509", 0},
Expand Down Expand Up @@ -1623,6 +1626,7 @@ static int decode_extension_client_certificate_type(ssl_obj *ssl,
if(dir == DIR_R2I)
ssl->extensions->client_certificate_type =
certificate_type; // Server sets the client_certificate_type
return 0;
}

static int decode_extension_server_certificate_type(ssl_obj *ssl,
Expand All @@ -1647,6 +1651,7 @@ static int decode_extension_server_certificate_type(ssl_obj *ssl,
if(dir == DIR_R2I)
ssl->extensions->server_certificate_type =
certificate_type; // Server sets the server_certificate_type
return 0;
}

decoder extension_decoder[] = {
Expand Down
1 change: 1 addition & 0 deletions ssl/ssl_rec.c
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ int tls13_update_rec_key(ssl_rec_decoder *d, UCHAR *newkey, UCHAR *newiv) {
d->write_key->data = newkey;
d->implicit_iv->data = newiv;
d->seq = 0;
return 0;
}

int tls13_decode_rec_data(ssl_obj *ssl,
Expand Down
1 change: 1 addition & 0 deletions ssl/ssldecode.c
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,7 @@ int ssl_process_handshake_finished(ssl_obj *ssl, ssl_decoder *dec, Data *data) {
dec->s_to_c_n = 0;
}
}
return 0;
}

int ssl_process_change_cipher_spec(ssl_obj *ssl,
Expand Down

0 comments on commit ead8fce

Please sign in to comment.