Lines Matching refs:rec

991 int tls_default_validate_record_header(OSSL_RECORD_LAYER *rl, TLS_RL_RECORD *rec)  in tls_default_validate_record_header()  argument
995 if (rec->rec_version != rl->version) { in tls_default_validate_record_header()
1009 if (rec->length > len) { in tls_default_validate_record_header()
1037 int tls_do_uncompress(OSSL_RECORD_LAYER *rl, TLS_RL_RECORD *rec) in tls_do_uncompress() argument
1042 if (rec->comp == NULL) { in tls_do_uncompress()
1043 rec->comp = (unsigned char *) in tls_do_uncompress()
1046 if (rec->comp == NULL) in tls_do_uncompress()
1049 i = COMP_expand_block(rl->compctx, rec->comp, SSL3_RT_MAX_PLAIN_LENGTH, in tls_do_uncompress()
1050 rec->data, (int)rec->length); in tls_do_uncompress()
1054 rec->length = i; in tls_do_uncompress()
1055 rec->data = rec->comp; in tls_do_uncompress()
1063 int tls_default_post_process_record(OSSL_RECORD_LAYER *rl, TLS_RL_RECORD *rec) in tls_default_post_process_record() argument
1066 if (rec->length > SSL3_RT_MAX_COMPRESSED_LENGTH) { in tls_default_post_process_record()
1071 if (!tls_do_uncompress(rl, rec)) { in tls_default_post_process_record()
1078 if (rec->length > SSL3_RT_MAX_PLAIN_LENGTH) { in tls_default_post_process_record()
1087 int tls13_common_post_process_record(OSSL_RECORD_LAYER *rl, TLS_RL_RECORD *rec) in tls13_common_post_process_record() argument
1089 if (rec->type != SSL3_RT_APPLICATION_DATA in tls13_common_post_process_record()
1090 && rec->type != SSL3_RT_ALERT in tls13_common_post_process_record()
1091 && rec->type != SSL3_RT_HANDSHAKE) { in tls13_common_post_process_record()
1097 rl->msg_callback(0, rl->version, SSL3_RT_INNER_CONTENT_TYPE, &rec->type, in tls13_common_post_process_record()
1104 if ((rec->type == SSL3_RT_HANDSHAKE || rec->type == SSL3_RT_ALERT) in tls13_common_post_process_record()
1105 && rec->length == 0) { in tls13_common_post_process_record()
1117 TLS_RL_RECORD *rec; in tls_read_record() local
1143 rec = &rl->rrec[rl->curr_rec++]; in tls_read_record()
1145 *rechandle = rec; in tls_read_record()
1146 *rversion = rec->rec_version; in tls_read_record()
1147 *type = rec->type; in tls_read_record()
1148 *data = rec->data + rec->off; in tls_read_record()
1149 *datalen = rec->length; in tls_read_record()
1151 *epoch = rec->epoch; in tls_read_record()
1152 memcpy(seq_num, rec->seq_num, sizeof(rec->seq_num)); in tls_read_record()
1160 TLS_RL_RECORD *rec = &rl->rrec[rl->num_released]; in tls_release_record() local
1163 || !ossl_assert(rechandle == rec)) { in tls_release_record()
1169 if (rec->length < length) { in tls_release_record()
1176 OPENSSL_cleanse(rec->data + rec->off, length); in tls_release_record()
1178 rec->off += length; in tls_release_record()
1179 rec->length -= length; in tls_release_record()
1181 if (rec->length > 0) in tls_release_record()