objc2_security/generated/
cssmapi.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ffi::*;
4
5use crate::*;
6
7extern "C-unwind" {
8    /// # Safety
9    ///
10    /// - `version` must be a valid pointer.
11    /// - `caller_guid` must be a valid pointer.
12    /// - `pvc_policy` must be a valid pointer.
13    /// - `reserved` must be a valid pointer.
14    #[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    /// # Safety
34    ///
35    /// - `module_guid` must be a valid pointer.
36    /// - `app_notify_callback` must be implemented correctly.
37    /// - `app_notify_callback_ctx` must be a valid pointer.
38    #[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    /// # Safety
50    ///
51    /// - `module_guid` must be a valid pointer.
52    /// - `app_notify_callback` must be implemented correctly.
53    /// - `app_notify_callback_ctx` must be a valid pointer.
54    #[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    /// # Safety
65    ///
66    /// `module_id` must be a valid pointer.
67    #[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    /// # Safety
77    ///
78    /// `module_id` must be a valid pointer.
79    #[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    /// # Safety
86    ///
87    /// - `module_guid` must be a valid pointer.
88    /// - `version` must be a valid pointer.
89    /// - `memory_funcs` must be a valid pointer.
90    /// - `function_table` must be a valid pointer.
91    /// - `reserved` must be a valid pointer.
92    /// - `new_module_handle` must be a valid pointer.
93    #[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    /// # Safety
124    ///
125    /// `privilege` must be a valid pointer.
126    #[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    /// # Safety
133    ///
134    /// `module_guid` must be a valid pointer.
135    #[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    /// # Safety
145    ///
146    /// `subservice_uid` must be a valid pointer.
147    #[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    /// # Safety
157    ///
158    /// - `number_of_module_managers` must be a valid pointer.
159    /// - `module_manager_guids` must be a valid pointer.
160    #[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    /// # Safety
170    ///
171    /// `app_memory_funcs` must be a valid pointer.
172    #[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    /// # Safety
182    ///
183    /// - `access_cred` must be a valid pointer.
184    /// - `key` must be a valid pointer.
185    /// - `new_context_handle` must be a valid pointer.
186    #[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    /// # Safety
199    ///
200    /// - `access_cred` must be a valid pointer.
201    /// - `key` must be a valid pointer.
202    /// - `init_vector` must be a valid pointer.
203    /// - `reserved` must be a valid pointer.
204    /// - `new_context_handle` must be a valid pointer.
205    #[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    /// # Safety
222    ///
223    /// `new_context_handle` must be a valid pointer.
224    #[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    /// # Safety
235    ///
236    /// - `key` must be a valid pointer.
237    /// - `new_context_handle` must be a valid pointer.
238    #[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    /// # Safety
250    ///
251    /// - `seed` must be a valid pointer.
252    /// - `new_context_handle` must be a valid pointer.
253    #[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    /// # Safety
266    ///
267    /// - `access_cred` must be a valid pointer.
268    /// - `key` must be a valid pointer.
269    /// - `new_context_handle` must be a valid pointer.
270    #[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    /// # Safety
284    ///
285    /// - `access_cred` must be a valid pointer.
286    /// - `base_key` must be a valid pointer.
287    /// - `salt` must be a valid pointer.
288    /// - `seed` must be a valid pointer.
289    /// - `new_context_handle` must be a valid pointer.
290    #[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    /// # Safety
308    ///
309    /// - `seed` must be a valid pointer.
310    /// - `salt` must be a valid pointer.
311    /// - `start_date` must be a valid pointer.
312    /// - `end_date` must be a valid pointer.
313    /// - `params` must be a valid pointer.
314    /// - `new_context_handle` must be a valid pointer.
315    #[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    /// # Safety
332    ///
333    /// - `key` must be a valid pointer.
334    /// - `new_context_handle` must be a valid pointer.
335    #[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    /// # Safety
346    ///
347    /// `context` must be a valid pointer.
348    #[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    /// # Safety
363    ///
364    /// `context` must be a valid pointer.
365    #[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    /// # Safety
377    ///
378    /// `context` must be a valid pointer.
379    #[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    /// # Safety
397    ///
398    /// - `context` must be a valid pointer.
399    /// - `context_attribute` must be a valid pointer.
400    #[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    /// # Safety
416    ///
417    /// `context_attributes` must be a valid pointer.
418    #[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    /// # Safety
434    ///
435    /// `context_attributes` must be a valid pointer.
436    #[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    /// # Safety
452    ///
453    /// - `access_cred` must be a valid pointer.
454    /// - `login_name` must be a valid pointer.
455    /// - `reserved` must be a valid pointer.
456    #[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    /// # Safety
474    ///
475    /// - `selection_tag` must be a valid pointer.
476    /// - `number_of_acl_infos` must be a valid pointer.
477    /// - `acl_infos` must be a valid pointer.
478    #[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    /// # Safety
490    ///
491    /// - `access_cred` must be a valid pointer.
492    /// - `acl_edit` must be a valid pointer.
493    #[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    /// # Safety
504    ///
505    /// - `key` must be a valid pointer.
506    /// - `selection_tag` must be a valid pointer.
507    /// - `number_of_acl_infos` must be a valid pointer.
508    /// - `acl_infos` must be a valid pointer.
509    #[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    /// # Safety
522    ///
523    /// - `access_cred` must be a valid pointer.
524    /// - `acl_edit` must be a valid pointer.
525    /// - `key` must be a valid pointer.
526    #[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    /// # Safety
538    ///
539    /// - `key` must be a valid pointer.
540    /// - `owner` must be a valid pointer.
541    #[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    /// # Safety
552    ///
553    /// - `access_cred` must be a valid pointer.
554    /// - `key` must be a valid pointer.
555    /// - `new_owner` must be a valid pointer.
556    #[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    /// # Safety
568    ///
569    /// `owner` must be a valid pointer.
570    #[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    /// # Safety
580    ///
581    /// - `access_cred` must be a valid pointer.
582    /// - `new_owner` must be a valid pointer.
583    #[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    /// # Safety
594    ///
595    /// - `data_bufs` must be a valid pointer.
596    /// - `signature` must be a valid pointer.
597    #[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    /// # Safety
616    ///
617    /// `data_bufs` must be a valid pointer.
618    #[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    /// # Safety
629    ///
630    /// `signature` must be a valid pointer.
631    #[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    /// # Safety
638    ///
639    /// - `data_bufs` must be a valid pointer.
640    /// - `signature` must be a valid pointer.
641    #[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    /// # Safety
660    ///
661    /// `data_bufs` must be a valid pointer.
662    #[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    /// # Safety
673    ///
674    /// `signature` must be a valid pointer.
675    #[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    /// # Safety
685    ///
686    /// - `data_bufs` must be a valid pointer.
687    /// - `digest` must be a valid pointer.
688    #[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    /// # Safety
706    ///
707    /// `data_bufs` must be a valid pointer.
708    #[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    /// # Safety
719    ///
720    /// `clonednew_cc_handle` must be a valid pointer.
721    #[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    /// # Safety
731    ///
732    /// `digest` must be a valid pointer.
733    #[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    /// # Safety
740    ///
741    /// - `data_bufs` must be a valid pointer.
742    /// - `mac` must be a valid pointer.
743    #[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    /// # Safety
761    ///
762    /// `data_bufs` must be a valid pointer.
763    #[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    /// # Safety
774    ///
775    /// `mac` must be a valid pointer.
776    #[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    /// # Safety
783    ///
784    /// - `data_bufs` must be a valid pointer.
785    /// - `mac` must be a valid pointer.
786    #[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    /// # Safety
804    ///
805    /// `data_bufs` must be a valid pointer.
806    #[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    /// # Safety
817    ///
818    /// `mac` must be a valid pointer.
819    #[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    /// # Safety
826    ///
827    /// `data_block_sizes` must be a valid pointer.
828    #[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    /// # Safety
840    ///
841    /// - `clear_bufs` must be a valid pointer.
842    /// - `cipher_bufs` must be a valid pointer.
843    /// - `bytes_encrypted` must be a valid pointer.
844    /// - `rem_data` must be a valid pointer.
845    #[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    /// # Safety
860    ///
861    /// - `clear_bufs` must be a valid pointer.
862    /// - `cipher_bufs` must be a valid pointer.
863    /// - `bytes_encrypted` must be a valid pointer.
864    /// - `rem_data` must be a valid pointer.
865    #[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    /// # Safety
896    ///
897    /// - `clear_bufs` must be a valid pointer.
898    /// - `cipher_bufs` must be a valid pointer.
899    /// - `bytes_encrypted` must be a valid pointer.
900    #[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    /// # Safety
914    ///
915    /// `rem_data` must be a valid pointer.
916    #[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    /// # Safety
924    ///
925    /// - `cipher_bufs` must be a valid pointer.
926    /// - `clear_bufs` must be a valid pointer.
927    /// - `bytes_decrypted` must be a valid pointer.
928    /// - `rem_data` must be a valid pointer.
929    #[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    /// # Safety
944    ///
945    /// - `cipher_bufs` must be a valid pointer.
946    /// - `clear_bufs` must be a valid pointer.
947    /// - `bytes_decrypted` must be a valid pointer.
948    /// - `rem_data` must be a valid pointer.
949    #[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    /// # Safety
980    ///
981    /// - `cipher_bufs` must be a valid pointer.
982    /// - `clear_bufs` must be a valid pointer.
983    /// - `bytes_decrypted` must be a valid pointer.
984    #[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    /// # Safety
998    ///
999    /// `rem_data` must be a valid pointer.
1000    #[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    /// # Safety
1008    ///
1009    /// - `key` must be a valid pointer.
1010    /// - `key_size` must be a valid pointer.
1011    #[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    /// # Safety
1023    ///
1024    /// - `key_label` must be a valid pointer.
1025    /// - `cred_and_acl_entry` must be a valid pointer.
1026    /// - `key` must be a valid pointer.
1027    #[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    /// # Safety
1041    ///
1042    /// - `key_label` must be a valid pointer.
1043    /// - `cred_and_acl_entry` must be a valid pointer.
1044    /// - `key` must be a valid pointer.
1045    #[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    /// # Safety
1060    ///
1061    /// - `public_key_label` must be a valid pointer.
1062    /// - `public_key` must be a valid pointer.
1063    /// - `private_key_label` must be a valid pointer.
1064    /// - `cred_and_acl_entry` must be a valid pointer.
1065    /// - `private_key` must be a valid pointer.
1066    #[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    /// # Safety
1084    ///
1085    /// - `public_key_label` must be a valid pointer.
1086    /// - `public_key` must be a valid pointer.
1087    /// - `private_key_label` must be a valid pointer.
1088    /// - `cred_and_acl_entry` must be a valid pointer.
1089    /// - `private_key` must be a valid pointer.
1090    #[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    /// # Safety
1109    ///
1110    /// `random_number` must be a valid pointer.
1111    #[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    /// # Safety
1121    ///
1122    /// - `public_key` must be a valid pointer.
1123    /// - `private_key` must be a valid pointer.
1124    #[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    /// # Safety
1135    ///
1136    /// - `access_cred` must be a valid pointer.
1137    /// - `key` must be a valid pointer.
1138    /// - `descriptive_data` must be a valid pointer.
1139    /// - `wrapped_key` must be a valid pointer.
1140    #[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    /// # Safety
1153    ///
1154    /// - `public_key` must be a valid pointer.
1155    /// - `wrapped_key` must be a valid pointer.
1156    /// - `key_label` must be a valid pointer.
1157    /// - `cred_and_acl_entry` must be a valid pointer.
1158    /// - `unwrapped_key` must be a valid pointer.
1159    /// - `descriptive_data` must be a valid pointer.
1160    #[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    /// # Safety
1177    ///
1178    /// - `access_cred` must be a valid pointer.
1179    /// - `key` must be a valid pointer.
1180    /// - `descriptive_data` must be a valid pointer.
1181    /// - `wrapped_key` must be a valid pointer.
1182    #[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    /// # Safety
1196    ///
1197    /// - `public_key` must be a valid pointer.
1198    /// - `wrapped_key` must be a valid pointer.
1199    /// - `key_label` must be a valid pointer.
1200    /// - `cred_and_acl_entry` must be a valid pointer.
1201    /// - `unwrapped_key` must be a valid pointer.
1202    /// - `descriptive_data` must be a valid pointer.
1203    #[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    /// # Safety
1221    ///
1222    /// - `param` must be a valid pointer.
1223    /// - `key_label` must be a valid pointer.
1224    /// - `cred_and_acl_entry` must be a valid pointer.
1225    /// - `derived_key` must be a valid pointer.
1226    #[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    /// # Safety
1241    ///
1242    /// - `access_cred` must be a valid pointer.
1243    /// - `key_ptr` must be a valid pointer.
1244    #[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    /// # Safety
1256    ///
1257    /// `param` must be a valid pointer.
1258    #[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    /// # Safety
1269    ///
1270    /// `statistics` must be a valid pointer.
1271    #[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    /// # Safety
1281    ///
1282    /// `time_data` must be a valid pointer.
1283    #[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    /// # Safety
1294    ///
1295    /// `unique_id` must be a valid pointer.
1296    #[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    /// # Safety
1306    ///
1307    /// `counter` must be a valid pointer.
1308    #[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    /// # Safety
1316    ///
1317    /// `device_cert` must be a valid pointer.
1318    #[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    /// # Safety
1328    ///
1329    /// - `in_data` must be a valid pointer.
1330    /// - `out_data` must be a valid pointer.
1331    #[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    /// # Safety
1343    ///
1344    /// - `preferred_authority` must be a valid pointer.
1345    /// - `request_input` must be a valid pointer.
1346    /// - `caller_auth_context` must be a valid pointer.
1347    /// - `estimated_time` must be a valid pointer.
1348    /// - `reference_identifier` must be a valid pointer.
1349    #[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    /// # Safety
1364    ///
1365    /// - `reference_identifier` must be a valid pointer.
1366    /// - `caller_auth_credentials` must be a valid pointer.
1367    /// - `estimated_time` must be a valid pointer.
1368    /// - `confirmation_required` must be a valid pointer.
1369    /// - `retrieve_output` must be a valid pointer.
1370    #[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    /// # Safety
1384    ///
1385    /// - `reference_identifier` must be a valid pointer.
1386    /// - `caller_auth_credentials` must be a valid pointer.
1387    /// - `responses` must be a valid pointer.
1388    /// - `preferred_authority` must be a valid pointer.
1389    #[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    /// # Safety
1402    ///
1403    /// - `reference_identifier` must be a valid pointer.
1404    /// - `responses` must be a valid pointer.
1405    /// - `elapsed_time` must be a valid pointer.
1406    #[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    /// # Safety
1418    ///
1419    /// - `cert_group` must be a valid pointer.
1420    /// - `cred_and_acl_entry` must be a valid pointer.
1421    #[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    /// # Safety
1444    ///
1445    /// - `preferred_authority` must be a valid pointer.
1446    /// - `blank_form` must be a valid pointer.
1447    #[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    /// # Safety
1459    ///
1460    /// - `form` must be a valid pointer.
1461    /// - `clearance_authority` must be a valid pointer.
1462    /// - `represented_authority` must be a valid pointer.
1463    /// - `credentials` must be a valid pointer.
1464    #[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    /// # Safety
1478    ///
1479    /// - `cert_group_to_be_verified` must be a valid pointer.
1480    /// - `verify_context` must be a valid pointer.
1481    /// - `verify_context_result` must be a valid pointer.
1482    #[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    /// # Safety
1496    ///
1497    /// - `cert_fields` must be a valid pointer.
1498    /// - `cert_template` must be a valid pointer.
1499    #[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    /// # Safety
1512    ///
1513    /// - `cert_template` must be a valid pointer.
1514    /// - `number_of_fields` must be a valid pointer.
1515    /// - `cert_fields` must be a valid pointer.
1516    #[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    /// # Safety
1529    ///
1530    /// - `cert_template_to_be_signed` must be a valid pointer.
1531    /// - `signer_cert_group` must be a valid pointer.
1532    /// - `signer_verify_context` must be a valid pointer.
1533    /// - `signer_verify_result` must be a valid pointer.
1534    /// - `signed_cert` must be a valid pointer.
1535    #[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    /// # Safety
1551    ///
1552    /// - `crl_to_be_verified` must be a valid pointer.
1553    /// - `signer_cert_group` must be a valid pointer.
1554    /// - `verify_context` must be a valid pointer.
1555    /// - `revoker_verify_result` must be a valid pointer.
1556    #[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    /// # Safety
1571    ///
1572    /// - `crl_fields` must be a valid pointer.
1573    /// - `new_crl_template` must be a valid pointer.
1574    #[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    /// # Safety
1587    ///
1588    /// - `old_crl_template` must be a valid pointer.
1589    /// - `cert_group_to_be_revoked` must be a valid pointer.
1590    /// - `revoker_cert_group` must be a valid pointer.
1591    /// - `revoker_verify_context` must be a valid pointer.
1592    /// - `revoker_verify_result` must be a valid pointer.
1593    /// - `new_crl_template` must be a valid pointer.
1594    #[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    /// # Safety
1612    ///
1613    /// - `old_crl_template` must be a valid pointer.
1614    /// - `cert_group_to_be_removed` must be a valid pointer.
1615    /// - `revoker_cert_group` must be a valid pointer.
1616    /// - `revoker_verify_context` must be a valid pointer.
1617    /// - `revoker_verify_result` must be a valid pointer.
1618    /// - `new_crl_template` must be a valid pointer.
1619    #[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    /// # Safety
1636    ///
1637    /// - `crl_to_be_signed` must be a valid pointer.
1638    /// - `signer_cert_group` must be a valid pointer.
1639    /// - `signer_verify_context` must be a valid pointer.
1640    /// - `signer_verify_result` must be a valid pointer.
1641    /// - `signed_crl` must be a valid pointer.
1642    #[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    /// # Safety
1658    ///
1659    /// - `crl_to_be_applied` must be a valid pointer.
1660    /// - `signer_cert_group` must be a valid pointer.
1661    /// - `apply_crl_verify_context` must be a valid pointer.
1662    /// - `apply_crl_verify_result` must be a valid pointer.
1663    #[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    /// # Safety
1678    ///
1679    /// - `db_list` must be a valid pointer.
1680    /// - `construct_params` must be a valid pointer.
1681    /// - `cert_group_frag` must be a valid pointer.
1682    /// - `cert_group` must be a valid pointer.
1683    #[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    /// # Safety
1698    ///
1699    /// - `db_list` must be a valid pointer.
1700    /// - `ordered_cert_group` must be a valid pointer.
1701    /// - `pruned_cert_group` must be a valid pointer.
1702    #[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    /// # Safety
1715    ///
1716    /// - `cert_group` must be a valid pointer.
1717    /// - `tuple_group` must be a valid pointer.
1718    #[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    /// # Safety
1730    ///
1731    /// - `tuple_group` must be a valid pointer.
1732    /// - `cert_templates` must be a valid pointer.
1733    #[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    /// # Safety
1745    ///
1746    /// - `db_list` must be a valid pointer.
1747    /// - `input_params` must be a valid pointer.
1748    /// - `output_params` must be a valid pointer.
1749    #[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    /// # Safety
1764    ///
1765    /// - `base_authorizations` must be a valid pointer.
1766    /// - `credentials` must be a valid pointer.
1767    /// - `requestors` must be a valid pointer.
1768    /// - `requested_authorization_period` must be a valid pointer.
1769    /// - `requested_authorization` must be a valid pointer.
1770    /// - `authorization_result` must be a valid pointer.
1771    #[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    /// # Safety
1787    ///
1788    /// - `db_list` must be a valid pointer.
1789    /// - `input_params` must be a valid pointer.
1790    /// - `output_params` must be a valid pointer.
1791    #[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    /// # Safety
1807    ///
1808    /// - `cert_fields` must be a valid pointer.
1809    /// - `cert_template` must be a valid pointer.
1810    #[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    /// # Safety
1822    ///
1823    /// - `cert_template` must be a valid pointer.
1824    /// - `number_of_fields` must be a valid pointer.
1825    /// - `cert_fields` must be a valid pointer.
1826    #[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    /// # Safety
1838    ///
1839    /// - `cert_template` must be a valid pointer.
1840    /// - `sign_scope` must be a valid pointer.
1841    /// - `signed_cert` must be a valid pointer.
1842    #[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    /// # Safety
1856    ///
1857    /// - `cert_to_be_verified` must be a valid pointer.
1858    /// - `signer_cert` must be a valid pointer.
1859    /// - `verify_scope` must be a valid pointer.
1860    #[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    /// # Safety
1874    ///
1875    /// `cert_to_be_verified` must be a valid pointer.
1876    #[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    /// # Safety
1887    ///
1888    /// - `cert` must be a valid pointer.
1889    /// - `cert_field` must be a valid pointer.
1890    /// - `results_handle` must be a valid pointer.
1891    /// - `number_of_matched_fields` must be a valid pointer.
1892    /// - `value` must be a valid pointer.
1893    #[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    /// # Safety
1907    ///
1908    /// `value` must be a valid pointer.
1909    #[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    /// # Safety
1929    ///
1930    /// - `cert` must be a valid pointer.
1931    /// - `key` must be a valid pointer.
1932    #[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    /// # Safety
1943    ///
1944    /// - `cert` must be a valid pointer.
1945    /// - `number_of_fields` must be a valid pointer.
1946    /// - `cert_fields` must be a valid pointer.
1947    #[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    /// # Safety
1959    ///
1960    /// `fields` must be a valid pointer.
1961    #[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    /// # Safety
1972    ///
1973    /// - `cert_or_crl_oid` must be a valid pointer.
1974    /// - `value` must be a valid pointer.
1975    #[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    /// # Safety
1986    ///
1987    /// - `cert` must be a valid pointer.
1988    /// - `cert_handle` must be a valid pointer.
1989    #[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    /// # Safety
2000    ///
2001    /// - `cert_field` must be a valid pointer.
2002    /// - `results_handle` must be a valid pointer.
2003    /// - `number_of_matched_fields` must be a valid pointer.
2004    /// - `value` must be a valid pointer.
2005    #[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    /// # Safety
2019    ///
2020    /// `value` must be a valid pointer.
2021    #[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    /// # Safety
2041    ///
2042    /// - `cert_group_to_bundle` must be a valid pointer.
2043    /// - `bundle_info` must be a valid pointer.
2044    /// - `signed_bundle` must be a valid pointer.
2045    #[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    /// # Safety
2058    ///
2059    /// - `cert_bundle` must be a valid pointer.
2060    /// - `signer_cert` must be a valid pointer.
2061    /// - `cert_group` must be a valid pointer.
2062    #[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    /// # Safety
2075    ///
2076    /// - `number_of_fields` must be a valid pointer.
2077    /// - `oid_list` must be a valid pointer.
2078    #[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    /// # Safety
2089    ///
2090    /// - `crl_template` must be a valid pointer.
2091    /// - `new_crl` must be a valid pointer.
2092    #[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    /// # Safety
2104    ///
2105    /// - `crl_template` must be a valid pointer.
2106    /// - `old_crl` must be a valid pointer.
2107    /// - `modified_crl` must be a valid pointer.
2108    #[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    /// # Safety
2121    ///
2122    /// - `cert` must be a valid pointer.
2123    /// - `crl_entry_fields` must be a valid pointer.
2124    /// - `old_crl` must be a valid pointer.
2125    /// - `new_crl` must be a valid pointer.
2126    #[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    /// # Safety
2141    ///
2142    /// - `cert` must be a valid pointer.
2143    /// - `old_crl` must be a valid pointer.
2144    /// - `new_crl` must be a valid pointer.
2145    #[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    /// # Safety
2157    ///
2158    /// - `unsigned_crl` must be a valid pointer.
2159    /// - `sign_scope` must be a valid pointer.
2160    /// - `signed_crl` must be a valid pointer.
2161    #[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    /// # Safety
2175    ///
2176    /// - `crl_to_be_verified` must be a valid pointer.
2177    /// - `signer_cert` must be a valid pointer.
2178    /// - `verify_scope` must be a valid pointer.
2179    #[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    /// # Safety
2193    ///
2194    /// `crl_to_be_verified` must be a valid pointer.
2195    #[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    /// # Safety
2206    ///
2207    /// - `cert` must be a valid pointer.
2208    /// - `crl` must be a valid pointer.
2209    /// - `cert_found` must be a valid pointer.
2210    #[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    /// # Safety
2222    ///
2223    /// - `crl` must be a valid pointer.
2224    /// - `crl_field` must be a valid pointer.
2225    /// - `results_handle` must be a valid pointer.
2226    /// - `number_of_matched_fields` must be a valid pointer.
2227    /// - `value` must be a valid pointer.
2228    #[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    /// # Safety
2242    ///
2243    /// `value` must be a valid pointer.
2244    #[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    /// # Safety
2264    ///
2265    /// - `crl` must be a valid pointer.
2266    /// - `number_of_crl_fields` must be a valid pointer.
2267    /// - `crl_fields` must be a valid pointer.
2268    #[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    /// # Safety
2280    ///
2281    /// - `crl` must be a valid pointer.
2282    /// - `crl_handle` must be a valid pointer.
2283    #[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    /// # Safety
2294    ///
2295    /// - `cert` must be a valid pointer.
2296    /// - `cert_found` must be a valid pointer.
2297    /// - `crl_record_index` must be a valid pointer.
2298    #[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    /// # Safety
2311    ///
2312    /// - `crl_record_index` must be a valid pointer.
2313    /// - `crl_field` must be a valid pointer.
2314    /// - `results_handle` must be a valid pointer.
2315    /// - `number_of_matched_fields` must be a valid pointer.
2316    /// - `value` must be a valid pointer.
2317    #[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    /// # Safety
2332    ///
2333    /// `value` must be a valid pointer.
2334    #[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    /// # Safety
2345    ///
2346    /// - `crl_record_index` must be a valid pointer.
2347    /// - `number_of_fields` must be a valid pointer.
2348    /// - `crl_fields` must be a valid pointer.
2349    #[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    /// # Safety
2369    ///
2370    /// - `number_of_fields` must be a valid pointer.
2371    /// - `oid_list` must be a valid pointer.
2372    #[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    /// # Safety
2383    ///
2384    /// - `input_params` must be a valid pointer.
2385    /// - `output_params` must be a valid pointer.
2386    #[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    /// # Safety
2399    ///
2400    /// - `db_name` must be a valid pointer.
2401    /// - `db_location` must be a valid pointer.
2402    /// - `access_cred` must be a valid pointer.
2403    /// - `open_parameters` must be a valid pointer.
2404    /// - `db_handle` must be a valid pointer.
2405    #[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    /// # Safety
2426    ///
2427    /// - `db_name` must be a valid pointer.
2428    /// - `db_location` must be a valid pointer.
2429    /// - `db_info` must be a valid pointer.
2430    /// - `cred_and_acl_entry` must be a valid pointer.
2431    /// - `open_parameters` must be a valid pointer.
2432    /// - `db_handle` must be a valid pointer.
2433    #[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    /// # Safety
2449    ///
2450    /// - `db_name` must be a valid pointer.
2451    /// - `db_location` must be a valid pointer.
2452    /// - `access_cred` must be a valid pointer.
2453    #[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    /// # Safety
2465    ///
2466    /// - `relation_name` must be a valid pointer.
2467    /// - `p_attribute_info` must be a valid pointer.
2468    /// - `p_index_info` must be a valid pointer.
2469    #[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    /// # Safety
2493    ///
2494    /// `access_cred` must be a valid pointer.
2495    #[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    /// # Safety
2506    ///
2507    /// - `selection_tag` must be a valid pointer.
2508    /// - `number_of_acl_infos` must be a valid pointer.
2509    /// - `acl_infos` must be a valid pointer.
2510    #[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    /// # Safety
2522    ///
2523    /// - `access_cred` must be a valid pointer.
2524    /// - `acl_edit` must be a valid pointer.
2525    #[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    /// # Safety
2536    ///
2537    /// `owner` must be a valid pointer.
2538    #[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    /// # Safety
2548    ///
2549    /// - `access_cred` must be a valid pointer.
2550    /// - `new_owner` must be a valid pointer.
2551    #[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    /// # Safety
2562    ///
2563    /// `name_list` must be a valid pointer.
2564    #[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    /// # Safety
2574    ///
2575    /// `db_name` must be a valid pointer.
2576    #[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    /// # Safety
2586    ///
2587    /// `name_list` must be a valid pointer.
2588    #[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    /// # Safety
2598    ///
2599    /// - `attributes` must be a valid pointer.
2600    /// - `data` must be a valid pointer.
2601    /// - `unique_id` must be a valid pointer.
2602    #[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    /// # Safety
2615    ///
2616    /// `unique_record_identifier` must be a valid pointer.
2617    #[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    /// # Safety
2627    ///
2628    /// - `unique_record_identifier` must be a valid pointer.
2629    /// - `attributes_to_be_modified` must be a valid pointer.
2630    /// - `data_to_be_modified` must be a valid pointer.
2631    #[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    /// # Safety
2645    ///
2646    /// - `query` must be a valid pointer.
2647    /// - `results_handle` must be a valid pointer.
2648    /// - `attributes` must be a valid pointer.
2649    /// - `data` must be a valid pointer.
2650    /// - `unique_id` must be a valid pointer.
2651    #[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    /// # Safety
2665    ///
2666    /// - `attributes` must be a valid pointer.
2667    /// - `data` must be a valid pointer.
2668    /// - `unique_id` must be a valid pointer.
2669    #[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    /// # Safety
2691    ///
2692    /// - `unique_record` must be a valid pointer.
2693    /// - `attributes` must be a valid pointer.
2694    /// - `data` must be a valid pointer.
2695    #[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    /// # Safety
2707    ///
2708    /// `unique_record` must be a valid pointer.
2709    #[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    /// # Safety
2719    ///
2720    /// - `input_params` must be a valid pointer.
2721    /// - `output_params` must be a valid pointer.
2722    #[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}