rust to support ticket completion api
@@ -1078,6 +1078,10 @@ struct ApiTable {
flags: SendFlags,
client_send_context: *const c_void,
) -> u32,
+ resumption_ticket_validation_complete: extern "C" fn(
+ connection: Handle,
+ result: BOOLEAN,
+ ) -> u32,
}
#[link(name = "msquic")]
@@ -1519,6 +1523,21 @@ impl Connection {
panic!("DatagramSend failure 0x{:x}", status);
}
}
+
+ pub fn resumption_ticket_validation_complete(
+ &self,
+ result: BOOLEAN,
+ ) {
+ let status = unsafe {
+ ((*self.table).resumption_ticket_validation_complete)(
+ self.handle,
+ result,
+ )
+ };
+ if Status::failed(status) {
+ panic!("ticket validation completion failure 0x{:x}", status);
+ }
+ }
}
impl Drop for Connection {
