@@ -123,7 +123,7 @@ struct whClientContext_t {
123123 whClientCancelCb cancelCb ;
124124#endif
125125#ifdef WOLFHSM_CFG_ENABLE_TIMEOUT
126- whTimeoutCtx respTimeout [ 1 ] ;
126+ whTimeoutCtx respTimeout ;
127127#endif
128128#ifdef WOLFHSM_CFG_DMA
129129 whClientDmaContext dma ;
@@ -200,24 +200,21 @@ int wh_Client_SendRequest(whClientContext* c, uint16_t group, uint16_t action,
200200int wh_Client_RecvResponse (whClientContext * c , uint16_t * out_group ,
201201 uint16_t * out_action , uint16_t * out_size ,
202202 void * data );
203- #ifdef WOLFHSM_CFG_ENABLE_TIMEOUT
204203/**
205- * Receives a response from the server with a timeout window.
204+ * Receives a response from the server with a timeout window. The timeout
205+ * duration is specified by the respTimeout field in the client context.
206206 *
207207 * @param c The client context.
208208 * @param out_group Pointer to store the received group value.
209209 * @param out_action Pointer to store the received action value.
210210 * @param out_size Pointer to store the received size value.
211211 * @param data Pointer to store the received data.
212- * @param timeout The timeout context to use.
213212 * @return 0 if successful, WH_ERROR_TIMEOUT on expiration, or a negative value
214213 * if an error occurred.
215214 */
216- int wh_Client_RecvResponseTimeout (whClientContext * c , uint16_t * out_group ,
217- uint16_t * out_action , uint16_t * out_size ,
218- void * data , whTimeoutCtx * timeout );
219- #endif /* WOLFHSM_CFG_ENABLE_TIMEOUT */
220-
215+ int wh_Client_RecvResponseBlockingWithTimeout (whClientContext * c , uint16_t * out_group ,
216+ uint16_t * out_action , uint16_t * out_size ,
217+ void * data );
221218
222219/** Comm component functions */
223220
0 commit comments