Path: blob/main/crypto/heimdal/lib/hx509/hx509-private.h
34889 views
/* This is a generated file */1#ifndef __hx509_private_h__2#define __hx509_private_h__34#include <stdarg.h>56#if !defined(__GNUC__) && !defined(__attribute__)7#define __attribute__(x)8#endif910int11_hx509_AlgorithmIdentifier_cmp (12const AlgorithmIdentifier */*p*/,13const AlgorithmIdentifier */*q*/);1415int16_hx509_Certificate_cmp (17const Certificate */*p*/,18const Certificate */*q*/);1920int21_hx509_Name_to_string (22const Name */*n*/,23char **/*str*/);2425time_t26_hx509_Time2time_t (const Time */*t*/);2728void29_hx509_abort (30const char */*fmt*/,31...)32__attribute__ ((noreturn, format (printf, 1, 2)));3334int35_hx509_calculate_path (36hx509_context /*context*/,37int /*flags*/,38time_t /*time_now*/,39hx509_certs /*anchors*/,40unsigned int /*max_depth*/,41hx509_cert /*cert*/,42hx509_certs /*pool*/,43hx509_path */*path*/);4445int46_hx509_cert_assign_key (47hx509_cert /*cert*/,48hx509_private_key /*private_key*/);4950int51_hx509_cert_get_eku (52hx509_context /*context*/,53hx509_cert /*cert*/,54ExtKeyUsage */*e*/);5556int57_hx509_cert_get_keyusage (58hx509_context /*context*/,59hx509_cert /*c*/,60KeyUsage */*ku*/);6162int63_hx509_cert_get_version (const Certificate */*t*/);6465int66_hx509_cert_is_parent_cmp (67const Certificate */*subject*/,68const Certificate */*issuer*/,69int /*allow_self_signed*/);7071int72_hx509_cert_private_decrypt (73hx509_context /*context*/,74const heim_octet_string */*ciphertext*/,75const heim_oid */*encryption_oid*/,76hx509_cert /*p*/,77heim_octet_string */*cleartext*/);7879hx509_private_key80_hx509_cert_private_key (hx509_cert /*p*/);8182int83_hx509_cert_private_key_exportable (hx509_cert /*p*/);8485void86_hx509_cert_set_release (87hx509_cert /*cert*/,88_hx509_cert_release_func /*release*/,89void */*ctx*/);9091int92_hx509_cert_to_env (93hx509_context /*context*/,94hx509_cert /*cert*/,95hx509_env */*env*/);9697int98_hx509_certs_keys_add (99hx509_context /*context*/,100hx509_certs /*certs*/,101hx509_private_key /*key*/);102103void104_hx509_certs_keys_free (105hx509_context /*context*/,106hx509_private_key */*keys*/);107108int109_hx509_certs_keys_get (110hx509_context /*context*/,111hx509_certs /*certs*/,112hx509_private_key **/*keys*/);113114int115_hx509_check_key_usage (116hx509_context /*context*/,117hx509_cert /*cert*/,118unsigned /*flags*/,119int /*req_present*/);120121int122_hx509_collector_alloc (123hx509_context /*context*/,124hx509_lock /*lock*/,125struct hx509_collector **/*collector*/);126127int128_hx509_collector_certs_add (129hx509_context /*context*/,130struct hx509_collector */*c*/,131hx509_cert /*cert*/);132133int134_hx509_collector_collect_certs (135hx509_context /*context*/,136struct hx509_collector */*c*/,137hx509_certs */*ret_certs*/);138139int140_hx509_collector_collect_private_keys (141hx509_context /*context*/,142struct hx509_collector */*c*/,143hx509_private_key **/*keys*/);144145void146_hx509_collector_free (struct hx509_collector */*c*/);147148hx509_lock149_hx509_collector_get_lock (struct hx509_collector */*c*/);150151int152_hx509_collector_private_key_add (153hx509_context /*context*/,154struct hx509_collector */*c*/,155const AlgorithmIdentifier */*alg*/,156hx509_private_key /*private_key*/,157const heim_octet_string */*key_data*/,158const heim_octet_string */*localKeyId*/);159160int161_hx509_create_signature (162hx509_context /*context*/,163const hx509_private_key /*signer*/,164const AlgorithmIdentifier */*alg*/,165const heim_octet_string */*data*/,166AlgorithmIdentifier */*signatureAlgorithm*/,167heim_octet_string */*sig*/);168169int170_hx509_create_signature_bitstring (171hx509_context /*context*/,172const hx509_private_key /*signer*/,173const AlgorithmIdentifier */*alg*/,174const heim_octet_string */*data*/,175AlgorithmIdentifier */*signatureAlgorithm*/,176heim_bit_string */*sig*/);177178int179_hx509_expr_eval (180hx509_context /*context*/,181hx509_env /*env*/,182struct hx_expr */*expr*/);183184void185_hx509_expr_free (struct hx_expr */*expr*/);186187struct hx_expr *188_hx509_expr_parse (const char */*buf*/);189190int191_hx509_find_extension_subject_key_id (192const Certificate */*issuer*/,193SubjectKeyIdentifier */*si*/);194195int196_hx509_generate_private_key (197hx509_context /*context*/,198struct hx509_generate_private_context */*ctx*/,199hx509_private_key */*private_key*/);200201int202_hx509_generate_private_key_bits (203hx509_context /*context*/,204struct hx509_generate_private_context */*ctx*/,205unsigned long /*bits*/);206207void208_hx509_generate_private_key_free (struct hx509_generate_private_context **/*ctx*/);209210int211_hx509_generate_private_key_init (212hx509_context /*context*/,213const heim_oid */*oid*/,214struct hx509_generate_private_context **/*ctx*/);215216int217_hx509_generate_private_key_is_ca (218hx509_context /*context*/,219struct hx509_generate_private_context */*ctx*/);220221Certificate *222_hx509_get_cert (hx509_cert /*cert*/);223224void225_hx509_ks_dir_register (hx509_context /*context*/);226227void228_hx509_ks_file_register (hx509_context /*context*/);229230void231_hx509_ks_keychain_register (hx509_context /*context*/);232233void234_hx509_ks_mem_register (hx509_context /*context*/);235236void237_hx509_ks_null_register (hx509_context /*context*/);238239void240_hx509_ks_pkcs11_register (hx509_context /*context*/);241242void243_hx509_ks_pkcs12_register (hx509_context /*context*/);244245void246_hx509_ks_register (247hx509_context /*context*/,248struct hx509_keyset_ops */*ops*/);249250int251_hx509_lock_find_cert (252hx509_lock /*lock*/,253const hx509_query */*q*/,254hx509_cert */*c*/);255256const struct _hx509_password *257_hx509_lock_get_passwords (hx509_lock /*lock*/);258259hx509_certs260_hx509_lock_unlock_certs (hx509_lock /*lock*/);261262struct hx_expr *263_hx509_make_expr (264enum hx_expr_op /*op*/,265void */*arg1*/,266void */*arg2*/);267268int269_hx509_map_file_os (270const char */*fn*/,271heim_octet_string */*os*/);272273int274_hx509_match_keys (275hx509_cert /*c*/,276hx509_private_key /*key*/);277278int279_hx509_name_cmp (280const Name */*n1*/,281const Name */*n2*/,282int */*c*/);283284int285_hx509_name_ds_cmp (286const DirectoryString */*ds1*/,287const DirectoryString */*ds2*/,288int */*diff*/);289290int291_hx509_name_from_Name (292const Name */*n*/,293hx509_name */*name*/);294295int296_hx509_name_modify (297hx509_context /*context*/,298Name */*name*/,299int /*append*/,300const heim_oid */*oid*/,301const char */*str*/);302303int304_hx509_path_append (305hx509_context /*context*/,306hx509_path */*path*/,307hx509_cert /*cert*/);308309void310_hx509_path_free (hx509_path */*path*/);311312int313_hx509_pbe_decrypt (314hx509_context /*context*/,315hx509_lock /*lock*/,316const AlgorithmIdentifier */*ai*/,317const heim_octet_string */*econtent*/,318heim_octet_string */*content*/);319320int321_hx509_pbe_encrypt (322hx509_context /*context*/,323hx509_lock /*lock*/,324const AlgorithmIdentifier */*ai*/,325const heim_octet_string */*content*/,326heim_octet_string */*econtent*/);327328void329_hx509_pi_printf (330int (*/*func*/)(void *, const char *),331void */*ctx*/,332const char */*fmt*/,333...);334335int336_hx509_private_key_export (337hx509_context /*context*/,338const hx509_private_key /*key*/,339hx509_key_format_t /*format*/,340heim_octet_string */*data*/);341342int343_hx509_private_key_exportable (hx509_private_key /*key*/);344345BIGNUM *346_hx509_private_key_get_internal (347hx509_context /*context*/,348hx509_private_key /*key*/,349const char */*type*/);350351int352_hx509_private_key_oid (353hx509_context /*context*/,354const hx509_private_key /*key*/,355heim_oid */*data*/);356357hx509_private_key358_hx509_private_key_ref (hx509_private_key /*key*/);359360const char *361_hx509_private_pem_name (hx509_private_key /*key*/);362363int364_hx509_public_encrypt (365hx509_context /*context*/,366const heim_octet_string */*cleartext*/,367const Certificate */*cert*/,368heim_oid */*encryption_oid*/,369heim_octet_string */*ciphertext*/);370371void372_hx509_query_clear (hx509_query */*q*/);373374int375_hx509_query_match_cert (376hx509_context /*context*/,377const hx509_query */*q*/,378hx509_cert /*cert*/);379380void381_hx509_query_statistic (382hx509_context /*context*/,383int /*type*/,384const hx509_query */*q*/);385386int387_hx509_request_add_dns_name (388hx509_context /*context*/,389hx509_request /*req*/,390const char */*hostname*/);391392int393_hx509_request_add_eku (394hx509_context /*context*/,395hx509_request /*req*/,396const heim_oid */*oid*/);397398int399_hx509_request_add_email (400hx509_context /*context*/,401hx509_request /*req*/,402const char */*email*/);403404int405_hx509_request_parse (406hx509_context /*context*/,407const char */*path*/,408hx509_request */*req*/);409410int411_hx509_request_print (412hx509_context /*context*/,413hx509_request /*req*/,414FILE */*f*/);415416int417_hx509_request_to_pkcs10 (418hx509_context /*context*/,419const hx509_request /*req*/,420const hx509_private_key /*signer*/,421heim_octet_string */*request*/);422423hx509_revoke_ctx424_hx509_revoke_ref (hx509_revoke_ctx /*ctx*/);425426void427_hx509_sel_yyerror (const char */*s*/);428429int430_hx509_self_signed_valid (431hx509_context /*context*/,432const AlgorithmIdentifier */*alg*/);433434int435_hx509_set_cert_attribute (436hx509_context /*context*/,437hx509_cert /*cert*/,438const heim_oid */*oid*/,439const heim_octet_string */*attr*/);440441int442_hx509_signature_best_before (443hx509_context /*context*/,444const AlgorithmIdentifier */*alg*/,445time_t /*t*/);446447void448_hx509_unmap_file_os (heim_octet_string */*os*/);449450int451_hx509_unparse_Name (452const Name */*aname*/,453char **/*str*/);454455time_t456_hx509_verify_get_time (hx509_verify_ctx /*ctx*/);457458int459_hx509_verify_signature (460hx509_context /*context*/,461const hx509_cert /*cert*/,462const AlgorithmIdentifier */*alg*/,463const heim_octet_string */*data*/,464const heim_octet_string */*sig*/);465466int467_hx509_verify_signature_bitstring (468hx509_context /*context*/,469const hx509_cert /*signer*/,470const AlgorithmIdentifier */*alg*/,471const heim_octet_string */*data*/,472const heim_bit_string */*sig*/);473474int475_hx509_write_file (476const char */*fn*/,477const void */*data*/,478size_t /*length*/);479480#endif /* __hx509_private_h__ */481482483