@@ -701,18 +701,17 @@ START_TEST(test_replay_aead_verify)
701701 esp_sa = esp_sa_get (1 , (uint8_t * )spi_rt );
702702 ck_assert_ptr_nonnull (esp_sa );
703703 /* sanity check esp_replay_init */
704- ck_assert_int_eq (esp_sa -> replay .hi_seq , ESP_REPLAY_WIN );
705- ck_assert_int_eq (esp_sa -> replay .bitmap , 0U );
704+ ck_assert_uint_eq (esp_sa -> replay .hi_seq , ESP_REPLAY_WIN );
705+ ck_assert_uint_eq (esp_sa -> replay .bitmap , 0U );
706706
707707 /* should fail to unwrap. */
708- frame_len = build_ip_packet (buf , sizeof (buf ), WI_IPPROTO_UDP ,
709- ref , sizeof (ref ));
708+ frame_len = build_ip_packet (buf , sizeof (buf ), 0x32 , ref , sizeof (ref ));
710709 ret = esp_transport_unwrap (ip , & frame_len );
711710 ck_assert_int_eq (ret , -1 );
712711
713712 /* the hi seq and bitmap should be unchanged. */
714- ck_assert_int_eq (esp_sa -> replay .hi_seq , ESP_REPLAY_WIN );
715- ck_assert_int_eq (esp_sa -> replay .bitmap , 0U );
713+ ck_assert_uint_eq (esp_sa -> replay .hi_seq , ESP_REPLAY_WIN );
714+ ck_assert_uint_eq (esp_sa -> replay .bitmap , 0U );
716715}
717716END_TEST
718717
0 commit comments