1 /* This is a generated file */
2 #ifndef __hx509_private_h__
3 #define __hx509_private_h__
7 #if !defined(__GNUC__) && !defined(__attribute__)
8 #define __attribute__(x)
12 _hx509_AlgorithmIdentifier_cmp (
13 const AlgorithmIdentifier */*p*/,
14 const AlgorithmIdentifier */*q*/);
17 _hx509_Certificate_cmp (
18 const Certificate */*p*/,
19 const Certificate */*q*/);
22 _hx509_Name_to_string (
27 _hx509_Time2time_t (const Time */*t*/);
33 __attribute__ ((noreturn, format (printf, 1, 2)));
36 _hx509_calculate_path (
37 hx509_context /*context*/,
40 hx509_certs /*anchors*/,
41 unsigned int /*max_depth*/,
44 hx509_path */*path*/);
47 _hx509_cert_assign_key (
49 hx509_private_key /*private_key*/);
53 hx509_context /*context*/,
58 _hx509_cert_get_keyusage (
59 hx509_context /*context*/,
64 _hx509_cert_get_version (const Certificate */*t*/);
67 _hx509_cert_is_parent_cmp (
68 const Certificate */*subject*/,
69 const Certificate */*issuer*/,
70 int /*allow_self_signed*/);
73 _hx509_cert_private_decrypt (
74 hx509_context /*context*/,
75 const heim_octet_string */*ciphertext*/,
76 const heim_oid */*encryption_oid*/,
78 heim_octet_string */*cleartext*/);
81 _hx509_cert_private_key (hx509_cert /*p*/);
84 _hx509_cert_private_key_exportable (hx509_cert /*p*/);
87 _hx509_cert_public_encrypt (
88 hx509_context /*context*/,
89 const heim_octet_string */*cleartext*/,
90 const hx509_cert /*p*/,
91 heim_oid */*encryption_oid*/,
92 heim_octet_string */*ciphertext*/);
95 _hx509_cert_set_release (
97 _hx509_cert_release_func /*release*/,
102 hx509_context /*context*/,
107 _hx509_certs_keys_add (
108 hx509_context /*context*/,
109 hx509_certs /*certs*/,
110 hx509_private_key /*key*/);
113 _hx509_certs_keys_free (
114 hx509_context /*context*/,
115 hx509_private_key */*keys*/);
118 _hx509_certs_keys_get (
119 hx509_context /*context*/,
120 hx509_certs /*certs*/,
121 hx509_private_key **/*keys*/);
124 _hx509_certs_ref (hx509_certs /*certs*/);
127 _hx509_check_key_usage (
128 hx509_context /*context*/,
131 int /*req_present*/);
134 _hx509_collector_alloc (
135 hx509_context /*context*/,
137 struct hx509_collector **/*collector*/);
140 _hx509_collector_certs_add (
141 hx509_context /*context*/,
142 struct hx509_collector */*c*/,
143 hx509_cert /*cert*/);
146 _hx509_collector_collect_certs (
147 hx509_context /*context*/,
148 struct hx509_collector */*c*/,
149 hx509_certs */*ret_certs*/);
152 _hx509_collector_collect_private_keys (
153 hx509_context /*context*/,
154 struct hx509_collector */*c*/,
155 hx509_private_key **/*keys*/);
158 _hx509_collector_free (struct hx509_collector */*c*/);
161 _hx509_collector_get_lock (struct hx509_collector */*c*/);
164 _hx509_collector_private_key_add (
165 hx509_context /*context*/,
166 struct hx509_collector */*c*/,
167 const AlgorithmIdentifier */*alg*/,
168 hx509_private_key /*private_key*/,
169 const heim_octet_string */*key_data*/,
170 const heim_octet_string */*localKeyId*/);
173 _hx509_create_signature (
174 hx509_context /*context*/,
175 const hx509_private_key /*signer*/,
176 const AlgorithmIdentifier */*alg*/,
177 const heim_octet_string */*data*/,
178 AlgorithmIdentifier */*signatureAlgorithm*/,
179 heim_octet_string */*sig*/);
182 _hx509_create_signature_bitstring (
183 hx509_context /*context*/,
184 const hx509_private_key /*signer*/,
185 const AlgorithmIdentifier */*alg*/,
186 const heim_octet_string */*data*/,
187 AlgorithmIdentifier */*signatureAlgorithm*/,
188 heim_bit_string */*sig*/);
192 hx509_context /*context*/,
194 struct hx_expr */*expr*/);
197 _hx509_expr_free (struct hx_expr */*expr*/);
200 _hx509_expr_parse (const char */*buf*/);
203 _hx509_find_extension_subject_key_id (
204 const Certificate */*issuer*/,
205 SubjectKeyIdentifier */*si*/);
208 _hx509_generate_private_key (
209 hx509_context /*context*/,
210 struct hx509_generate_private_context */*ctx*/,
211 hx509_private_key */*private_key*/);
214 _hx509_generate_private_key_bits (
215 hx509_context /*context*/,
216 struct hx509_generate_private_context */*ctx*/,
217 unsigned long /*bits*/);
220 _hx509_generate_private_key_free (struct hx509_generate_private_context **/*ctx*/);
223 _hx509_generate_private_key_init (
224 hx509_context /*context*/,
225 const heim_oid */*oid*/,
226 struct hx509_generate_private_context **/*ctx*/);
229 _hx509_generate_private_key_is_ca (
230 hx509_context /*context*/,
231 struct hx509_generate_private_context */*ctx*/);
234 _hx509_get_cert (hx509_cert /*cert*/);
237 _hx509_ks_dir_register (hx509_context /*context*/);
240 _hx509_ks_file_register (hx509_context /*context*/);
243 _hx509_ks_keychain_register (hx509_context /*context*/);
246 _hx509_ks_mem_register (hx509_context /*context*/);
249 _hx509_ks_null_register (hx509_context /*context*/);
252 _hx509_ks_pkcs11_register (hx509_context /*context*/);
255 _hx509_ks_pkcs12_register (hx509_context /*context*/);
259 hx509_context /*context*/,
260 struct hx509_keyset_ops */*ops*/);
263 _hx509_lock_find_cert (
265 const hx509_query */*q*/,
268 const struct _hx509_password *
269 _hx509_lock_get_passwords (hx509_lock /*lock*/);
272 _hx509_lock_unlock_certs (hx509_lock /*lock*/);
276 enum hx_expr_op /*op*/,
283 heim_octet_string */*os*/);
288 hx509_private_key /*private_key*/);
298 const DirectoryString */*ds1*/,
299 const DirectoryString */*ds2*/,
303 _hx509_name_from_Name (
305 hx509_name */*name*/);
309 hx509_context /*context*/,
312 const heim_oid */*oid*/,
313 const char */*str*/);
316 _hx509_parse_private_key (
317 hx509_context /*context*/,
318 const heim_oid */*key_oid*/,
319 const void */*data*/,
321 hx509_private_key */*private_key*/);
325 hx509_context /*context*/,
326 hx509_path */*path*/,
327 hx509_cert /*cert*/);
330 _hx509_path_free (hx509_path */*path*/);
334 hx509_context /*context*/,
336 const AlgorithmIdentifier */*ai*/,
337 const heim_octet_string */*econtent*/,
338 heim_octet_string */*content*/);
342 hx509_context /*context*/,
344 const AlgorithmIdentifier */*ai*/,
345 const heim_octet_string */*content*/,
346 heim_octet_string */*econtent*/);
350 int (*/*func*/)(void *, const char *),
356 _hx509_private_key2SPKI (
357 hx509_context /*context*/,
358 hx509_private_key /*private_key*/,
359 SubjectPublicKeyInfo */*spki*/);
362 _hx509_private_key_assign_rsa (
363 hx509_private_key /*key*/,
367 _hx509_private_key_export (
368 hx509_context /*context*/,
369 const hx509_private_key /*key*/,
370 heim_octet_string */*data*/);
373 _hx509_private_key_exportable (hx509_private_key /*key*/);
376 _hx509_private_key_free (hx509_private_key */*key*/);
379 _hx509_private_key_get_internal (
380 hx509_context /*context*/,
381 hx509_private_key /*key*/,
382 const char */*type*/);
385 _hx509_private_key_init (
386 hx509_private_key */*key*/,
387 hx509_private_key_ops */*ops*/,
391 _hx509_private_key_oid (
392 hx509_context /*context*/,
393 const hx509_private_key /*key*/,
397 _hx509_private_key_private_decrypt (
398 hx509_context /*context*/,
399 const heim_octet_string */*ciphertext*/,
400 const heim_oid */*encryption_oid*/,
401 hx509_private_key /*p*/,
402 heim_octet_string */*cleartext*/);
405 _hx509_private_key_ref (hx509_private_key /*key*/);
408 _hx509_private_pem_name (hx509_private_key /*key*/);
411 _hx509_public_encrypt (
412 hx509_context /*context*/,
413 const heim_octet_string */*cleartext*/,
414 const Certificate */*cert*/,
415 heim_oid */*encryption_oid*/,
416 heim_octet_string */*ciphertext*/);
419 _hx509_query_clear (hx509_query */*q*/);
422 _hx509_query_match_cert (
423 hx509_context /*context*/,
424 const hx509_query */*q*/,
425 hx509_cert /*cert*/);
428 _hx509_query_statistic (
429 hx509_context /*context*/,
431 const hx509_query */*q*/);
434 _hx509_request_add_dns_name (
435 hx509_context /*context*/,
436 hx509_request /*req*/,
437 const char */*hostname*/);
440 _hx509_request_add_eku (
441 hx509_context /*context*/,
442 hx509_request /*req*/,
443 const heim_oid */*oid*/);
446 _hx509_request_add_email (
447 hx509_context /*context*/,
448 hx509_request /*req*/,
449 const char */*email*/);
452 _hx509_request_free (hx509_request */*req*/);
455 _hx509_request_get_SubjectPublicKeyInfo (
456 hx509_context /*context*/,
457 hx509_request /*req*/,
458 SubjectPublicKeyInfo */*key*/);
461 _hx509_request_get_name (
462 hx509_context /*context*/,
463 hx509_request /*req*/,
464 hx509_name */*name*/);
467 _hx509_request_init (
468 hx509_context /*context*/,
469 hx509_request */*req*/);
472 _hx509_request_parse (
473 hx509_context /*context*/,
474 const char */*path*/,
475 hx509_request */*req*/);
478 _hx509_request_print (
479 hx509_context /*context*/,
480 hx509_request /*req*/,
484 _hx509_request_set_SubjectPublicKeyInfo (
485 hx509_context /*context*/,
486 hx509_request /*req*/,
487 const SubjectPublicKeyInfo */*key*/);
490 _hx509_request_set_name (
491 hx509_context /*context*/,
492 hx509_request /*req*/,
493 hx509_name /*name*/);
496 _hx509_request_to_pkcs10 (
497 hx509_context /*context*/,
498 const hx509_request /*req*/,
499 const hx509_private_key /*signer*/,
500 heim_octet_string */*request*/);
503 _hx509_revoke_ref (hx509_revoke_ctx /*ctx*/);
506 _hx509_sel_yyerror (char */*s*/);
509 _hx509_set_cert_attribute (
510 hx509_context /*context*/,
512 const heim_oid */*oid*/,
513 const heim_octet_string */*attr*/);
516 _hx509_unmap_file_os (heim_octet_string */*os*/);
519 _hx509_unparse_Name (
520 const Name */*aname*/,
524 _hx509_verify_get_time (hx509_verify_ctx /*ctx*/);
527 _hx509_verify_signature (
528 hx509_context /*context*/,
529 const Certificate */*signer*/,
530 const AlgorithmIdentifier */*alg*/,
531 const heim_octet_string */*data*/,
532 const heim_octet_string */*sig*/);
535 _hx509_verify_signature_bitstring (
536 hx509_context /*context*/,
537 const Certificate */*signer*/,
538 const AlgorithmIdentifier */*alg*/,
539 const heim_octet_string */*data*/,
540 const heim_bit_string */*sig*/);
545 const void */*data*/,
548 #endif /* __hx509_private_h__ */