return ret;
}
+/**
+ * @brief Get 4 bytes in network order from |pkt| and store the value in |*data|
+ * Similar to PACKET_get_net_4() except the data is uint32_t
+ *
+ * @param pkt Contains a buffer to read from
+ * @param data The object to write the data to.
+ * @returns 1 on success, or 0 otherwise.
+ */
+static ossl_unused ossl_inline
+int PACKET_get_net_4_len_u32(PACKET *pkt, uint32_t *data)
+{
+ size_t i = 0;
+ int ret = PACKET_get_net_4_len(pkt, &i);
+
+ if (ret)
+ *data = (uint32_t)i;
+ return ret;
+}
+
/* Get 8 bytes in network order from |pkt| and store the value in |*data| */
__owur static ossl_inline int PACKET_get_net_8(PACKET *pkt, uint64_t *data)
{