Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20765)
*/
uint64_t reset_stream_aec;
+ /*
+ * Application Error Code (AEC) for incoming STOP_SENDING frame.
+ * This is only valid if peer_stop_sending is 1.
+ */
+ uint64_t peer_stop_sending_aec;
+
+ /*
+ * Application Error Code (AEC) for incoming RESET_STREAM frame.
+ * This is only valid if peer_reset_stream is 1.
+ */
+ uint64_t peer_reset_stream_aec;
+
/* Temporary value used by TXP. */
uint64_t txp_txfc_new_credit_consumed;
return 0;
}
- stream->peer_reset_stream = 1;
+ stream->peer_reset_stream = 1;
+ stream->peer_reset_stream_aec = frame_data.app_error_code;
+
ossl_quic_stream_map_update_state(&ch->qsm, stream);
return 1;
}
return 0;
}
- stream->peer_stop_sending = 1;
+ stream->peer_stop_sending = 1;
+ stream->peer_stop_sending_aec = frame_data.app_error_code;
/*
* RFC 9000 s. 3.5: Receiving a STOP_SENDING frame means we must respond in