1use core::cell::UnsafeCell;
4use core::ffi::*;
5use core::marker::{PhantomData, PhantomPinned};
6use core::ptr::NonNull;
7#[cfg(feature = "objc2")]
8use objc2::__framework_prelude::*;
9
10use crate::*;
11
12#[repr(C)]
19#[derive(Debug)]
20pub struct sec_protocol_options {
21 inner: [u8; 0],
22 _p: UnsafeCell<PhantomData<(*const UnsafeCell<()>, PhantomPinned)>>,
23}
24
25#[cfg(feature = "objc2")]
26unsafe impl RefEncode for sec_protocol_options {
27 const ENCODING_REF: Encoding =
28 Encoding::Pointer(&Encoding::Struct("sec_protocol_options", &[]));
29}
30
31pub type sec_protocol_options_t = *mut sec_protocol_options;
38
39impl sec_protocol_options {
40 #[doc(alias = "sec_protocol_options_are_equal")]
56 #[inline]
57 pub unsafe fn are_equal(
58 options_a: sec_protocol_options_t,
59 options_b: sec_protocol_options_t,
60 ) -> bool {
61 extern "C-unwind" {
62 fn sec_protocol_options_are_equal(
63 options_a: sec_protocol_options_t,
64 options_b: sec_protocol_options_t,
65 ) -> bool;
66 }
67 unsafe { sec_protocol_options_are_equal(options_a, options_b) }
68 }
69
70 #[doc(alias = "sec_protocol_options_set_local_identity")]
83 #[cfg(feature = "SecProtocolTypes")]
84 #[inline]
85 pub unsafe fn set_local_identity(options: sec_protocol_options_t, identity: sec_identity_t) {
86 extern "C-unwind" {
87 fn sec_protocol_options_set_local_identity(
88 options: sec_protocol_options_t,
89 identity: sec_identity_t,
90 );
91 }
92 unsafe { sec_protocol_options_set_local_identity(options, identity) }
93 }
94
95 #[doc(alias = "sec_protocol_options_append_tls_ciphersuite")]
107 #[cfg(feature = "SecProtocolTypes")]
108 #[inline]
109 pub unsafe fn append_tls_ciphersuite(
110 options: sec_protocol_options_t,
111 ciphersuite: tls_ciphersuite_t,
112 ) {
113 extern "C-unwind" {
114 fn sec_protocol_options_append_tls_ciphersuite(
115 options: sec_protocol_options_t,
116 ciphersuite: tls_ciphersuite_t,
117 );
118 }
119 unsafe { sec_protocol_options_append_tls_ciphersuite(options, ciphersuite) }
120 }
121
122 #[doc(alias = "sec_protocol_options_add_tls_ciphersuite")]
134 #[cfg(feature = "CipherSuite")]
135 #[deprecated = "Use sec_protocol_options_append_tls_ciphersuite"]
136 #[inline]
137 pub unsafe fn add_tls_ciphersuite(
138 options: sec_protocol_options_t,
139 ciphersuite: SSLCipherSuite,
140 ) {
141 extern "C-unwind" {
142 fn sec_protocol_options_add_tls_ciphersuite(
143 options: sec_protocol_options_t,
144 ciphersuite: SSLCipherSuite,
145 );
146 }
147 unsafe { sec_protocol_options_add_tls_ciphersuite(options, ciphersuite) }
148 }
149
150 #[doc(alias = "sec_protocol_options_append_tls_ciphersuite_group")]
162 #[cfg(feature = "SecProtocolTypes")]
163 #[inline]
164 pub unsafe fn append_tls_ciphersuite_group(
165 options: sec_protocol_options_t,
166 group: tls_ciphersuite_group_t,
167 ) {
168 extern "C-unwind" {
169 fn sec_protocol_options_append_tls_ciphersuite_group(
170 options: sec_protocol_options_t,
171 group: tls_ciphersuite_group_t,
172 );
173 }
174 unsafe { sec_protocol_options_append_tls_ciphersuite_group(options, group) }
175 }
176
177 #[doc(alias = "sec_protocol_options_add_tls_ciphersuite_group")]
189 #[cfg(feature = "CipherSuite")]
190 #[deprecated = "Use sec_protocol_options_append_tls_ciphersuite_group"]
191 #[inline]
192 pub unsafe fn add_tls_ciphersuite_group(
193 options: sec_protocol_options_t,
194 group: SSLCiphersuiteGroup,
195 ) {
196 extern "C-unwind" {
197 fn sec_protocol_options_add_tls_ciphersuite_group(
198 options: sec_protocol_options_t,
199 group: SSLCiphersuiteGroup,
200 );
201 }
202 unsafe { sec_protocol_options_add_tls_ciphersuite_group(options, group) }
203 }
204
205 #[doc(alias = "sec_protocol_options_set_tls_min_version")]
217 #[cfg(feature = "SecProtocolTypes")]
218 #[deprecated]
219 #[inline]
220 pub unsafe fn set_tls_min_version(options: sec_protocol_options_t, version: SSLProtocol) {
221 extern "C-unwind" {
222 fn sec_protocol_options_set_tls_min_version(
223 options: sec_protocol_options_t,
224 version: SSLProtocol,
225 );
226 }
227 unsafe { sec_protocol_options_set_tls_min_version(options, version) }
228 }
229
230 #[doc(alias = "sec_protocol_options_set_min_tls_protocol_version")]
242 #[cfg(feature = "SecProtocolTypes")]
243 #[inline]
244 pub unsafe fn set_min_tls_protocol_version(
245 options: sec_protocol_options_t,
246 version: tls_protocol_version_t,
247 ) {
248 extern "C-unwind" {
249 fn sec_protocol_options_set_min_tls_protocol_version(
250 options: sec_protocol_options_t,
251 version: tls_protocol_version_t,
252 );
253 }
254 unsafe { sec_protocol_options_set_min_tls_protocol_version(options, version) }
255 }
256
257 #[doc(alias = "sec_protocol_options_get_default_min_tls_protocol_version")]
262 #[cfg(feature = "SecProtocolTypes")]
263 #[inline]
264 pub unsafe fn default_min_tls_protocol_version() -> tls_protocol_version_t {
265 extern "C-unwind" {
266 fn sec_protocol_options_get_default_min_tls_protocol_version() -> tls_protocol_version_t;
267 }
268 unsafe { sec_protocol_options_get_default_min_tls_protocol_version() }
269 }
270
271 #[doc(alias = "sec_protocol_options_get_default_min_dtls_protocol_version")]
276 #[cfg(feature = "SecProtocolTypes")]
277 #[inline]
278 pub unsafe fn default_min_dtls_protocol_version() -> tls_protocol_version_t {
279 extern "C-unwind" {
280 fn sec_protocol_options_get_default_min_dtls_protocol_version() -> tls_protocol_version_t;
281 }
282 unsafe { sec_protocol_options_get_default_min_dtls_protocol_version() }
283 }
284
285 #[doc(alias = "sec_protocol_options_set_tls_max_version")]
297 #[cfg(feature = "SecProtocolTypes")]
298 #[deprecated]
299 #[inline]
300 pub unsafe fn set_tls_max_version(options: sec_protocol_options_t, version: SSLProtocol) {
301 extern "C-unwind" {
302 fn sec_protocol_options_set_tls_max_version(
303 options: sec_protocol_options_t,
304 version: SSLProtocol,
305 );
306 }
307 unsafe { sec_protocol_options_set_tls_max_version(options, version) }
308 }
309
310 #[doc(alias = "sec_protocol_options_set_max_tls_protocol_version")]
322 #[cfg(feature = "SecProtocolTypes")]
323 #[inline]
324 pub unsafe fn set_max_tls_protocol_version(
325 options: sec_protocol_options_t,
326 version: tls_protocol_version_t,
327 ) {
328 extern "C-unwind" {
329 fn sec_protocol_options_set_max_tls_protocol_version(
330 options: sec_protocol_options_t,
331 version: tls_protocol_version_t,
332 );
333 }
334 unsafe { sec_protocol_options_set_max_tls_protocol_version(options, version) }
335 }
336
337 #[doc(alias = "sec_protocol_options_get_default_max_tls_protocol_version")]
342 #[cfg(feature = "SecProtocolTypes")]
343 #[inline]
344 pub unsafe fn default_max_tls_protocol_version() -> tls_protocol_version_t {
345 extern "C-unwind" {
346 fn sec_protocol_options_get_default_max_tls_protocol_version() -> tls_protocol_version_t;
347 }
348 unsafe { sec_protocol_options_get_default_max_tls_protocol_version() }
349 }
350
351 #[doc(alias = "sec_protocol_options_get_default_max_dtls_protocol_version")]
356 #[cfg(feature = "SecProtocolTypes")]
357 #[inline]
358 pub unsafe fn default_max_dtls_protocol_version() -> tls_protocol_version_t {
359 extern "C-unwind" {
360 fn sec_protocol_options_get_default_max_dtls_protocol_version() -> tls_protocol_version_t;
361 }
362 unsafe { sec_protocol_options_get_default_max_dtls_protocol_version() }
363 }
364
365 #[doc(alias = "sec_protocol_options_get_enable_encrypted_client_hello")]
374 #[inline]
375 pub unsafe fn enabled_encrypted_client_hello(options: sec_protocol_options_t) -> bool {
376 extern "C-unwind" {
377 fn sec_protocol_options_get_enable_encrypted_client_hello(
378 options: sec_protocol_options_t,
379 ) -> bool;
380 }
381 unsafe { sec_protocol_options_get_enable_encrypted_client_hello(options) }
382 }
383
384 #[doc(alias = "sec_protocol_options_get_quic_use_legacy_codepoint")]
394 #[inline]
395 pub unsafe fn quic_use_legacy_codepoint(options: sec_protocol_options_t) -> bool {
396 extern "C-unwind" {
397 fn sec_protocol_options_get_quic_use_legacy_codepoint(
398 options: sec_protocol_options_t,
399 ) -> bool;
400 }
401 unsafe { sec_protocol_options_get_quic_use_legacy_codepoint(options) }
402 }
403
404 #[doc(alias = "sec_protocol_options_add_tls_application_protocol")]
417 #[inline]
418 pub unsafe fn add_tls_application_protocol(
419 options: sec_protocol_options_t,
420 application_protocol: NonNull<c_char>,
421 ) {
422 extern "C-unwind" {
423 fn sec_protocol_options_add_tls_application_protocol(
424 options: sec_protocol_options_t,
425 application_protocol: NonNull<c_char>,
426 );
427 }
428 unsafe { sec_protocol_options_add_tls_application_protocol(options, application_protocol) }
429 }
430
431 #[doc(alias = "sec_protocol_options_set_tls_server_name")]
445 #[inline]
446 pub unsafe fn set_tls_server_name(
447 options: sec_protocol_options_t,
448 server_name: NonNull<c_char>,
449 ) {
450 extern "C-unwind" {
451 fn sec_protocol_options_set_tls_server_name(
452 options: sec_protocol_options_t,
453 server_name: NonNull<c_char>,
454 );
455 }
456 unsafe { sec_protocol_options_set_tls_server_name(options, server_name) }
457 }
458
459 #[doc(alias = "sec_protocol_options_set_tls_tickets_enabled")]
471 #[inline]
472 pub unsafe fn set_tls_tickets_enabled(options: sec_protocol_options_t, tickets_enabled: bool) {
473 extern "C-unwind" {
474 fn sec_protocol_options_set_tls_tickets_enabled(
475 options: sec_protocol_options_t,
476 tickets_enabled: bool,
477 );
478 }
479 unsafe { sec_protocol_options_set_tls_tickets_enabled(options, tickets_enabled) }
480 }
481
482 #[doc(alias = "sec_protocol_options_set_tls_is_fallback_attempt")]
500 #[inline]
501 pub unsafe fn set_tls_is_fallback_attempt(
502 options: sec_protocol_options_t,
503 is_fallback_attempt: bool,
504 ) {
505 extern "C-unwind" {
506 fn sec_protocol_options_set_tls_is_fallback_attempt(
507 options: sec_protocol_options_t,
508 is_fallback_attempt: bool,
509 );
510 }
511 unsafe { sec_protocol_options_set_tls_is_fallback_attempt(options, is_fallback_attempt) }
512 }
513
514 #[doc(alias = "sec_protocol_options_set_tls_resumption_enabled")]
526 #[inline]
527 pub unsafe fn set_tls_resumption_enabled(
528 options: sec_protocol_options_t,
529 resumption_enabled: bool,
530 ) {
531 extern "C-unwind" {
532 fn sec_protocol_options_set_tls_resumption_enabled(
533 options: sec_protocol_options_t,
534 resumption_enabled: bool,
535 );
536 }
537 unsafe { sec_protocol_options_set_tls_resumption_enabled(options, resumption_enabled) }
538 }
539
540 #[doc(alias = "sec_protocol_options_set_tls_false_start_enabled")]
552 #[inline]
553 pub unsafe fn set_tls_false_start_enabled(
554 options: sec_protocol_options_t,
555 false_start_enabled: bool,
556 ) {
557 extern "C-unwind" {
558 fn sec_protocol_options_set_tls_false_start_enabled(
559 options: sec_protocol_options_t,
560 false_start_enabled: bool,
561 );
562 }
563 unsafe { sec_protocol_options_set_tls_false_start_enabled(options, false_start_enabled) }
564 }
565
566 #[doc(alias = "sec_protocol_options_set_tls_ocsp_enabled")]
578 #[inline]
579 pub unsafe fn set_tls_ocsp_enabled(options: sec_protocol_options_t, ocsp_enabled: bool) {
580 extern "C-unwind" {
581 fn sec_protocol_options_set_tls_ocsp_enabled(
582 options: sec_protocol_options_t,
583 ocsp_enabled: bool,
584 );
585 }
586 unsafe { sec_protocol_options_set_tls_ocsp_enabled(options, ocsp_enabled) }
587 }
588
589 #[doc(alias = "sec_protocol_options_set_tls_sct_enabled")]
601 #[inline]
602 pub unsafe fn set_tls_sct_enabled(options: sec_protocol_options_t, sct_enabled: bool) {
603 extern "C-unwind" {
604 fn sec_protocol_options_set_tls_sct_enabled(
605 options: sec_protocol_options_t,
606 sct_enabled: bool,
607 );
608 }
609 unsafe { sec_protocol_options_set_tls_sct_enabled(options, sct_enabled) }
610 }
611
612 #[doc(alias = "sec_protocol_options_set_tls_renegotiation_enabled")]
624 #[inline]
625 pub unsafe fn set_tls_renegotiation_enabled(
626 options: sec_protocol_options_t,
627 renegotiation_enabled: bool,
628 ) {
629 extern "C-unwind" {
630 fn sec_protocol_options_set_tls_renegotiation_enabled(
631 options: sec_protocol_options_t,
632 renegotiation_enabled: bool,
633 );
634 }
635 unsafe {
636 sec_protocol_options_set_tls_renegotiation_enabled(options, renegotiation_enabled)
637 }
638 }
639
640 #[doc(alias = "sec_protocol_options_set_peer_authentication_required")]
652 #[inline]
653 pub unsafe fn set_peer_authentication_required(
654 options: sec_protocol_options_t,
655 peer_authentication_required: bool,
656 ) {
657 extern "C-unwind" {
658 fn sec_protocol_options_set_peer_authentication_required(
659 options: sec_protocol_options_t,
660 peer_authentication_required: bool,
661 );
662 }
663 unsafe {
664 sec_protocol_options_set_peer_authentication_required(
665 options,
666 peer_authentication_required,
667 )
668 }
669 }
670
671 #[doc(alias = "sec_protocol_options_set_peer_authentication_optional")]
687 #[inline]
688 pub unsafe fn set_peer_authentication_optional(
689 options: sec_protocol_options_t,
690 peer_authentication_optional: bool,
691 ) {
692 extern "C-unwind" {
693 fn sec_protocol_options_set_peer_authentication_optional(
694 options: sec_protocol_options_t,
695 peer_authentication_optional: bool,
696 );
697 }
698 unsafe {
699 sec_protocol_options_set_peer_authentication_optional(
700 options,
701 peer_authentication_optional,
702 )
703 }
704 }
705
706 #[doc(alias = "sec_protocol_options_set_enable_encrypted_client_hello")]
719 #[inline]
720 pub unsafe fn set_enable_encrypted_client_hello(
721 options: sec_protocol_options_t,
722 enable_encrypted_client_hello: bool,
723 ) {
724 extern "C-unwind" {
725 fn sec_protocol_options_set_enable_encrypted_client_hello(
726 options: sec_protocol_options_t,
727 enable_encrypted_client_hello: bool,
728 );
729 }
730 unsafe {
731 sec_protocol_options_set_enable_encrypted_client_hello(
732 options,
733 enable_encrypted_client_hello,
734 )
735 }
736 }
737
738 #[doc(alias = "sec_protocol_options_set_quic_use_legacy_codepoint")]
750 #[inline]
751 pub unsafe fn set_quic_use_legacy_codepoint(
752 options: sec_protocol_options_t,
753 quic_use_legacy_codepoint: bool,
754 ) {
755 extern "C-unwind" {
756 fn sec_protocol_options_set_quic_use_legacy_codepoint(
757 options: sec_protocol_options_t,
758 quic_use_legacy_codepoint: bool,
759 );
760 }
761 unsafe {
762 sec_protocol_options_set_quic_use_legacy_codepoint(options, quic_use_legacy_codepoint)
763 }
764 }
765}
766
767#[cfg(feature = "block2")]
774pub type sec_protocol_key_update_complete_t = *mut block2::DynBlock<dyn Fn()>;
775
776#[cfg(all(feature = "SecProtocolMetadata", feature = "block2"))]
789pub type sec_protocol_key_update_t =
790 *mut block2::DynBlock<dyn Fn(sec_protocol_metadata_t, sec_protocol_key_update_complete_t)>;
791
792#[cfg(all(feature = "SecProtocolTypes", feature = "block2"))]
805pub type sec_protocol_challenge_complete_t = *mut block2::DynBlock<dyn Fn(sec_identity_t)>;
806
807#[cfg(all(
820 feature = "SecProtocolMetadata",
821 feature = "SecProtocolTypes",
822 feature = "block2"
823))]
824pub type sec_protocol_challenge_t =
825 *mut block2::DynBlock<dyn Fn(sec_protocol_metadata_t, sec_protocol_challenge_complete_t)>;
826
827#[cfg(feature = "block2")]
837pub type sec_protocol_verify_complete_t = *mut block2::DynBlock<dyn Fn(bool)>;
838
839#[cfg(all(
857 feature = "SecProtocolMetadata",
858 feature = "SecProtocolTypes",
859 feature = "block2"
860))]
861pub type sec_protocol_verify_t = *mut block2::DynBlock<
862 dyn Fn(sec_protocol_metadata_t, sec_trust_t, sec_protocol_verify_complete_t),
863>;
864
865extern "C-unwind" {
866 #[deprecated = "renamed to `sec_protocol_options::are_equal`"]
867 pub fn sec_protocol_options_are_equal(
868 options_a: sec_protocol_options_t,
869 options_b: sec_protocol_options_t,
870 ) -> bool;
871}
872
873extern "C-unwind" {
874 #[cfg(feature = "SecProtocolTypes")]
875 #[deprecated = "renamed to `sec_protocol_options::set_local_identity`"]
876 pub fn sec_protocol_options_set_local_identity(
877 options: sec_protocol_options_t,
878 identity: sec_identity_t,
879 );
880}
881
882extern "C-unwind" {
883 #[cfg(feature = "SecProtocolTypes")]
884 #[deprecated = "renamed to `sec_protocol_options::append_tls_ciphersuite`"]
885 pub fn sec_protocol_options_append_tls_ciphersuite(
886 options: sec_protocol_options_t,
887 ciphersuite: tls_ciphersuite_t,
888 );
889}
890
891extern "C-unwind" {
892 #[cfg(feature = "CipherSuite")]
893 #[deprecated = "renamed to `sec_protocol_options::add_tls_ciphersuite`"]
894 pub fn sec_protocol_options_add_tls_ciphersuite(
895 options: sec_protocol_options_t,
896 ciphersuite: SSLCipherSuite,
897 );
898}
899
900extern "C-unwind" {
901 #[cfg(feature = "SecProtocolTypes")]
902 #[deprecated = "renamed to `sec_protocol_options::append_tls_ciphersuite_group`"]
903 pub fn sec_protocol_options_append_tls_ciphersuite_group(
904 options: sec_protocol_options_t,
905 group: tls_ciphersuite_group_t,
906 );
907}
908
909extern "C-unwind" {
910 #[cfg(feature = "CipherSuite")]
911 #[deprecated = "renamed to `sec_protocol_options::add_tls_ciphersuite_group`"]
912 pub fn sec_protocol_options_add_tls_ciphersuite_group(
913 options: sec_protocol_options_t,
914 group: SSLCiphersuiteGroup,
915 );
916}
917
918extern "C-unwind" {
919 #[cfg(feature = "SecProtocolTypes")]
920 #[deprecated = "renamed to `sec_protocol_options::set_tls_min_version`"]
921 pub fn sec_protocol_options_set_tls_min_version(
922 options: sec_protocol_options_t,
923 version: SSLProtocol,
924 );
925}
926
927extern "C-unwind" {
928 #[cfg(feature = "SecProtocolTypes")]
929 #[deprecated = "renamed to `sec_protocol_options::set_min_tls_protocol_version`"]
930 pub fn sec_protocol_options_set_min_tls_protocol_version(
931 options: sec_protocol_options_t,
932 version: tls_protocol_version_t,
933 );
934}
935
936extern "C-unwind" {
937 #[cfg(feature = "SecProtocolTypes")]
938 #[deprecated = "renamed to `sec_protocol_options::default_min_tls_protocol_version`"]
939 pub fn sec_protocol_options_get_default_min_tls_protocol_version() -> tls_protocol_version_t;
940}
941
942extern "C-unwind" {
943 #[cfg(feature = "SecProtocolTypes")]
944 #[deprecated = "renamed to `sec_protocol_options::default_min_dtls_protocol_version`"]
945 pub fn sec_protocol_options_get_default_min_dtls_protocol_version() -> tls_protocol_version_t;
946}
947
948extern "C-unwind" {
949 #[cfg(feature = "SecProtocolTypes")]
950 #[deprecated = "renamed to `sec_protocol_options::set_tls_max_version`"]
951 pub fn sec_protocol_options_set_tls_max_version(
952 options: sec_protocol_options_t,
953 version: SSLProtocol,
954 );
955}
956
957extern "C-unwind" {
958 #[cfg(feature = "SecProtocolTypes")]
959 #[deprecated = "renamed to `sec_protocol_options::set_max_tls_protocol_version`"]
960 pub fn sec_protocol_options_set_max_tls_protocol_version(
961 options: sec_protocol_options_t,
962 version: tls_protocol_version_t,
963 );
964}
965
966extern "C-unwind" {
967 #[cfg(feature = "SecProtocolTypes")]
968 #[deprecated = "renamed to `sec_protocol_options::default_max_tls_protocol_version`"]
969 pub fn sec_protocol_options_get_default_max_tls_protocol_version() -> tls_protocol_version_t;
970}
971
972extern "C-unwind" {
973 #[cfg(feature = "SecProtocolTypes")]
974 #[deprecated = "renamed to `sec_protocol_options::default_max_dtls_protocol_version`"]
975 pub fn sec_protocol_options_get_default_max_dtls_protocol_version() -> tls_protocol_version_t;
976}
977
978extern "C-unwind" {
979 #[deprecated = "renamed to `sec_protocol_options::enabled_encrypted_client_hello`"]
980 pub fn sec_protocol_options_get_enable_encrypted_client_hello(
981 options: sec_protocol_options_t,
982 ) -> bool;
983}
984
985extern "C-unwind" {
986 #[deprecated = "renamed to `sec_protocol_options::quic_use_legacy_codepoint`"]
987 pub fn sec_protocol_options_get_quic_use_legacy_codepoint(
988 options: sec_protocol_options_t,
989 ) -> bool;
990}
991
992extern "C-unwind" {
993 #[deprecated = "renamed to `sec_protocol_options::add_tls_application_protocol`"]
994 pub fn sec_protocol_options_add_tls_application_protocol(
995 options: sec_protocol_options_t,
996 application_protocol: NonNull<c_char>,
997 );
998}
999
1000extern "C-unwind" {
1001 #[deprecated = "renamed to `sec_protocol_options::set_tls_server_name`"]
1002 pub fn sec_protocol_options_set_tls_server_name(
1003 options: sec_protocol_options_t,
1004 server_name: NonNull<c_char>,
1005 );
1006}
1007
1008extern "C-unwind" {
1009 #[deprecated = "renamed to `sec_protocol_options::set_tls_tickets_enabled`"]
1010 pub fn sec_protocol_options_set_tls_tickets_enabled(
1011 options: sec_protocol_options_t,
1012 tickets_enabled: bool,
1013 );
1014}
1015
1016extern "C-unwind" {
1017 #[deprecated = "renamed to `sec_protocol_options::set_tls_is_fallback_attempt`"]
1018 pub fn sec_protocol_options_set_tls_is_fallback_attempt(
1019 options: sec_protocol_options_t,
1020 is_fallback_attempt: bool,
1021 );
1022}
1023
1024extern "C-unwind" {
1025 #[deprecated = "renamed to `sec_protocol_options::set_tls_resumption_enabled`"]
1026 pub fn sec_protocol_options_set_tls_resumption_enabled(
1027 options: sec_protocol_options_t,
1028 resumption_enabled: bool,
1029 );
1030}
1031
1032extern "C-unwind" {
1033 #[deprecated = "renamed to `sec_protocol_options::set_tls_false_start_enabled`"]
1034 pub fn sec_protocol_options_set_tls_false_start_enabled(
1035 options: sec_protocol_options_t,
1036 false_start_enabled: bool,
1037 );
1038}
1039
1040extern "C-unwind" {
1041 #[deprecated = "renamed to `sec_protocol_options::set_tls_ocsp_enabled`"]
1042 pub fn sec_protocol_options_set_tls_ocsp_enabled(
1043 options: sec_protocol_options_t,
1044 ocsp_enabled: bool,
1045 );
1046}
1047
1048extern "C-unwind" {
1049 #[deprecated = "renamed to `sec_protocol_options::set_tls_sct_enabled`"]
1050 pub fn sec_protocol_options_set_tls_sct_enabled(
1051 options: sec_protocol_options_t,
1052 sct_enabled: bool,
1053 );
1054}
1055
1056extern "C-unwind" {
1057 #[deprecated = "renamed to `sec_protocol_options::set_tls_renegotiation_enabled`"]
1058 pub fn sec_protocol_options_set_tls_renegotiation_enabled(
1059 options: sec_protocol_options_t,
1060 renegotiation_enabled: bool,
1061 );
1062}
1063
1064extern "C-unwind" {
1065 #[deprecated = "renamed to `sec_protocol_options::set_peer_authentication_required`"]
1066 pub fn sec_protocol_options_set_peer_authentication_required(
1067 options: sec_protocol_options_t,
1068 peer_authentication_required: bool,
1069 );
1070}
1071
1072extern "C-unwind" {
1073 #[deprecated = "renamed to `sec_protocol_options::set_peer_authentication_optional`"]
1074 pub fn sec_protocol_options_set_peer_authentication_optional(
1075 options: sec_protocol_options_t,
1076 peer_authentication_optional: bool,
1077 );
1078}
1079
1080extern "C-unwind" {
1081 #[deprecated = "renamed to `sec_protocol_options::set_enable_encrypted_client_hello`"]
1082 pub fn sec_protocol_options_set_enable_encrypted_client_hello(
1083 options: sec_protocol_options_t,
1084 enable_encrypted_client_hello: bool,
1085 );
1086}
1087
1088extern "C-unwind" {
1089 #[deprecated = "renamed to `sec_protocol_options::set_quic_use_legacy_codepoint`"]
1090 pub fn sec_protocol_options_set_quic_use_legacy_codepoint(
1091 options: sec_protocol_options_t,
1092 quic_use_legacy_codepoint: bool,
1093 );
1094}