Skip to content

Commit

Permalink
Remove some more redundant TODO(RECLAYER) comments
Browse files Browse the repository at this point in the history
Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from #18132)
  • Loading branch information
mattcaswell committed Aug 18, 2022
1 parent 51ccad3 commit 499b2c4
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 12 deletions.
7 changes: 0 additions & 7 deletions ssl/record/methods/tls1_meth.c
Expand Up @@ -96,10 +96,6 @@ static int tls1_set_crypto_state(OSSL_RECORD_LAYER *rl, int level,
(int)taglen, NULL) <= 0
|| EVP_CIPHER_CTX_ctrl(ciph_ctx, EVP_CTRL_CCM_SET_IV_FIXED,
(int)ivlen, iv) <= 0
/*
* TODO(RECLAYER): Why do we defer setting the key until here?
* why not in the initial EVP_DecryptInit_ex() call?
*/
|| !EVP_DecryptInit_ex(ciph_ctx, NULL, NULL, key, NULL)) {
ERR_raise(ERR_LIB_SSL, ERR_R_INTERNAL_ERROR);
return OSSL_RECORD_RETURN_FATAL;
Expand Down Expand Up @@ -224,8 +220,6 @@ static int tls1_cipher(OSSL_RECORD_LAYER *rl, SSL3_RECORD *recs, size_t n_recs,
seq = rl->sequence;

if (rl->isdtls) {
/* TODO(RECLAYER): FIXME */
/* DTLS does not support pipelining */
unsigned char dtlsseq[8], *p = dtlsseq;

s2n(rl->epoch, p);
Expand Down Expand Up @@ -472,7 +466,6 @@ static int tls1_mac(OSSL_RECORD_LAYER *rl, SSL3_RECORD *rec, unsigned char *md,
}

if (rl->isdtls) {
/* TODO(RECLAYER): FIX ME */
unsigned char dtlsseq[8], *p = dtlsseq;

s2n(rl->epoch, p);
Expand Down
1 change: 0 additions & 1 deletion ssl/record/rec_layer_d1.c
Expand Up @@ -274,7 +274,6 @@ int dtls1_read_bytes(SSL *s, int type, int *recvd_type, unsigned char *buf,
do {
rr = &sc->rlayer.tlsrecs[sc->rlayer.num_recs];

/* TODO(RECLAYER): Check HANDLE_RLAYER_RETURN for DTLS */
ret = HANDLE_RLAYER_RETURN(sc,
sc->rrlmethod->read_record(sc->rrl, &rr->rechandle,
&rr->version, &rr->type,
Expand Down
4 changes: 0 additions & 4 deletions ssl/record/rec_layer_s3.c
Expand Up @@ -1121,10 +1121,6 @@ int ossl_tls_handle_rlayer_return(SSL_CONNECTION *s, int ret, char *file,
* If we got a retry or success then *ret is already correct,
* otherwise we need to convert the return value.
*/
/*
* TODO(RECLAYER): What does a non fatal err that isn't a retry even
* mean???
*/
if (ret == OSSL_RECORD_RETURN_NON_FATAL_ERR || ret == OSSL_RECORD_RETURN_EOF)
ret = 0;
else if (ret < OSSL_RECORD_RETURN_NON_FATAL_ERR)
Expand Down

0 comments on commit 499b2c4

Please sign in to comment.