1use core::ffi::*;
4
5use crate::*;
6
7extern "C-unwind" {
8 #[cfg(all(feature = "cssmconfig", feature = "cssmtype"))]
15 #[deprecated]
16 pub fn CSSM_Init(
17 version: *const CSSM_VERSION,
18 scope: CSSM_PRIVILEGE_SCOPE,
19 caller_guid: *const CSSM_GUID,
20 key_hierarchy: CSSM_KEY_HIERARCHY,
21 pvc_policy: *mut CSSM_PVC_MODE,
22 reserved: *const c_void,
23 ) -> CSSM_RETURN;
24}
25
26extern "C-unwind" {
27 #[cfg(all(feature = "cssmconfig", feature = "cssmtype"))]
28 #[deprecated]
29 pub fn CSSM_Terminate() -> CSSM_RETURN;
30}
31
32extern "C-unwind" {
33 #[cfg(all(feature = "cssmconfig", feature = "cssmtype"))]
39 #[deprecated]
40 pub fn CSSM_ModuleLoad(
41 module_guid: *const CSSM_GUID,
42 key_hierarchy: CSSM_KEY_HIERARCHY,
43 app_notify_callback: CSSM_API_ModuleEventHandler,
44 app_notify_callback_ctx: *mut c_void,
45 ) -> CSSM_RETURN;
46}
47
48extern "C-unwind" {
49 #[cfg(all(feature = "cssmconfig", feature = "cssmtype"))]
55 #[deprecated]
56 pub fn CSSM_ModuleUnload(
57 module_guid: *const CSSM_GUID,
58 app_notify_callback: CSSM_API_ModuleEventHandler,
59 app_notify_callback_ctx: *mut c_void,
60 ) -> CSSM_RETURN;
61}
62
63extern "C-unwind" {
64 #[cfg(all(feature = "cssmconfig", feature = "cssmtype"))]
68 #[deprecated]
69 pub fn CSSM_Introduce(
70 module_id: *const CSSM_GUID,
71 key_hierarchy: CSSM_KEY_HIERARCHY,
72 ) -> CSSM_RETURN;
73}
74
75extern "C-unwind" {
76 #[cfg(all(feature = "cssmconfig", feature = "cssmtype"))]
80 #[deprecated]
81 pub fn CSSM_Unintroduce(module_id: *const CSSM_GUID) -> CSSM_RETURN;
82}
83
84extern "C-unwind" {
85 #[cfg(all(feature = "cssmconfig", feature = "cssmtype"))]
94 #[deprecated]
95 pub fn CSSM_ModuleAttach(
96 module_guid: *const CSSM_GUID,
97 version: *const CSSM_VERSION,
98 memory_funcs: *const CSSM_API_MEMORY_FUNCS,
99 subservice_id: uint32,
100 sub_service_type: CSSM_SERVICE_TYPE,
101 attach_flags: CSSM_ATTACH_FLAGS,
102 key_hierarchy: CSSM_KEY_HIERARCHY,
103 function_table: *mut CSSM_FUNC_NAME_ADDR,
104 num_function_table: uint32,
105 reserved: *const c_void,
106 new_module_handle: CSSM_MODULE_HANDLE_PTR,
107 ) -> CSSM_RETURN;
108}
109
110extern "C-unwind" {
111 #[cfg(all(feature = "cssmconfig", feature = "cssmtype"))]
112 #[deprecated]
113 pub fn CSSM_ModuleDetach(module_handle: CSSM_MODULE_HANDLE) -> CSSM_RETURN;
114}
115
116extern "C-unwind" {
117 #[cfg(all(feature = "cssmconfig", feature = "cssmtype"))]
118 #[deprecated]
119 pub fn CSSM_SetPrivilege(privilege: CSSM_PRIVILEGE) -> CSSM_RETURN;
120}
121
122extern "C-unwind" {
123 #[cfg(all(feature = "cssmconfig", feature = "cssmtype"))]
127 #[deprecated]
128 pub fn CSSM_GetPrivilege(privilege: *mut CSSM_PRIVILEGE) -> CSSM_RETURN;
129}
130
131extern "C-unwind" {
132 #[cfg(all(feature = "cssmconfig", feature = "cssmtype"))]
136 #[deprecated]
137 pub fn CSSM_GetModuleGUIDFromHandle(
138 module_handle: CSSM_MODULE_HANDLE,
139 module_guid: CSSM_GUID_PTR,
140 ) -> CSSM_RETURN;
141}
142
143extern "C-unwind" {
144 #[cfg(all(feature = "cssmconfig", feature = "cssmtype"))]
148 #[deprecated]
149 pub fn CSSM_GetSubserviceUIDFromHandle(
150 module_handle: CSSM_MODULE_HANDLE,
151 subservice_uid: CSSM_SUBSERVICE_UID_PTR,
152 ) -> CSSM_RETURN;
153}
154
155extern "C-unwind" {
156 #[cfg(all(feature = "cssmconfig", feature = "cssmtype"))]
161 #[deprecated]
162 pub fn CSSM_ListAttachedModuleManagers(
163 number_of_module_managers: *mut uint32,
164 module_manager_guids: CSSM_GUID_PTR,
165 ) -> CSSM_RETURN;
166}
167
168extern "C-unwind" {
169 #[cfg(all(feature = "cssmconfig", feature = "cssmtype"))]
173 #[deprecated]
174 pub fn CSSM_GetAPIMemoryFunctions(
175 add_in_handle: CSSM_MODULE_HANDLE,
176 app_memory_funcs: CSSM_API_MEMORY_FUNCS_PTR,
177 ) -> CSSM_RETURN;
178}
179
180extern "C-unwind" {
181 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
187 #[deprecated]
188 pub fn CSSM_CSP_CreateSignatureContext(
189 csp_handle: CSSM_CSP_HANDLE,
190 algorithm_id: CSSM_ALGORITHMS,
191 access_cred: *const CSSM_ACCESS_CREDENTIALS,
192 key: *const CSSM_KEY,
193 new_context_handle: *mut CSSM_CC_HANDLE,
194 ) -> CSSM_RETURN;
195}
196
197extern "C-unwind" {
198 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
206 #[deprecated]
207 pub fn CSSM_CSP_CreateSymmetricContext(
208 csp_handle: CSSM_CSP_HANDLE,
209 algorithm_id: CSSM_ALGORITHMS,
210 mode: CSSM_ENCRYPT_MODE,
211 access_cred: *const CSSM_ACCESS_CREDENTIALS,
212 key: *const CSSM_KEY,
213 init_vector: *const SecAsn1Item,
214 padding: CSSM_PADDING,
215 reserved: *mut c_void,
216 new_context_handle: *mut CSSM_CC_HANDLE,
217 ) -> CSSM_RETURN;
218}
219
220extern "C-unwind" {
221 #[cfg(all(feature = "cssmconfig", feature = "cssmtype"))]
225 #[deprecated]
226 pub fn CSSM_CSP_CreateDigestContext(
227 csp_handle: CSSM_CSP_HANDLE,
228 algorithm_id: CSSM_ALGORITHMS,
229 new_context_handle: *mut CSSM_CC_HANDLE,
230 ) -> CSSM_RETURN;
231}
232
233extern "C-unwind" {
234 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
239 #[deprecated]
240 pub fn CSSM_CSP_CreateMacContext(
241 csp_handle: CSSM_CSP_HANDLE,
242 algorithm_id: CSSM_ALGORITHMS,
243 key: *const CSSM_KEY,
244 new_context_handle: *mut CSSM_CC_HANDLE,
245 ) -> CSSM_RETURN;
246}
247
248extern "C-unwind" {
249 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
254 #[deprecated]
255 pub fn CSSM_CSP_CreateRandomGenContext(
256 csp_handle: CSSM_CSP_HANDLE,
257 algorithm_id: CSSM_ALGORITHMS,
258 seed: *const CSSM_CRYPTO_DATA,
259 length: CSSM_SIZE,
260 new_context_handle: *mut CSSM_CC_HANDLE,
261 ) -> CSSM_RETURN;
262}
263
264extern "C-unwind" {
265 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
271 #[deprecated]
272 pub fn CSSM_CSP_CreateAsymmetricContext(
273 csp_handle: CSSM_CSP_HANDLE,
274 algorithm_id: CSSM_ALGORITHMS,
275 access_cred: *const CSSM_ACCESS_CREDENTIALS,
276 key: *const CSSM_KEY,
277 padding: CSSM_PADDING,
278 new_context_handle: *mut CSSM_CC_HANDLE,
279 ) -> CSSM_RETURN;
280}
281
282extern "C-unwind" {
283 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
291 #[deprecated]
292 pub fn CSSM_CSP_CreateDeriveKeyContext(
293 csp_handle: CSSM_CSP_HANDLE,
294 algorithm_id: CSSM_ALGORITHMS,
295 derive_key_type: CSSM_KEY_TYPE,
296 derive_key_length_in_bits: uint32,
297 access_cred: *const CSSM_ACCESS_CREDENTIALS,
298 base_key: *const CSSM_KEY,
299 iteration_count: uint32,
300 salt: *const SecAsn1Item,
301 seed: *const CSSM_CRYPTO_DATA,
302 new_context_handle: *mut CSSM_CC_HANDLE,
303 ) -> CSSM_RETURN;
304}
305
306extern "C-unwind" {
307 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
316 #[deprecated]
317 pub fn CSSM_CSP_CreateKeyGenContext(
318 csp_handle: CSSM_CSP_HANDLE,
319 algorithm_id: CSSM_ALGORITHMS,
320 key_size_in_bits: uint32,
321 seed: *const CSSM_CRYPTO_DATA,
322 salt: *const SecAsn1Item,
323 start_date: *const CSSM_DATE,
324 end_date: *const CSSM_DATE,
325 params: *const SecAsn1Item,
326 new_context_handle: *mut CSSM_CC_HANDLE,
327 ) -> CSSM_RETURN;
328}
329
330extern "C-unwind" {
331 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
336 #[deprecated]
337 pub fn CSSM_CSP_CreatePassThroughContext(
338 csp_handle: CSSM_CSP_HANDLE,
339 key: *const CSSM_KEY,
340 new_context_handle: *mut CSSM_CC_HANDLE,
341 ) -> CSSM_RETURN;
342}
343
344extern "C-unwind" {
345 #[cfg(all(
349 feature = "SecAsn1Types",
350 feature = "cssmconfig",
351 feature = "cssmkrapi",
352 feature = "cssmtype"
353 ))]
354 #[deprecated]
355 pub fn CSSM_GetContext(
356 cc_handle: CSSM_CC_HANDLE,
357 context: *mut CSSM_CONTEXT_PTR,
358 ) -> CSSM_RETURN;
359}
360
361extern "C-unwind" {
362 #[cfg(all(
366 feature = "SecAsn1Types",
367 feature = "cssmconfig",
368 feature = "cssmkrapi",
369 feature = "cssmtype"
370 ))]
371 #[deprecated]
372 pub fn CSSM_FreeContext(context: CSSM_CONTEXT_PTR) -> CSSM_RETURN;
373}
374
375extern "C-unwind" {
376 #[cfg(all(
380 feature = "SecAsn1Types",
381 feature = "cssmconfig",
382 feature = "cssmkrapi",
383 feature = "cssmtype"
384 ))]
385 #[deprecated]
386 pub fn CSSM_SetContext(cc_handle: CSSM_CC_HANDLE, context: *const CSSM_CONTEXT) -> CSSM_RETURN;
387}
388
389extern "C-unwind" {
390 #[cfg(all(feature = "cssmconfig", feature = "cssmtype"))]
391 #[deprecated]
392 pub fn CSSM_DeleteContext(cc_handle: CSSM_CC_HANDLE) -> CSSM_RETURN;
393}
394
395extern "C-unwind" {
396 #[cfg(all(
401 feature = "SecAsn1Types",
402 feature = "cssmconfig",
403 feature = "cssmkrapi",
404 feature = "cssmtype"
405 ))]
406 #[deprecated]
407 pub fn CSSM_GetContextAttribute(
408 context: *const CSSM_CONTEXT,
409 attribute_type: uint32,
410 context_attribute: *mut CSSM_CONTEXT_ATTRIBUTE_PTR,
411 ) -> CSSM_RETURN;
412}
413
414extern "C-unwind" {
415 #[cfg(all(
419 feature = "SecAsn1Types",
420 feature = "cssmconfig",
421 feature = "cssmkrapi",
422 feature = "cssmtype"
423 ))]
424 #[deprecated]
425 pub fn CSSM_UpdateContextAttributes(
426 cc_handle: CSSM_CC_HANDLE,
427 number_of_attributes: uint32,
428 context_attributes: *const CSSM_CONTEXT_ATTRIBUTE,
429 ) -> CSSM_RETURN;
430}
431
432extern "C-unwind" {
433 #[cfg(all(
437 feature = "SecAsn1Types",
438 feature = "cssmconfig",
439 feature = "cssmkrapi",
440 feature = "cssmtype"
441 ))]
442 #[deprecated]
443 pub fn CSSM_DeleteContextAttributes(
444 cc_handle: CSSM_CC_HANDLE,
445 number_of_attributes: uint32,
446 context_attributes: *const CSSM_CONTEXT_ATTRIBUTE,
447 ) -> CSSM_RETURN;
448}
449
450extern "C-unwind" {
451 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
457 #[deprecated]
458 pub fn CSSM_CSP_Login(
459 csp_handle: CSSM_CSP_HANDLE,
460 access_cred: *const CSSM_ACCESS_CREDENTIALS,
461 login_name: *const SecAsn1Item,
462 reserved: *const c_void,
463 ) -> CSSM_RETURN;
464}
465
466extern "C-unwind" {
467 #[cfg(all(feature = "cssmconfig", feature = "cssmtype"))]
468 #[deprecated]
469 pub fn CSSM_CSP_Logout(csp_handle: CSSM_CSP_HANDLE) -> CSSM_RETURN;
470}
471
472extern "C-unwind" {
473 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
479 #[deprecated]
480 pub fn CSSM_CSP_GetLoginAcl(
481 csp_handle: CSSM_CSP_HANDLE,
482 selection_tag: *const CSSM_STRING,
483 number_of_acl_infos: *mut uint32,
484 acl_infos: *mut CSSM_ACL_ENTRY_INFO_PTR,
485 ) -> CSSM_RETURN;
486}
487
488extern "C-unwind" {
489 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
494 #[deprecated]
495 pub fn CSSM_CSP_ChangeLoginAcl(
496 csp_handle: CSSM_CSP_HANDLE,
497 access_cred: *const CSSM_ACCESS_CREDENTIALS,
498 acl_edit: *const CSSM_ACL_EDIT,
499 ) -> CSSM_RETURN;
500}
501
502extern "C-unwind" {
503 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
510 #[deprecated]
511 pub fn CSSM_GetKeyAcl(
512 csp_handle: CSSM_CSP_HANDLE,
513 key: *const CSSM_KEY,
514 selection_tag: *const CSSM_STRING,
515 number_of_acl_infos: *mut uint32,
516 acl_infos: *mut CSSM_ACL_ENTRY_INFO_PTR,
517 ) -> CSSM_RETURN;
518}
519
520extern "C-unwind" {
521 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
527 #[deprecated]
528 pub fn CSSM_ChangeKeyAcl(
529 csp_handle: CSSM_CSP_HANDLE,
530 access_cred: *const CSSM_ACCESS_CREDENTIALS,
531 acl_edit: *const CSSM_ACL_EDIT,
532 key: *const CSSM_KEY,
533 ) -> CSSM_RETURN;
534}
535
536extern "C-unwind" {
537 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
542 #[deprecated]
543 pub fn CSSM_GetKeyOwner(
544 csp_handle: CSSM_CSP_HANDLE,
545 key: *const CSSM_KEY,
546 owner: CSSM_ACL_OWNER_PROTOTYPE_PTR,
547 ) -> CSSM_RETURN;
548}
549
550extern "C-unwind" {
551 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
557 #[deprecated]
558 pub fn CSSM_ChangeKeyOwner(
559 csp_handle: CSSM_CSP_HANDLE,
560 access_cred: *const CSSM_ACCESS_CREDENTIALS,
561 key: *const CSSM_KEY,
562 new_owner: *const CSSM_ACL_OWNER_PROTOTYPE,
563 ) -> CSSM_RETURN;
564}
565
566extern "C-unwind" {
567 #[cfg(all(feature = "cssmconfig", feature = "cssmtype"))]
571 #[deprecated]
572 pub fn CSSM_CSP_GetLoginOwner(
573 csp_handle: CSSM_CSP_HANDLE,
574 owner: CSSM_ACL_OWNER_PROTOTYPE_PTR,
575 ) -> CSSM_RETURN;
576}
577
578extern "C-unwind" {
579 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
584 #[deprecated]
585 pub fn CSSM_CSP_ChangeLoginOwner(
586 csp_handle: CSSM_CSP_HANDLE,
587 access_cred: *const CSSM_ACCESS_CREDENTIALS,
588 new_owner: *const CSSM_ACL_OWNER_PROTOTYPE,
589 ) -> CSSM_RETURN;
590}
591
592extern "C-unwind" {
593 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
598 #[deprecated]
599 pub fn CSSM_SignData(
600 cc_handle: CSSM_CC_HANDLE,
601 data_bufs: *const SecAsn1Item,
602 data_buf_count: uint32,
603 digest_algorithm: CSSM_ALGORITHMS,
604 signature: CSSM_DATA_PTR,
605 ) -> CSSM_RETURN;
606}
607
608extern "C-unwind" {
609 #[cfg(all(feature = "cssmconfig", feature = "cssmtype"))]
610 #[deprecated]
611 pub fn CSSM_SignDataInit(cc_handle: CSSM_CC_HANDLE) -> CSSM_RETURN;
612}
613
614extern "C-unwind" {
615 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
619 #[deprecated]
620 pub fn CSSM_SignDataUpdate(
621 cc_handle: CSSM_CC_HANDLE,
622 data_bufs: *const SecAsn1Item,
623 data_buf_count: uint32,
624 ) -> CSSM_RETURN;
625}
626
627extern "C-unwind" {
628 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
632 #[deprecated]
633 pub fn CSSM_SignDataFinal(cc_handle: CSSM_CC_HANDLE, signature: CSSM_DATA_PTR) -> CSSM_RETURN;
634}
635
636extern "C-unwind" {
637 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
642 #[deprecated]
643 pub fn CSSM_VerifyData(
644 cc_handle: CSSM_CC_HANDLE,
645 data_bufs: *const SecAsn1Item,
646 data_buf_count: uint32,
647 digest_algorithm: CSSM_ALGORITHMS,
648 signature: *const SecAsn1Item,
649 ) -> CSSM_RETURN;
650}
651
652extern "C-unwind" {
653 #[cfg(all(feature = "cssmconfig", feature = "cssmtype"))]
654 #[deprecated]
655 pub fn CSSM_VerifyDataInit(cc_handle: CSSM_CC_HANDLE) -> CSSM_RETURN;
656}
657
658extern "C-unwind" {
659 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
663 #[deprecated]
664 pub fn CSSM_VerifyDataUpdate(
665 cc_handle: CSSM_CC_HANDLE,
666 data_bufs: *const SecAsn1Item,
667 data_buf_count: uint32,
668 ) -> CSSM_RETURN;
669}
670
671extern "C-unwind" {
672 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
676 #[deprecated]
677 pub fn CSSM_VerifyDataFinal(
678 cc_handle: CSSM_CC_HANDLE,
679 signature: *const SecAsn1Item,
680 ) -> CSSM_RETURN;
681}
682
683extern "C-unwind" {
684 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
689 #[deprecated]
690 pub fn CSSM_DigestData(
691 cc_handle: CSSM_CC_HANDLE,
692 data_bufs: *const SecAsn1Item,
693 data_buf_count: uint32,
694 digest: CSSM_DATA_PTR,
695 ) -> CSSM_RETURN;
696}
697
698extern "C-unwind" {
699 #[cfg(all(feature = "cssmconfig", feature = "cssmtype"))]
700 #[deprecated]
701 pub fn CSSM_DigestDataInit(cc_handle: CSSM_CC_HANDLE) -> CSSM_RETURN;
702}
703
704extern "C-unwind" {
705 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
709 #[deprecated]
710 pub fn CSSM_DigestDataUpdate(
711 cc_handle: CSSM_CC_HANDLE,
712 data_bufs: *const SecAsn1Item,
713 data_buf_count: uint32,
714 ) -> CSSM_RETURN;
715}
716
717extern "C-unwind" {
718 #[cfg(all(feature = "cssmconfig", feature = "cssmtype"))]
722 #[deprecated]
723 pub fn CSSM_DigestDataClone(
724 cc_handle: CSSM_CC_HANDLE,
725 clonednew_cc_handle: *mut CSSM_CC_HANDLE,
726 ) -> CSSM_RETURN;
727}
728
729extern "C-unwind" {
730 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
734 #[deprecated]
735 pub fn CSSM_DigestDataFinal(cc_handle: CSSM_CC_HANDLE, digest: CSSM_DATA_PTR) -> CSSM_RETURN;
736}
737
738extern "C-unwind" {
739 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
744 #[deprecated]
745 pub fn CSSM_GenerateMac(
746 cc_handle: CSSM_CC_HANDLE,
747 data_bufs: *const SecAsn1Item,
748 data_buf_count: uint32,
749 mac: CSSM_DATA_PTR,
750 ) -> CSSM_RETURN;
751}
752
753extern "C-unwind" {
754 #[cfg(all(feature = "cssmconfig", feature = "cssmtype"))]
755 #[deprecated]
756 pub fn CSSM_GenerateMacInit(cc_handle: CSSM_CC_HANDLE) -> CSSM_RETURN;
757}
758
759extern "C-unwind" {
760 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
764 #[deprecated]
765 pub fn CSSM_GenerateMacUpdate(
766 cc_handle: CSSM_CC_HANDLE,
767 data_bufs: *const SecAsn1Item,
768 data_buf_count: uint32,
769 ) -> CSSM_RETURN;
770}
771
772extern "C-unwind" {
773 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
777 #[deprecated]
778 pub fn CSSM_GenerateMacFinal(cc_handle: CSSM_CC_HANDLE, mac: CSSM_DATA_PTR) -> CSSM_RETURN;
779}
780
781extern "C-unwind" {
782 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
787 #[deprecated]
788 pub fn CSSM_VerifyMac(
789 cc_handle: CSSM_CC_HANDLE,
790 data_bufs: *const SecAsn1Item,
791 data_buf_count: uint32,
792 mac: *const SecAsn1Item,
793 ) -> CSSM_RETURN;
794}
795
796extern "C-unwind" {
797 #[cfg(all(feature = "cssmconfig", feature = "cssmtype"))]
798 #[deprecated]
799 pub fn CSSM_VerifyMacInit(cc_handle: CSSM_CC_HANDLE) -> CSSM_RETURN;
800}
801
802extern "C-unwind" {
803 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
807 #[deprecated]
808 pub fn CSSM_VerifyMacUpdate(
809 cc_handle: CSSM_CC_HANDLE,
810 data_bufs: *const SecAsn1Item,
811 data_buf_count: uint32,
812 ) -> CSSM_RETURN;
813}
814
815extern "C-unwind" {
816 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
820 #[deprecated]
821 pub fn CSSM_VerifyMacFinal(cc_handle: CSSM_CC_HANDLE, mac: *const SecAsn1Item) -> CSSM_RETURN;
822}
823
824extern "C-unwind" {
825 #[cfg(all(feature = "cssmconfig", feature = "cssmtype"))]
829 #[deprecated]
830 pub fn CSSM_QuerySize(
831 cc_handle: CSSM_CC_HANDLE,
832 encrypt: CSSM_BOOL,
833 query_size_count: uint32,
834 data_block_sizes: CSSM_QUERY_SIZE_DATA_PTR,
835 ) -> CSSM_RETURN;
836}
837
838extern "C-unwind" {
839 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
846 #[deprecated]
847 pub fn CSSM_EncryptData(
848 cc_handle: CSSM_CC_HANDLE,
849 clear_bufs: *const SecAsn1Item,
850 clear_buf_count: uint32,
851 cipher_bufs: CSSM_DATA_PTR,
852 cipher_buf_count: uint32,
853 bytes_encrypted: *mut CSSM_SIZE,
854 rem_data: CSSM_DATA_PTR,
855 ) -> CSSM_RETURN;
856}
857
858extern "C-unwind" {
859 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
866 #[deprecated]
867 pub fn CSSM_EncryptDataP(
868 cc_handle: CSSM_CC_HANDLE,
869 clear_bufs: *const SecAsn1Item,
870 clear_buf_count: uint32,
871 cipher_bufs: CSSM_DATA_PTR,
872 cipher_buf_count: uint32,
873 bytes_encrypted: *mut CSSM_SIZE,
874 rem_data: CSSM_DATA_PTR,
875 privilege: CSSM_PRIVILEGE,
876 ) -> CSSM_RETURN;
877}
878
879extern "C-unwind" {
880 #[cfg(all(feature = "cssmconfig", feature = "cssmtype"))]
881 #[deprecated]
882 pub fn CSSM_EncryptDataInit(cc_handle: CSSM_CC_HANDLE) -> CSSM_RETURN;
883}
884
885extern "C-unwind" {
886 #[cfg(all(feature = "cssmconfig", feature = "cssmtype"))]
887 #[deprecated]
888 pub fn CSSM_EncryptDataInitP(
889 cc_handle: CSSM_CC_HANDLE,
890 privilege: CSSM_PRIVILEGE,
891 ) -> CSSM_RETURN;
892}
893
894extern "C-unwind" {
895 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
901 #[deprecated]
902 pub fn CSSM_EncryptDataUpdate(
903 cc_handle: CSSM_CC_HANDLE,
904 clear_bufs: *const SecAsn1Item,
905 clear_buf_count: uint32,
906 cipher_bufs: CSSM_DATA_PTR,
907 cipher_buf_count: uint32,
908 bytes_encrypted: *mut CSSM_SIZE,
909 ) -> CSSM_RETURN;
910}
911
912extern "C-unwind" {
913 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
917 #[deprecated]
918 pub fn CSSM_EncryptDataFinal(cc_handle: CSSM_CC_HANDLE, rem_data: CSSM_DATA_PTR)
919 -> CSSM_RETURN;
920}
921
922extern "C-unwind" {
923 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
930 #[deprecated]
931 pub fn CSSM_DecryptData(
932 cc_handle: CSSM_CC_HANDLE,
933 cipher_bufs: *const SecAsn1Item,
934 cipher_buf_count: uint32,
935 clear_bufs: CSSM_DATA_PTR,
936 clear_buf_count: uint32,
937 bytes_decrypted: *mut CSSM_SIZE,
938 rem_data: CSSM_DATA_PTR,
939 ) -> CSSM_RETURN;
940}
941
942extern "C-unwind" {
943 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
950 #[deprecated]
951 pub fn CSSM_DecryptDataP(
952 cc_handle: CSSM_CC_HANDLE,
953 cipher_bufs: *const SecAsn1Item,
954 cipher_buf_count: uint32,
955 clear_bufs: CSSM_DATA_PTR,
956 clear_buf_count: uint32,
957 bytes_decrypted: *mut CSSM_SIZE,
958 rem_data: CSSM_DATA_PTR,
959 privilege: CSSM_PRIVILEGE,
960 ) -> CSSM_RETURN;
961}
962
963extern "C-unwind" {
964 #[cfg(all(feature = "cssmconfig", feature = "cssmtype"))]
965 #[deprecated]
966 pub fn CSSM_DecryptDataInit(cc_handle: CSSM_CC_HANDLE) -> CSSM_RETURN;
967}
968
969extern "C-unwind" {
970 #[cfg(all(feature = "cssmconfig", feature = "cssmtype"))]
971 #[deprecated]
972 pub fn CSSM_DecryptDataInitP(
973 cc_handle: CSSM_CC_HANDLE,
974 privilege: CSSM_PRIVILEGE,
975 ) -> CSSM_RETURN;
976}
977
978extern "C-unwind" {
979 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
985 #[deprecated]
986 pub fn CSSM_DecryptDataUpdate(
987 cc_handle: CSSM_CC_HANDLE,
988 cipher_bufs: *const SecAsn1Item,
989 cipher_buf_count: uint32,
990 clear_bufs: CSSM_DATA_PTR,
991 clear_buf_count: uint32,
992 bytes_decrypted: *mut CSSM_SIZE,
993 ) -> CSSM_RETURN;
994}
995
996extern "C-unwind" {
997 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
1001 #[deprecated]
1002 pub fn CSSM_DecryptDataFinal(cc_handle: CSSM_CC_HANDLE, rem_data: CSSM_DATA_PTR)
1003 -> CSSM_RETURN;
1004}
1005
1006extern "C-unwind" {
1007 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
1012 #[deprecated]
1013 pub fn CSSM_QueryKeySizeInBits(
1014 csp_handle: CSSM_CSP_HANDLE,
1015 cc_handle: CSSM_CC_HANDLE,
1016 key: *const CSSM_KEY,
1017 key_size: CSSM_KEY_SIZE_PTR,
1018 ) -> CSSM_RETURN;
1019}
1020
1021extern "C-unwind" {
1022 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
1028 #[deprecated]
1029 pub fn CSSM_GenerateKey(
1030 cc_handle: CSSM_CC_HANDLE,
1031 key_usage: uint32,
1032 key_attr: uint32,
1033 key_label: *const SecAsn1Item,
1034 cred_and_acl_entry: *const CSSM_RESOURCE_CONTROL_CONTEXT,
1035 key: CSSM_KEY_PTR,
1036 ) -> CSSM_RETURN;
1037}
1038
1039extern "C-unwind" {
1040 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
1046 #[deprecated]
1047 pub fn CSSM_GenerateKeyP(
1048 cc_handle: CSSM_CC_HANDLE,
1049 key_usage: uint32,
1050 key_attr: uint32,
1051 key_label: *const SecAsn1Item,
1052 cred_and_acl_entry: *const CSSM_RESOURCE_CONTROL_CONTEXT,
1053 key: CSSM_KEY_PTR,
1054 privilege: CSSM_PRIVILEGE,
1055 ) -> CSSM_RETURN;
1056}
1057
1058extern "C-unwind" {
1059 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
1067 #[deprecated]
1068 pub fn CSSM_GenerateKeyPair(
1069 cc_handle: CSSM_CC_HANDLE,
1070 public_key_usage: uint32,
1071 public_key_attr: uint32,
1072 public_key_label: *const SecAsn1Item,
1073 public_key: CSSM_KEY_PTR,
1074 private_key_usage: uint32,
1075 private_key_attr: uint32,
1076 private_key_label: *const SecAsn1Item,
1077 cred_and_acl_entry: *const CSSM_RESOURCE_CONTROL_CONTEXT,
1078 private_key: CSSM_KEY_PTR,
1079 ) -> CSSM_RETURN;
1080}
1081
1082extern "C-unwind" {
1083 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
1091 #[deprecated]
1092 pub fn CSSM_GenerateKeyPairP(
1093 cc_handle: CSSM_CC_HANDLE,
1094 public_key_usage: uint32,
1095 public_key_attr: uint32,
1096 public_key_label: *const SecAsn1Item,
1097 public_key: CSSM_KEY_PTR,
1098 private_key_usage: uint32,
1099 private_key_attr: uint32,
1100 private_key_label: *const SecAsn1Item,
1101 cred_and_acl_entry: *const CSSM_RESOURCE_CONTROL_CONTEXT,
1102 private_key: CSSM_KEY_PTR,
1103 privilege: CSSM_PRIVILEGE,
1104 ) -> CSSM_RETURN;
1105}
1106
1107extern "C-unwind" {
1108 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
1112 #[deprecated]
1113 pub fn CSSM_GenerateRandom(
1114 cc_handle: CSSM_CC_HANDLE,
1115 random_number: CSSM_DATA_PTR,
1116 ) -> CSSM_RETURN;
1117}
1118
1119extern "C-unwind" {
1120 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
1125 #[deprecated]
1126 pub fn CSSM_CSP_ObtainPrivateKeyFromPublicKey(
1127 csp_handle: CSSM_CSP_HANDLE,
1128 public_key: *const CSSM_KEY,
1129 private_key: CSSM_KEY_PTR,
1130 ) -> CSSM_RETURN;
1131}
1132
1133extern "C-unwind" {
1134 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
1141 #[deprecated]
1142 pub fn CSSM_WrapKey(
1143 cc_handle: CSSM_CC_HANDLE,
1144 access_cred: *const CSSM_ACCESS_CREDENTIALS,
1145 key: *const CSSM_KEY,
1146 descriptive_data: *const SecAsn1Item,
1147 wrapped_key: CSSM_WRAP_KEY_PTR,
1148 ) -> CSSM_RETURN;
1149}
1150
1151extern "C-unwind" {
1152 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
1161 #[deprecated]
1162 pub fn CSSM_UnwrapKey(
1163 cc_handle: CSSM_CC_HANDLE,
1164 public_key: *const CSSM_KEY,
1165 wrapped_key: *const CSSM_WRAP_KEY,
1166 key_usage: uint32,
1167 key_attr: uint32,
1168 key_label: *const SecAsn1Item,
1169 cred_and_acl_entry: *const CSSM_RESOURCE_CONTROL_CONTEXT,
1170 unwrapped_key: CSSM_KEY_PTR,
1171 descriptive_data: CSSM_DATA_PTR,
1172 ) -> CSSM_RETURN;
1173}
1174
1175extern "C-unwind" {
1176 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
1183 #[deprecated]
1184 pub fn CSSM_WrapKeyP(
1185 cc_handle: CSSM_CC_HANDLE,
1186 access_cred: *const CSSM_ACCESS_CREDENTIALS,
1187 key: *const CSSM_KEY,
1188 descriptive_data: *const SecAsn1Item,
1189 wrapped_key: CSSM_WRAP_KEY_PTR,
1190 privilege: CSSM_PRIVILEGE,
1191 ) -> CSSM_RETURN;
1192}
1193
1194extern "C-unwind" {
1195 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
1204 #[deprecated]
1205 pub fn CSSM_UnwrapKeyP(
1206 cc_handle: CSSM_CC_HANDLE,
1207 public_key: *const CSSM_KEY,
1208 wrapped_key: *const CSSM_WRAP_KEY,
1209 key_usage: uint32,
1210 key_attr: uint32,
1211 key_label: *const SecAsn1Item,
1212 cred_and_acl_entry: *const CSSM_RESOURCE_CONTROL_CONTEXT,
1213 unwrapped_key: CSSM_KEY_PTR,
1214 descriptive_data: CSSM_DATA_PTR,
1215 privilege: CSSM_PRIVILEGE,
1216 ) -> CSSM_RETURN;
1217}
1218
1219extern "C-unwind" {
1220 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
1227 #[deprecated]
1228 pub fn CSSM_DeriveKey(
1229 cc_handle: CSSM_CC_HANDLE,
1230 param: CSSM_DATA_PTR,
1231 key_usage: uint32,
1232 key_attr: uint32,
1233 key_label: *const SecAsn1Item,
1234 cred_and_acl_entry: *const CSSM_RESOURCE_CONTROL_CONTEXT,
1235 derived_key: CSSM_KEY_PTR,
1236 ) -> CSSM_RETURN;
1237}
1238
1239extern "C-unwind" {
1240 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
1245 #[deprecated]
1246 pub fn CSSM_FreeKey(
1247 csp_handle: CSSM_CSP_HANDLE,
1248 access_cred: *const CSSM_ACCESS_CREDENTIALS,
1249 key_ptr: CSSM_KEY_PTR,
1250 delete: CSSM_BOOL,
1251 ) -> CSSM_RETURN;
1252}
1253
1254extern "C-unwind" {
1255 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
1259 #[deprecated]
1260 pub fn CSSM_GenerateAlgorithmParams(
1261 cc_handle: CSSM_CC_HANDLE,
1262 param_bits: uint32,
1263 param: CSSM_DATA_PTR,
1264 ) -> CSSM_RETURN;
1265}
1266
1267extern "C-unwind" {
1268 #[cfg(all(feature = "cssmconfig", feature = "cssmtype"))]
1272 #[deprecated]
1273 pub fn CSSM_CSP_GetOperationalStatistics(
1274 csp_handle: CSSM_CSP_HANDLE,
1275 statistics: *mut CSSM_CSP_OPERATIONAL_STATISTICS,
1276 ) -> CSSM_RETURN;
1277}
1278
1279extern "C-unwind" {
1280 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
1284 #[deprecated]
1285 pub fn CSSM_GetTimeValue(
1286 csp_handle: CSSM_CSP_HANDLE,
1287 time_algorithm: CSSM_ALGORITHMS,
1288 time_data: *mut SecAsn1Item,
1289 ) -> CSSM_RETURN;
1290}
1291
1292extern "C-unwind" {
1293 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
1297 #[deprecated]
1298 pub fn CSSM_RetrieveUniqueId(
1299 csp_handle: CSSM_CSP_HANDLE,
1300 unique_id: CSSM_DATA_PTR,
1301 ) -> CSSM_RETURN;
1302}
1303
1304extern "C-unwind" {
1305 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
1309 #[deprecated]
1310 pub fn CSSM_RetrieveCounter(csp_handle: CSSM_CSP_HANDLE, counter: CSSM_DATA_PTR)
1311 -> CSSM_RETURN;
1312}
1313
1314extern "C-unwind" {
1315 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
1319 #[deprecated]
1320 pub fn CSSM_VerifyDevice(
1321 csp_handle: CSSM_CSP_HANDLE,
1322 device_cert: *const SecAsn1Item,
1323 ) -> CSSM_RETURN;
1324}
1325
1326extern "C-unwind" {
1327 #[cfg(all(feature = "cssmconfig", feature = "cssmtype"))]
1332 #[deprecated]
1333 pub fn CSSM_CSP_PassThrough(
1334 cc_handle: CSSM_CC_HANDLE,
1335 pass_through_id: uint32,
1336 in_data: *const c_void,
1337 out_data: *mut *mut c_void,
1338 ) -> CSSM_RETURN;
1339}
1340
1341extern "C-unwind" {
1342 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
1350 #[deprecated]
1351 pub fn CSSM_TP_SubmitCredRequest(
1352 tp_handle: CSSM_TP_HANDLE,
1353 preferred_authority: *const CSSM_TP_AUTHORITY_ID,
1354 request_type: CSSM_TP_AUTHORITY_REQUEST_TYPE,
1355 request_input: *const CSSM_TP_REQUEST_SET,
1356 caller_auth_context: *const CSSM_TP_CALLERAUTH_CONTEXT,
1357 estimated_time: *mut sint32,
1358 reference_identifier: CSSM_DATA_PTR,
1359 ) -> CSSM_RETURN;
1360}
1361
1362extern "C-unwind" {
1363 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
1371 #[deprecated]
1372 pub fn CSSM_TP_RetrieveCredResult(
1373 tp_handle: CSSM_TP_HANDLE,
1374 reference_identifier: *const SecAsn1Item,
1375 caller_auth_credentials: *const CSSM_TP_CALLERAUTH_CONTEXT,
1376 estimated_time: *mut sint32,
1377 confirmation_required: *mut CSSM_BOOL,
1378 retrieve_output: *mut CSSM_TP_RESULT_SET_PTR,
1379 ) -> CSSM_RETURN;
1380}
1381
1382extern "C-unwind" {
1383 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
1390 #[deprecated]
1391 pub fn CSSM_TP_ConfirmCredResult(
1392 tp_handle: CSSM_TP_HANDLE,
1393 reference_identifier: *const SecAsn1Item,
1394 caller_auth_credentials: *const CSSM_TP_CALLERAUTH_CONTEXT,
1395 responses: *const CSSM_TP_CONFIRM_RESPONSE,
1396 preferred_authority: *const CSSM_TP_AUTHORITY_ID,
1397 ) -> CSSM_RETURN;
1398}
1399
1400extern "C-unwind" {
1401 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
1407 #[deprecated]
1408 pub fn CSSM_TP_ReceiveConfirmation(
1409 tp_handle: CSSM_TP_HANDLE,
1410 reference_identifier: *const SecAsn1Item,
1411 responses: *mut CSSM_TP_CONFIRM_RESPONSE_PTR,
1412 elapsed_time: *mut sint32,
1413 ) -> CSSM_RETURN;
1414}
1415
1416extern "C-unwind" {
1417 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
1422 #[deprecated]
1423 pub fn CSSM_TP_CertReclaimKey(
1424 tp_handle: CSSM_TP_HANDLE,
1425 cert_group: *const CSSM_CERTGROUP,
1426 cert_index: uint32,
1427 key_cache_handle: CSSM_LONG_HANDLE,
1428 csp_handle: CSSM_CSP_HANDLE,
1429 cred_and_acl_entry: *const CSSM_RESOURCE_CONTROL_CONTEXT,
1430 ) -> CSSM_RETURN;
1431}
1432
1433extern "C-unwind" {
1434 #[cfg(all(feature = "cssmconfig", feature = "cssmtype"))]
1435 #[deprecated]
1436 pub fn CSSM_TP_CertReclaimAbort(
1437 tp_handle: CSSM_TP_HANDLE,
1438 key_cache_handle: CSSM_LONG_HANDLE,
1439 ) -> CSSM_RETURN;
1440}
1441
1442extern "C-unwind" {
1443 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
1448 #[deprecated]
1449 pub fn CSSM_TP_FormRequest(
1450 tp_handle: CSSM_TP_HANDLE,
1451 preferred_authority: *const CSSM_TP_AUTHORITY_ID,
1452 form_type: CSSM_TP_FORM_TYPE,
1453 blank_form: CSSM_DATA_PTR,
1454 ) -> CSSM_RETURN;
1455}
1456
1457extern "C-unwind" {
1458 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
1465 #[deprecated]
1466 pub fn CSSM_TP_FormSubmit(
1467 tp_handle: CSSM_TP_HANDLE,
1468 form_type: CSSM_TP_FORM_TYPE,
1469 form: *const SecAsn1Item,
1470 clearance_authority: *const CSSM_TP_AUTHORITY_ID,
1471 represented_authority: *const CSSM_TP_AUTHORITY_ID,
1472 credentials: CSSM_ACCESS_CREDENTIALS_PTR,
1473 ) -> CSSM_RETURN;
1474}
1475
1476extern "C-unwind" {
1477 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
1483 #[deprecated]
1484 pub fn CSSM_TP_CertGroupVerify(
1485 tp_handle: CSSM_TP_HANDLE,
1486 cl_handle: CSSM_CL_HANDLE,
1487 csp_handle: CSSM_CSP_HANDLE,
1488 cert_group_to_be_verified: *const CSSM_CERTGROUP,
1489 verify_context: *const CSSM_TP_VERIFY_CONTEXT,
1490 verify_context_result: CSSM_TP_VERIFY_CONTEXT_RESULT_PTR,
1491 ) -> CSSM_RETURN;
1492}
1493
1494extern "C-unwind" {
1495 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
1500 #[deprecated]
1501 pub fn CSSM_TP_CertCreateTemplate(
1502 tp_handle: CSSM_TP_HANDLE,
1503 cl_handle: CSSM_CL_HANDLE,
1504 number_of_fields: uint32,
1505 cert_fields: *const CSSM_FIELD,
1506 cert_template: CSSM_DATA_PTR,
1507 ) -> CSSM_RETURN;
1508}
1509
1510extern "C-unwind" {
1511 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
1517 #[deprecated]
1518 pub fn CSSM_TP_CertGetAllTemplateFields(
1519 tp_handle: CSSM_TP_HANDLE,
1520 cl_handle: CSSM_CL_HANDLE,
1521 cert_template: *const SecAsn1Item,
1522 number_of_fields: *mut uint32,
1523 cert_fields: *mut CSSM_FIELD_PTR,
1524 ) -> CSSM_RETURN;
1525}
1526
1527extern "C-unwind" {
1528 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
1536 #[deprecated]
1537 pub fn CSSM_TP_CertSign(
1538 tp_handle: CSSM_TP_HANDLE,
1539 cl_handle: CSSM_CL_HANDLE,
1540 cc_handle: CSSM_CC_HANDLE,
1541 cert_template_to_be_signed: *const SecAsn1Item,
1542 signer_cert_group: *const CSSM_CERTGROUP,
1543 signer_verify_context: *const CSSM_TP_VERIFY_CONTEXT,
1544 signer_verify_result: CSSM_TP_VERIFY_CONTEXT_RESULT_PTR,
1545 signed_cert: CSSM_DATA_PTR,
1546 ) -> CSSM_RETURN;
1547}
1548
1549extern "C-unwind" {
1550 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
1557 #[deprecated]
1558 pub fn CSSM_TP_CrlVerify(
1559 tp_handle: CSSM_TP_HANDLE,
1560 cl_handle: CSSM_CL_HANDLE,
1561 csp_handle: CSSM_CSP_HANDLE,
1562 crl_to_be_verified: *const CSSM_ENCODED_CRL,
1563 signer_cert_group: *const CSSM_CERTGROUP,
1564 verify_context: *const CSSM_TP_VERIFY_CONTEXT,
1565 revoker_verify_result: CSSM_TP_VERIFY_CONTEXT_RESULT_PTR,
1566 ) -> CSSM_RETURN;
1567}
1568
1569extern "C-unwind" {
1570 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
1575 #[deprecated]
1576 pub fn CSSM_TP_CrlCreateTemplate(
1577 tp_handle: CSSM_TP_HANDLE,
1578 cl_handle: CSSM_CL_HANDLE,
1579 number_of_fields: uint32,
1580 crl_fields: *const CSSM_FIELD,
1581 new_crl_template: CSSM_DATA_PTR,
1582 ) -> CSSM_RETURN;
1583}
1584
1585extern "C-unwind" {
1586 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
1595 #[deprecated]
1596 pub fn CSSM_TP_CertRevoke(
1597 tp_handle: CSSM_TP_HANDLE,
1598 cl_handle: CSSM_CL_HANDLE,
1599 csp_handle: CSSM_CSP_HANDLE,
1600 old_crl_template: *const SecAsn1Item,
1601 cert_group_to_be_revoked: *const CSSM_CERTGROUP,
1602 revoker_cert_group: *const CSSM_CERTGROUP,
1603 revoker_verify_context: *const CSSM_TP_VERIFY_CONTEXT,
1604 revoker_verify_result: CSSM_TP_VERIFY_CONTEXT_RESULT_PTR,
1605 reason: CSSM_TP_CERTCHANGE_REASON,
1606 new_crl_template: CSSM_DATA_PTR,
1607 ) -> CSSM_RETURN;
1608}
1609
1610extern "C-unwind" {
1611 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
1620 #[deprecated]
1621 pub fn CSSM_TP_CertRemoveFromCrlTemplate(
1622 tp_handle: CSSM_TP_HANDLE,
1623 cl_handle: CSSM_CL_HANDLE,
1624 csp_handle: CSSM_CSP_HANDLE,
1625 old_crl_template: *const SecAsn1Item,
1626 cert_group_to_be_removed: *const CSSM_CERTGROUP,
1627 revoker_cert_group: *const CSSM_CERTGROUP,
1628 revoker_verify_context: *const CSSM_TP_VERIFY_CONTEXT,
1629 revoker_verify_result: CSSM_TP_VERIFY_CONTEXT_RESULT_PTR,
1630 new_crl_template: CSSM_DATA_PTR,
1631 ) -> CSSM_RETURN;
1632}
1633
1634extern "C-unwind" {
1635 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
1643 #[deprecated]
1644 pub fn CSSM_TP_CrlSign(
1645 tp_handle: CSSM_TP_HANDLE,
1646 cl_handle: CSSM_CL_HANDLE,
1647 cc_handle: CSSM_CC_HANDLE,
1648 crl_to_be_signed: *const CSSM_ENCODED_CRL,
1649 signer_cert_group: *const CSSM_CERTGROUP,
1650 signer_verify_context: *const CSSM_TP_VERIFY_CONTEXT,
1651 signer_verify_result: CSSM_TP_VERIFY_CONTEXT_RESULT_PTR,
1652 signed_crl: CSSM_DATA_PTR,
1653 ) -> CSSM_RETURN;
1654}
1655
1656extern "C-unwind" {
1657 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
1664 #[deprecated]
1665 pub fn CSSM_TP_ApplyCrlToDb(
1666 tp_handle: CSSM_TP_HANDLE,
1667 cl_handle: CSSM_CL_HANDLE,
1668 csp_handle: CSSM_CSP_HANDLE,
1669 crl_to_be_applied: *const CSSM_ENCODED_CRL,
1670 signer_cert_group: *const CSSM_CERTGROUP,
1671 apply_crl_verify_context: *const CSSM_TP_VERIFY_CONTEXT,
1672 apply_crl_verify_result: CSSM_TP_VERIFY_CONTEXT_RESULT_PTR,
1673 ) -> CSSM_RETURN;
1674}
1675
1676extern "C-unwind" {
1677 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
1684 #[deprecated]
1685 pub fn CSSM_TP_CertGroupConstruct(
1686 tp_handle: CSSM_TP_HANDLE,
1687 cl_handle: CSSM_CL_HANDLE,
1688 csp_handle: CSSM_CSP_HANDLE,
1689 db_list: *const CSSM_DL_DB_LIST,
1690 construct_params: *const c_void,
1691 cert_group_frag: *const CSSM_CERTGROUP,
1692 cert_group: *mut CSSM_CERTGROUP_PTR,
1693 ) -> CSSM_RETURN;
1694}
1695
1696extern "C-unwind" {
1697 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
1703 #[deprecated]
1704 pub fn CSSM_TP_CertGroupPrune(
1705 tp_handle: CSSM_TP_HANDLE,
1706 cl_handle: CSSM_CL_HANDLE,
1707 db_list: *const CSSM_DL_DB_LIST,
1708 ordered_cert_group: *const CSSM_CERTGROUP,
1709 pruned_cert_group: *mut CSSM_CERTGROUP_PTR,
1710 ) -> CSSM_RETURN;
1711}
1712
1713extern "C-unwind" {
1714 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
1719 #[deprecated]
1720 pub fn CSSM_TP_CertGroupToTupleGroup(
1721 tp_handle: CSSM_TP_HANDLE,
1722 cl_handle: CSSM_CL_HANDLE,
1723 cert_group: *const CSSM_CERTGROUP,
1724 tuple_group: *mut CSSM_TUPLEGROUP_PTR,
1725 ) -> CSSM_RETURN;
1726}
1727
1728extern "C-unwind" {
1729 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
1734 #[deprecated]
1735 pub fn CSSM_TP_TupleGroupToCertGroup(
1736 tp_handle: CSSM_TP_HANDLE,
1737 cl_handle: CSSM_CL_HANDLE,
1738 tuple_group: *const CSSM_TUPLEGROUP,
1739 cert_templates: *mut CSSM_CERTGROUP_PTR,
1740 ) -> CSSM_RETURN;
1741}
1742
1743extern "C-unwind" {
1744 #[cfg(all(feature = "cssmconfig", feature = "cssmtype"))]
1750 #[deprecated]
1751 pub fn CSSM_TP_PassThrough(
1752 tp_handle: CSSM_TP_HANDLE,
1753 cl_handle: CSSM_CL_HANDLE,
1754 cc_handle: CSSM_CC_HANDLE,
1755 db_list: *const CSSM_DL_DB_LIST,
1756 pass_through_id: uint32,
1757 input_params: *const c_void,
1758 output_params: *mut *mut c_void,
1759 ) -> CSSM_RETURN;
1760}
1761
1762extern "C-unwind" {
1763 #[cfg(all(feature = "cssmconfig", feature = "cssmtype"))]
1772 #[deprecated]
1773 pub fn CSSM_AC_AuthCompute(
1774 ac_handle: CSSM_AC_HANDLE,
1775 base_authorizations: *const CSSM_TUPLEGROUP,
1776 credentials: *const CSSM_TUPLEGROUP,
1777 number_of_requestors: uint32,
1778 requestors: *const CSSM_LIST,
1779 requested_authorization_period: *const CSSM_LIST,
1780 requested_authorization: *const CSSM_LIST,
1781 authorization_result: CSSM_TUPLEGROUP_PTR,
1782 ) -> CSSM_RETURN;
1783}
1784
1785extern "C-unwind" {
1786 #[cfg(all(feature = "cssmconfig", feature = "cssmtype"))]
1792 #[deprecated]
1793 pub fn CSSM_AC_PassThrough(
1794 ac_handle: CSSM_AC_HANDLE,
1795 tp_handle: CSSM_TP_HANDLE,
1796 cl_handle: CSSM_CL_HANDLE,
1797 cc_handle: CSSM_CC_HANDLE,
1798 db_list: *const CSSM_DL_DB_LIST,
1799 pass_through_id: uint32,
1800 input_params: *const c_void,
1801 output_params: *mut *mut c_void,
1802 ) -> CSSM_RETURN;
1803}
1804
1805extern "C-unwind" {
1806 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
1811 #[deprecated]
1812 pub fn CSSM_CL_CertCreateTemplate(
1813 cl_handle: CSSM_CL_HANDLE,
1814 number_of_fields: uint32,
1815 cert_fields: *const CSSM_FIELD,
1816 cert_template: CSSM_DATA_PTR,
1817 ) -> CSSM_RETURN;
1818}
1819
1820extern "C-unwind" {
1821 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
1827 #[deprecated]
1828 pub fn CSSM_CL_CertGetAllTemplateFields(
1829 cl_handle: CSSM_CL_HANDLE,
1830 cert_template: *const SecAsn1Item,
1831 number_of_fields: *mut uint32,
1832 cert_fields: *mut CSSM_FIELD_PTR,
1833 ) -> CSSM_RETURN;
1834}
1835
1836extern "C-unwind" {
1837 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
1843 #[deprecated]
1844 pub fn CSSM_CL_CertSign(
1845 cl_handle: CSSM_CL_HANDLE,
1846 cc_handle: CSSM_CC_HANDLE,
1847 cert_template: *const SecAsn1Item,
1848 sign_scope: *const CSSM_FIELD,
1849 scope_size: uint32,
1850 signed_cert: CSSM_DATA_PTR,
1851 ) -> CSSM_RETURN;
1852}
1853
1854extern "C-unwind" {
1855 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
1861 #[deprecated]
1862 pub fn CSSM_CL_CertVerify(
1863 cl_handle: CSSM_CL_HANDLE,
1864 cc_handle: CSSM_CC_HANDLE,
1865 cert_to_be_verified: *const SecAsn1Item,
1866 signer_cert: *const SecAsn1Item,
1867 verify_scope: *const CSSM_FIELD,
1868 scope_size: uint32,
1869 ) -> CSSM_RETURN;
1870}
1871
1872extern "C-unwind" {
1873 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
1877 #[deprecated]
1878 pub fn CSSM_CL_CertVerifyWithKey(
1879 cl_handle: CSSM_CL_HANDLE,
1880 cc_handle: CSSM_CC_HANDLE,
1881 cert_to_be_verified: *const SecAsn1Item,
1882 ) -> CSSM_RETURN;
1883}
1884
1885extern "C-unwind" {
1886 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
1894 #[deprecated]
1895 pub fn CSSM_CL_CertGetFirstFieldValue(
1896 cl_handle: CSSM_CL_HANDLE,
1897 cert: *const SecAsn1Item,
1898 cert_field: *const SecAsn1Oid,
1899 results_handle: CSSM_HANDLE_PTR,
1900 number_of_matched_fields: *mut uint32,
1901 value: *mut CSSM_DATA_PTR,
1902 ) -> CSSM_RETURN;
1903}
1904
1905extern "C-unwind" {
1906 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
1910 #[deprecated]
1911 pub fn CSSM_CL_CertGetNextFieldValue(
1912 cl_handle: CSSM_CL_HANDLE,
1913 results_handle: CSSM_HANDLE,
1914 value: *mut CSSM_DATA_PTR,
1915 ) -> CSSM_RETURN;
1916}
1917
1918extern "C-unwind" {
1919 #[cfg(all(feature = "cssmconfig", feature = "cssmtype"))]
1920 #[deprecated]
1921 pub fn CSSM_CL_CertAbortQuery(
1922 cl_handle: CSSM_CL_HANDLE,
1923 results_handle: CSSM_HANDLE,
1924 ) -> CSSM_RETURN;
1925}
1926
1927extern "C-unwind" {
1928 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
1933 #[deprecated]
1934 pub fn CSSM_CL_CertGetKeyInfo(
1935 cl_handle: CSSM_CL_HANDLE,
1936 cert: *const SecAsn1Item,
1937 key: *mut CSSM_KEY_PTR,
1938 ) -> CSSM_RETURN;
1939}
1940
1941extern "C-unwind" {
1942 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
1948 #[deprecated]
1949 pub fn CSSM_CL_CertGetAllFields(
1950 cl_handle: CSSM_CL_HANDLE,
1951 cert: *const SecAsn1Item,
1952 number_of_fields: *mut uint32,
1953 cert_fields: *mut CSSM_FIELD_PTR,
1954 ) -> CSSM_RETURN;
1955}
1956
1957extern "C-unwind" {
1958 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
1962 #[deprecated]
1963 pub fn CSSM_CL_FreeFields(
1964 cl_handle: CSSM_CL_HANDLE,
1965 number_of_fields: uint32,
1966 fields: *mut CSSM_FIELD_PTR,
1967 ) -> CSSM_RETURN;
1968}
1969
1970extern "C-unwind" {
1971 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
1976 #[deprecated]
1977 pub fn CSSM_CL_FreeFieldValue(
1978 cl_handle: CSSM_CL_HANDLE,
1979 cert_or_crl_oid: *const SecAsn1Oid,
1980 value: CSSM_DATA_PTR,
1981 ) -> CSSM_RETURN;
1982}
1983
1984extern "C-unwind" {
1985 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
1990 #[deprecated]
1991 pub fn CSSM_CL_CertCache(
1992 cl_handle: CSSM_CL_HANDLE,
1993 cert: *const SecAsn1Item,
1994 cert_handle: CSSM_HANDLE_PTR,
1995 ) -> CSSM_RETURN;
1996}
1997
1998extern "C-unwind" {
1999 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
2006 #[deprecated]
2007 pub fn CSSM_CL_CertGetFirstCachedFieldValue(
2008 cl_handle: CSSM_CL_HANDLE,
2009 cert_handle: CSSM_HANDLE,
2010 cert_field: *const SecAsn1Oid,
2011 results_handle: CSSM_HANDLE_PTR,
2012 number_of_matched_fields: *mut uint32,
2013 value: *mut CSSM_DATA_PTR,
2014 ) -> CSSM_RETURN;
2015}
2016
2017extern "C-unwind" {
2018 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
2022 #[deprecated]
2023 pub fn CSSM_CL_CertGetNextCachedFieldValue(
2024 cl_handle: CSSM_CL_HANDLE,
2025 results_handle: CSSM_HANDLE,
2026 value: *mut CSSM_DATA_PTR,
2027 ) -> CSSM_RETURN;
2028}
2029
2030extern "C-unwind" {
2031 #[cfg(all(feature = "cssmconfig", feature = "cssmtype"))]
2032 #[deprecated]
2033 pub fn CSSM_CL_CertAbortCache(
2034 cl_handle: CSSM_CL_HANDLE,
2035 cert_handle: CSSM_HANDLE,
2036 ) -> CSSM_RETURN;
2037}
2038
2039extern "C-unwind" {
2040 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
2046 #[deprecated]
2047 pub fn CSSM_CL_CertGroupToSignedBundle(
2048 cl_handle: CSSM_CL_HANDLE,
2049 cc_handle: CSSM_CC_HANDLE,
2050 cert_group_to_bundle: *const CSSM_CERTGROUP,
2051 bundle_info: *const CSSM_CERT_BUNDLE_HEADER,
2052 signed_bundle: CSSM_DATA_PTR,
2053 ) -> CSSM_RETURN;
2054}
2055
2056extern "C-unwind" {
2057 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
2063 #[deprecated]
2064 pub fn CSSM_CL_CertGroupFromVerifiedBundle(
2065 cl_handle: CSSM_CL_HANDLE,
2066 cc_handle: CSSM_CC_HANDLE,
2067 cert_bundle: *const CSSM_CERT_BUNDLE,
2068 signer_cert: *const SecAsn1Item,
2069 cert_group: *mut CSSM_CERTGROUP_PTR,
2070 ) -> CSSM_RETURN;
2071}
2072
2073extern "C-unwind" {
2074 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
2079 #[deprecated]
2080 pub fn CSSM_CL_CertDescribeFormat(
2081 cl_handle: CSSM_CL_HANDLE,
2082 number_of_fields: *mut uint32,
2083 oid_list: *mut CSSM_OID_PTR,
2084 ) -> CSSM_RETURN;
2085}
2086
2087extern "C-unwind" {
2088 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
2093 #[deprecated]
2094 pub fn CSSM_CL_CrlCreateTemplate(
2095 cl_handle: CSSM_CL_HANDLE,
2096 number_of_fields: uint32,
2097 crl_template: *const CSSM_FIELD,
2098 new_crl: CSSM_DATA_PTR,
2099 ) -> CSSM_RETURN;
2100}
2101
2102extern "C-unwind" {
2103 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
2109 #[deprecated]
2110 pub fn CSSM_CL_CrlSetFields(
2111 cl_handle: CSSM_CL_HANDLE,
2112 number_of_fields: uint32,
2113 crl_template: *const CSSM_FIELD,
2114 old_crl: *const SecAsn1Item,
2115 modified_crl: CSSM_DATA_PTR,
2116 ) -> CSSM_RETURN;
2117}
2118
2119extern "C-unwind" {
2120 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
2127 #[deprecated]
2128 pub fn CSSM_CL_CrlAddCert(
2129 cl_handle: CSSM_CL_HANDLE,
2130 cc_handle: CSSM_CC_HANDLE,
2131 cert: *const SecAsn1Item,
2132 number_of_fields: uint32,
2133 crl_entry_fields: *const CSSM_FIELD,
2134 old_crl: *const SecAsn1Item,
2135 new_crl: CSSM_DATA_PTR,
2136 ) -> CSSM_RETURN;
2137}
2138
2139extern "C-unwind" {
2140 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
2146 #[deprecated]
2147 pub fn CSSM_CL_CrlRemoveCert(
2148 cl_handle: CSSM_CL_HANDLE,
2149 cert: *const SecAsn1Item,
2150 old_crl: *const SecAsn1Item,
2151 new_crl: CSSM_DATA_PTR,
2152 ) -> CSSM_RETURN;
2153}
2154
2155extern "C-unwind" {
2156 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
2162 #[deprecated]
2163 pub fn CSSM_CL_CrlSign(
2164 cl_handle: CSSM_CL_HANDLE,
2165 cc_handle: CSSM_CC_HANDLE,
2166 unsigned_crl: *const SecAsn1Item,
2167 sign_scope: *const CSSM_FIELD,
2168 scope_size: uint32,
2169 signed_crl: CSSM_DATA_PTR,
2170 ) -> CSSM_RETURN;
2171}
2172
2173extern "C-unwind" {
2174 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
2180 #[deprecated]
2181 pub fn CSSM_CL_CrlVerify(
2182 cl_handle: CSSM_CL_HANDLE,
2183 cc_handle: CSSM_CC_HANDLE,
2184 crl_to_be_verified: *const SecAsn1Item,
2185 signer_cert: *const SecAsn1Item,
2186 verify_scope: *const CSSM_FIELD,
2187 scope_size: uint32,
2188 ) -> CSSM_RETURN;
2189}
2190
2191extern "C-unwind" {
2192 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
2196 #[deprecated]
2197 pub fn CSSM_CL_CrlVerifyWithKey(
2198 cl_handle: CSSM_CL_HANDLE,
2199 cc_handle: CSSM_CC_HANDLE,
2200 crl_to_be_verified: *const SecAsn1Item,
2201 ) -> CSSM_RETURN;
2202}
2203
2204extern "C-unwind" {
2205 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
2211 #[deprecated]
2212 pub fn CSSM_CL_IsCertInCrl(
2213 cl_handle: CSSM_CL_HANDLE,
2214 cert: *const SecAsn1Item,
2215 crl: *const SecAsn1Item,
2216 cert_found: *mut CSSM_BOOL,
2217 ) -> CSSM_RETURN;
2218}
2219
2220extern "C-unwind" {
2221 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
2229 #[deprecated]
2230 pub fn CSSM_CL_CrlGetFirstFieldValue(
2231 cl_handle: CSSM_CL_HANDLE,
2232 crl: *const SecAsn1Item,
2233 crl_field: *const SecAsn1Oid,
2234 results_handle: CSSM_HANDLE_PTR,
2235 number_of_matched_fields: *mut uint32,
2236 value: *mut CSSM_DATA_PTR,
2237 ) -> CSSM_RETURN;
2238}
2239
2240extern "C-unwind" {
2241 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
2245 #[deprecated]
2246 pub fn CSSM_CL_CrlGetNextFieldValue(
2247 cl_handle: CSSM_CL_HANDLE,
2248 results_handle: CSSM_HANDLE,
2249 value: *mut CSSM_DATA_PTR,
2250 ) -> CSSM_RETURN;
2251}
2252
2253extern "C-unwind" {
2254 #[cfg(all(feature = "cssmconfig", feature = "cssmtype"))]
2255 #[deprecated]
2256 pub fn CSSM_CL_CrlAbortQuery(
2257 cl_handle: CSSM_CL_HANDLE,
2258 results_handle: CSSM_HANDLE,
2259 ) -> CSSM_RETURN;
2260}
2261
2262extern "C-unwind" {
2263 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
2269 #[deprecated]
2270 pub fn CSSM_CL_CrlGetAllFields(
2271 cl_handle: CSSM_CL_HANDLE,
2272 crl: *const SecAsn1Item,
2273 number_of_crl_fields: *mut uint32,
2274 crl_fields: *mut CSSM_FIELD_PTR,
2275 ) -> CSSM_RETURN;
2276}
2277
2278extern "C-unwind" {
2279 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
2284 #[deprecated]
2285 pub fn CSSM_CL_CrlCache(
2286 cl_handle: CSSM_CL_HANDLE,
2287 crl: *const SecAsn1Item,
2288 crl_handle: CSSM_HANDLE_PTR,
2289 ) -> CSSM_RETURN;
2290}
2291
2292extern "C-unwind" {
2293 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
2299 #[deprecated]
2300 pub fn CSSM_CL_IsCertInCachedCrl(
2301 cl_handle: CSSM_CL_HANDLE,
2302 cert: *const SecAsn1Item,
2303 crl_handle: CSSM_HANDLE,
2304 cert_found: *mut CSSM_BOOL,
2305 crl_record_index: CSSM_DATA_PTR,
2306 ) -> CSSM_RETURN;
2307}
2308
2309extern "C-unwind" {
2310 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
2318 #[deprecated]
2319 pub fn CSSM_CL_CrlGetFirstCachedFieldValue(
2320 cl_handle: CSSM_CL_HANDLE,
2321 crl_handle: CSSM_HANDLE,
2322 crl_record_index: *const SecAsn1Item,
2323 crl_field: *const SecAsn1Oid,
2324 results_handle: CSSM_HANDLE_PTR,
2325 number_of_matched_fields: *mut uint32,
2326 value: *mut CSSM_DATA_PTR,
2327 ) -> CSSM_RETURN;
2328}
2329
2330extern "C-unwind" {
2331 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
2335 #[deprecated]
2336 pub fn CSSM_CL_CrlGetNextCachedFieldValue(
2337 cl_handle: CSSM_CL_HANDLE,
2338 results_handle: CSSM_HANDLE,
2339 value: *mut CSSM_DATA_PTR,
2340 ) -> CSSM_RETURN;
2341}
2342
2343extern "C-unwind" {
2344 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
2350 #[deprecated]
2351 pub fn CSSM_CL_CrlGetAllCachedRecordFields(
2352 cl_handle: CSSM_CL_HANDLE,
2353 crl_handle: CSSM_HANDLE,
2354 crl_record_index: *const SecAsn1Item,
2355 number_of_fields: *mut uint32,
2356 crl_fields: *mut CSSM_FIELD_PTR,
2357 ) -> CSSM_RETURN;
2358}
2359
2360extern "C-unwind" {
2361 #[cfg(all(feature = "cssmconfig", feature = "cssmtype"))]
2362 #[deprecated]
2363 pub fn CSSM_CL_CrlAbortCache(cl_handle: CSSM_CL_HANDLE, crl_handle: CSSM_HANDLE)
2364 -> CSSM_RETURN;
2365}
2366
2367extern "C-unwind" {
2368 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
2373 #[deprecated]
2374 pub fn CSSM_CL_CrlDescribeFormat(
2375 cl_handle: CSSM_CL_HANDLE,
2376 number_of_fields: *mut uint32,
2377 oid_list: *mut CSSM_OID_PTR,
2378 ) -> CSSM_RETURN;
2379}
2380
2381extern "C-unwind" {
2382 #[cfg(all(feature = "cssmconfig", feature = "cssmtype"))]
2387 #[deprecated]
2388 pub fn CSSM_CL_PassThrough(
2389 cl_handle: CSSM_CL_HANDLE,
2390 cc_handle: CSSM_CC_HANDLE,
2391 pass_through_id: uint32,
2392 input_params: *const c_void,
2393 output_params: *mut *mut c_void,
2394 ) -> CSSM_RETURN;
2395}
2396
2397extern "C-unwind" {
2398 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
2406 #[deprecated]
2407 pub fn CSSM_DL_DbOpen(
2408 dl_handle: CSSM_DL_HANDLE,
2409 db_name: *const c_char,
2410 db_location: *const CSSM_NET_ADDRESS,
2411 access_request: CSSM_DB_ACCESS_TYPE,
2412 access_cred: *const CSSM_ACCESS_CREDENTIALS,
2413 open_parameters: *const c_void,
2414 db_handle: *mut CSSM_DB_HANDLE,
2415 ) -> CSSM_RETURN;
2416}
2417
2418extern "C-unwind" {
2419 #[cfg(all(feature = "cssmconfig", feature = "cssmtype"))]
2420 #[deprecated]
2421 pub fn CSSM_DL_DbClose(dldb_handle: CSSM_DL_DB_HANDLE) -> CSSM_RETURN;
2422}
2423
2424extern "C-unwind" {
2425 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
2434 #[deprecated]
2435 pub fn CSSM_DL_DbCreate(
2436 dl_handle: CSSM_DL_HANDLE,
2437 db_name: *const c_char,
2438 db_location: *const CSSM_NET_ADDRESS,
2439 db_info: *const CSSM_DBINFO,
2440 access_request: CSSM_DB_ACCESS_TYPE,
2441 cred_and_acl_entry: *const CSSM_RESOURCE_CONTROL_CONTEXT,
2442 open_parameters: *const c_void,
2443 db_handle: *mut CSSM_DB_HANDLE,
2444 ) -> CSSM_RETURN;
2445}
2446
2447extern "C-unwind" {
2448 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
2454 #[deprecated]
2455 pub fn CSSM_DL_DbDelete(
2456 dl_handle: CSSM_DL_HANDLE,
2457 db_name: *const c_char,
2458 db_location: *const CSSM_NET_ADDRESS,
2459 access_cred: *const CSSM_ACCESS_CREDENTIALS,
2460 ) -> CSSM_RETURN;
2461}
2462
2463extern "C-unwind" {
2464 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
2470 #[deprecated]
2471 pub fn CSSM_DL_CreateRelation(
2472 dldb_handle: CSSM_DL_DB_HANDLE,
2473 relation_id: CSSM_DB_RECORDTYPE,
2474 relation_name: *const c_char,
2475 number_of_attributes: uint32,
2476 p_attribute_info: *const CSSM_DB_SCHEMA_ATTRIBUTE_INFO,
2477 number_of_indexes: uint32,
2478 p_index_info: *const CSSM_DB_SCHEMA_INDEX_INFO,
2479 ) -> CSSM_RETURN;
2480}
2481
2482extern "C-unwind" {
2483 #[cfg(all(feature = "cssmconfig", feature = "cssmtype"))]
2484 #[deprecated]
2485 pub fn CSSM_DL_DestroyRelation(
2486 dldb_handle: CSSM_DL_DB_HANDLE,
2487 relation_id: CSSM_DB_RECORDTYPE,
2488 ) -> CSSM_RETURN;
2489}
2490
2491extern "C-unwind" {
2492 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
2496 #[deprecated]
2497 pub fn CSSM_DL_Authenticate(
2498 dldb_handle: CSSM_DL_DB_HANDLE,
2499 access_request: CSSM_DB_ACCESS_TYPE,
2500 access_cred: *const CSSM_ACCESS_CREDENTIALS,
2501 ) -> CSSM_RETURN;
2502}
2503
2504extern "C-unwind" {
2505 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
2511 #[deprecated]
2512 pub fn CSSM_DL_GetDbAcl(
2513 dldb_handle: CSSM_DL_DB_HANDLE,
2514 selection_tag: *const CSSM_STRING,
2515 number_of_acl_infos: *mut uint32,
2516 acl_infos: *mut CSSM_ACL_ENTRY_INFO_PTR,
2517 ) -> CSSM_RETURN;
2518}
2519
2520extern "C-unwind" {
2521 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
2526 #[deprecated]
2527 pub fn CSSM_DL_ChangeDbAcl(
2528 dldb_handle: CSSM_DL_DB_HANDLE,
2529 access_cred: *const CSSM_ACCESS_CREDENTIALS,
2530 acl_edit: *const CSSM_ACL_EDIT,
2531 ) -> CSSM_RETURN;
2532}
2533
2534extern "C-unwind" {
2535 #[cfg(all(feature = "cssmconfig", feature = "cssmtype"))]
2539 #[deprecated]
2540 pub fn CSSM_DL_GetDbOwner(
2541 dldb_handle: CSSM_DL_DB_HANDLE,
2542 owner: CSSM_ACL_OWNER_PROTOTYPE_PTR,
2543 ) -> CSSM_RETURN;
2544}
2545
2546extern "C-unwind" {
2547 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
2552 #[deprecated]
2553 pub fn CSSM_DL_ChangeDbOwner(
2554 dldb_handle: CSSM_DL_DB_HANDLE,
2555 access_cred: *const CSSM_ACCESS_CREDENTIALS,
2556 new_owner: *const CSSM_ACL_OWNER_PROTOTYPE,
2557 ) -> CSSM_RETURN;
2558}
2559
2560extern "C-unwind" {
2561 #[cfg(all(feature = "cssmconfig", feature = "cssmtype"))]
2565 #[deprecated]
2566 pub fn CSSM_DL_GetDbNames(
2567 dl_handle: CSSM_DL_HANDLE,
2568 name_list: *mut CSSM_NAME_LIST_PTR,
2569 ) -> CSSM_RETURN;
2570}
2571
2572extern "C-unwind" {
2573 #[cfg(all(feature = "cssmconfig", feature = "cssmtype"))]
2577 #[deprecated]
2578 pub fn CSSM_DL_GetDbNameFromHandle(
2579 dldb_handle: CSSM_DL_DB_HANDLE,
2580 db_name: *mut *mut c_char,
2581 ) -> CSSM_RETURN;
2582}
2583
2584extern "C-unwind" {
2585 #[cfg(all(feature = "cssmconfig", feature = "cssmtype"))]
2589 #[deprecated]
2590 pub fn CSSM_DL_FreeNameList(
2591 dl_handle: CSSM_DL_HANDLE,
2592 name_list: CSSM_NAME_LIST_PTR,
2593 ) -> CSSM_RETURN;
2594}
2595
2596extern "C-unwind" {
2597 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
2603 #[deprecated]
2604 pub fn CSSM_DL_DataInsert(
2605 dldb_handle: CSSM_DL_DB_HANDLE,
2606 record_type: CSSM_DB_RECORDTYPE,
2607 attributes: *const CSSM_DB_RECORD_ATTRIBUTE_DATA,
2608 data: *const SecAsn1Item,
2609 unique_id: *mut CSSM_DB_UNIQUE_RECORD_PTR,
2610 ) -> CSSM_RETURN;
2611}
2612
2613extern "C-unwind" {
2614 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
2618 #[deprecated]
2619 pub fn CSSM_DL_DataDelete(
2620 dldb_handle: CSSM_DL_DB_HANDLE,
2621 unique_record_identifier: *const CSSM_DB_UNIQUE_RECORD,
2622 ) -> CSSM_RETURN;
2623}
2624
2625extern "C-unwind" {
2626 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
2632 #[deprecated]
2633 pub fn CSSM_DL_DataModify(
2634 dldb_handle: CSSM_DL_DB_HANDLE,
2635 record_type: CSSM_DB_RECORDTYPE,
2636 unique_record_identifier: CSSM_DB_UNIQUE_RECORD_PTR,
2637 attributes_to_be_modified: *const CSSM_DB_RECORD_ATTRIBUTE_DATA,
2638 data_to_be_modified: *const SecAsn1Item,
2639 modify_mode: CSSM_DB_MODIFY_MODE,
2640 ) -> CSSM_RETURN;
2641}
2642
2643extern "C-unwind" {
2644 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
2652 #[deprecated]
2653 pub fn CSSM_DL_DataGetFirst(
2654 dldb_handle: CSSM_DL_DB_HANDLE,
2655 query: *const CSSM_QUERY,
2656 results_handle: CSSM_HANDLE_PTR,
2657 attributes: CSSM_DB_RECORD_ATTRIBUTE_DATA_PTR,
2658 data: CSSM_DATA_PTR,
2659 unique_id: *mut CSSM_DB_UNIQUE_RECORD_PTR,
2660 ) -> CSSM_RETURN;
2661}
2662
2663extern "C-unwind" {
2664 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
2670 #[deprecated]
2671 pub fn CSSM_DL_DataGetNext(
2672 dldb_handle: CSSM_DL_DB_HANDLE,
2673 results_handle: CSSM_HANDLE,
2674 attributes: CSSM_DB_RECORD_ATTRIBUTE_DATA_PTR,
2675 data: CSSM_DATA_PTR,
2676 unique_id: *mut CSSM_DB_UNIQUE_RECORD_PTR,
2677 ) -> CSSM_RETURN;
2678}
2679
2680extern "C-unwind" {
2681 #[cfg(all(feature = "cssmconfig", feature = "cssmtype"))]
2682 #[deprecated]
2683 pub fn CSSM_DL_DataAbortQuery(
2684 dldb_handle: CSSM_DL_DB_HANDLE,
2685 results_handle: CSSM_HANDLE,
2686 ) -> CSSM_RETURN;
2687}
2688
2689extern "C-unwind" {
2690 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
2696 #[deprecated]
2697 pub fn CSSM_DL_DataGetFromUniqueRecordId(
2698 dldb_handle: CSSM_DL_DB_HANDLE,
2699 unique_record: *const CSSM_DB_UNIQUE_RECORD,
2700 attributes: CSSM_DB_RECORD_ATTRIBUTE_DATA_PTR,
2701 data: CSSM_DATA_PTR,
2702 ) -> CSSM_RETURN;
2703}
2704
2705extern "C-unwind" {
2706 #[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
2710 #[deprecated]
2711 pub fn CSSM_DL_FreeUniqueRecord(
2712 dldb_handle: CSSM_DL_DB_HANDLE,
2713 unique_record: CSSM_DB_UNIQUE_RECORD_PTR,
2714 ) -> CSSM_RETURN;
2715}
2716
2717extern "C-unwind" {
2718 #[cfg(all(feature = "cssmconfig", feature = "cssmtype"))]
2723 #[deprecated]
2724 pub fn CSSM_DL_PassThrough(
2725 dldb_handle: CSSM_DL_DB_HANDLE,
2726 pass_through_id: uint32,
2727 input_params: *const c_void,
2728 output_params: *mut *mut c_void,
2729 ) -> CSSM_RETURN;
2730}