1ebfedea0SLionel Sambuc /* This is a generated file */ 2ebfedea0SLionel Sambuc #ifndef __hx509_private_h__ 3ebfedea0SLionel Sambuc #define __hx509_private_h__ 4ebfedea0SLionel Sambuc 5ebfedea0SLionel Sambuc #include <stdarg.h> 6ebfedea0SLionel Sambuc 7ebfedea0SLionel Sambuc #if !defined(__GNUC__) && !defined(__attribute__) 8ebfedea0SLionel Sambuc #define __attribute__(x) 9ebfedea0SLionel Sambuc #endif 10ebfedea0SLionel Sambuc 11ebfedea0SLionel Sambuc int 12ebfedea0SLionel Sambuc _hx509_AlgorithmIdentifier_cmp ( 13ebfedea0SLionel Sambuc const AlgorithmIdentifier */*p*/, 14ebfedea0SLionel Sambuc const AlgorithmIdentifier */*q*/); 15ebfedea0SLionel Sambuc 16ebfedea0SLionel Sambuc int 17ebfedea0SLionel Sambuc _hx509_Certificate_cmp ( 18ebfedea0SLionel Sambuc const Certificate */*p*/, 19ebfedea0SLionel Sambuc const Certificate */*q*/); 20ebfedea0SLionel Sambuc 21ebfedea0SLionel Sambuc int 22ebfedea0SLionel Sambuc _hx509_Name_to_string ( 23ebfedea0SLionel Sambuc const Name */*n*/, 24ebfedea0SLionel Sambuc char **/*str*/); 25ebfedea0SLionel Sambuc 26ebfedea0SLionel Sambuc time_t 27ebfedea0SLionel Sambuc _hx509_Time2time_t (const Time */*t*/); 28ebfedea0SLionel Sambuc 29ebfedea0SLionel Sambuc void 30ebfedea0SLionel Sambuc _hx509_abort ( 31ebfedea0SLionel Sambuc const char */*fmt*/, 32ebfedea0SLionel Sambuc ...) 33ebfedea0SLionel Sambuc __attribute__ ((noreturn, format (printf, 1, 2))); 34ebfedea0SLionel Sambuc 35ebfedea0SLionel Sambuc int 36ebfedea0SLionel Sambuc _hx509_calculate_path ( 37ebfedea0SLionel Sambuc hx509_context /*context*/, 38ebfedea0SLionel Sambuc int /*flags*/, 39ebfedea0SLionel Sambuc time_t /*time_now*/, 40ebfedea0SLionel Sambuc hx509_certs /*anchors*/, 41ebfedea0SLionel Sambuc unsigned int /*max_depth*/, 42ebfedea0SLionel Sambuc hx509_cert /*cert*/, 43ebfedea0SLionel Sambuc hx509_certs /*pool*/, 44ebfedea0SLionel Sambuc hx509_path */*path*/); 45ebfedea0SLionel Sambuc 46ebfedea0SLionel Sambuc int 47ebfedea0SLionel Sambuc _hx509_cert_assign_key ( 48ebfedea0SLionel Sambuc hx509_cert /*cert*/, 49ebfedea0SLionel Sambuc hx509_private_key /*private_key*/); 50ebfedea0SLionel Sambuc 51ebfedea0SLionel Sambuc int 52ebfedea0SLionel Sambuc _hx509_cert_get_eku ( 53ebfedea0SLionel Sambuc hx509_context /*context*/, 54ebfedea0SLionel Sambuc hx509_cert /*cert*/, 55ebfedea0SLionel Sambuc ExtKeyUsage */*e*/); 56ebfedea0SLionel Sambuc 57ebfedea0SLionel Sambuc int 58ebfedea0SLionel Sambuc _hx509_cert_get_keyusage ( 59ebfedea0SLionel Sambuc hx509_context /*context*/, 60ebfedea0SLionel Sambuc hx509_cert /*c*/, 61ebfedea0SLionel Sambuc KeyUsage */*ku*/); 62ebfedea0SLionel Sambuc 63ebfedea0SLionel Sambuc int 64ebfedea0SLionel Sambuc _hx509_cert_get_version (const Certificate */*t*/); 65ebfedea0SLionel Sambuc 66ebfedea0SLionel Sambuc int 67ebfedea0SLionel Sambuc _hx509_cert_is_parent_cmp ( 68ebfedea0SLionel Sambuc const Certificate */*subject*/, 69ebfedea0SLionel Sambuc const Certificate */*issuer*/, 70ebfedea0SLionel Sambuc int /*allow_self_signed*/); 71ebfedea0SLionel Sambuc 72ebfedea0SLionel Sambuc int 73ebfedea0SLionel Sambuc _hx509_cert_private_decrypt ( 74ebfedea0SLionel Sambuc hx509_context /*context*/, 75ebfedea0SLionel Sambuc const heim_octet_string */*ciphertext*/, 76ebfedea0SLionel Sambuc const heim_oid */*encryption_oid*/, 77ebfedea0SLionel Sambuc hx509_cert /*p*/, 78ebfedea0SLionel Sambuc heim_octet_string */*cleartext*/); 79ebfedea0SLionel Sambuc 80ebfedea0SLionel Sambuc hx509_private_key 81ebfedea0SLionel Sambuc _hx509_cert_private_key (hx509_cert /*p*/); 82ebfedea0SLionel Sambuc 83ebfedea0SLionel Sambuc int 84ebfedea0SLionel Sambuc _hx509_cert_private_key_exportable (hx509_cert /*p*/); 85ebfedea0SLionel Sambuc 86ebfedea0SLionel Sambuc void 87ebfedea0SLionel Sambuc _hx509_cert_set_release ( 88ebfedea0SLionel Sambuc hx509_cert /*cert*/, 89ebfedea0SLionel Sambuc _hx509_cert_release_func /*release*/, 90ebfedea0SLionel Sambuc void */*ctx*/); 91ebfedea0SLionel Sambuc 92ebfedea0SLionel Sambuc int 93ebfedea0SLionel Sambuc _hx509_cert_to_env ( 94ebfedea0SLionel Sambuc hx509_context /*context*/, 95ebfedea0SLionel Sambuc hx509_cert /*cert*/, 96ebfedea0SLionel Sambuc hx509_env */*env*/); 97ebfedea0SLionel Sambuc 98ebfedea0SLionel Sambuc int 99ebfedea0SLionel Sambuc _hx509_certs_keys_add ( 100ebfedea0SLionel Sambuc hx509_context /*context*/, 101ebfedea0SLionel Sambuc hx509_certs /*certs*/, 102ebfedea0SLionel Sambuc hx509_private_key /*key*/); 103ebfedea0SLionel Sambuc 104ebfedea0SLionel Sambuc void 105ebfedea0SLionel Sambuc _hx509_certs_keys_free ( 106ebfedea0SLionel Sambuc hx509_context /*context*/, 107ebfedea0SLionel Sambuc hx509_private_key */*keys*/); 108ebfedea0SLionel Sambuc 109ebfedea0SLionel Sambuc int 110ebfedea0SLionel Sambuc _hx509_certs_keys_get ( 111ebfedea0SLionel Sambuc hx509_context /*context*/, 112ebfedea0SLionel Sambuc hx509_certs /*certs*/, 113ebfedea0SLionel Sambuc hx509_private_key **/*keys*/); 114ebfedea0SLionel Sambuc 115ebfedea0SLionel Sambuc int 116ebfedea0SLionel Sambuc _hx509_check_key_usage ( 117ebfedea0SLionel Sambuc hx509_context /*context*/, 118ebfedea0SLionel Sambuc hx509_cert /*cert*/, 119ebfedea0SLionel Sambuc unsigned /*flags*/, 120ebfedea0SLionel Sambuc int /*req_present*/); 121ebfedea0SLionel Sambuc 122ebfedea0SLionel Sambuc int 123ebfedea0SLionel Sambuc _hx509_collector_alloc ( 124ebfedea0SLionel Sambuc hx509_context /*context*/, 125ebfedea0SLionel Sambuc hx509_lock /*lock*/, 126ebfedea0SLionel Sambuc struct hx509_collector **/*collector*/); 127ebfedea0SLionel Sambuc 128ebfedea0SLionel Sambuc int 129ebfedea0SLionel Sambuc _hx509_collector_certs_add ( 130ebfedea0SLionel Sambuc hx509_context /*context*/, 131ebfedea0SLionel Sambuc struct hx509_collector */*c*/, 132ebfedea0SLionel Sambuc hx509_cert /*cert*/); 133ebfedea0SLionel Sambuc 134ebfedea0SLionel Sambuc int 135ebfedea0SLionel Sambuc _hx509_collector_collect_certs ( 136ebfedea0SLionel Sambuc hx509_context /*context*/, 137ebfedea0SLionel Sambuc struct hx509_collector */*c*/, 138ebfedea0SLionel Sambuc hx509_certs */*ret_certs*/); 139ebfedea0SLionel Sambuc 140ebfedea0SLionel Sambuc int 141ebfedea0SLionel Sambuc _hx509_collector_collect_private_keys ( 142ebfedea0SLionel Sambuc hx509_context /*context*/, 143ebfedea0SLionel Sambuc struct hx509_collector */*c*/, 144ebfedea0SLionel Sambuc hx509_private_key **/*keys*/); 145ebfedea0SLionel Sambuc 146ebfedea0SLionel Sambuc void 147ebfedea0SLionel Sambuc _hx509_collector_free (struct hx509_collector */*c*/); 148ebfedea0SLionel Sambuc 149ebfedea0SLionel Sambuc hx509_lock 150ebfedea0SLionel Sambuc _hx509_collector_get_lock (struct hx509_collector */*c*/); 151ebfedea0SLionel Sambuc 152ebfedea0SLionel Sambuc int 153ebfedea0SLionel Sambuc _hx509_collector_private_key_add ( 154ebfedea0SLionel Sambuc hx509_context /*context*/, 155ebfedea0SLionel Sambuc struct hx509_collector */*c*/, 156ebfedea0SLionel Sambuc const AlgorithmIdentifier */*alg*/, 157ebfedea0SLionel Sambuc hx509_private_key /*private_key*/, 158ebfedea0SLionel Sambuc const heim_octet_string */*key_data*/, 159ebfedea0SLionel Sambuc const heim_octet_string */*localKeyId*/); 160ebfedea0SLionel Sambuc 161ebfedea0SLionel Sambuc int 162ebfedea0SLionel Sambuc _hx509_create_signature ( 163ebfedea0SLionel Sambuc hx509_context /*context*/, 164ebfedea0SLionel Sambuc const hx509_private_key /*signer*/, 165ebfedea0SLionel Sambuc const AlgorithmIdentifier */*alg*/, 166ebfedea0SLionel Sambuc const heim_octet_string */*data*/, 167ebfedea0SLionel Sambuc AlgorithmIdentifier */*signatureAlgorithm*/, 168ebfedea0SLionel Sambuc heim_octet_string */*sig*/); 169ebfedea0SLionel Sambuc 170ebfedea0SLionel Sambuc int 171ebfedea0SLionel Sambuc _hx509_create_signature_bitstring ( 172ebfedea0SLionel Sambuc hx509_context /*context*/, 173ebfedea0SLionel Sambuc const hx509_private_key /*signer*/, 174ebfedea0SLionel Sambuc const AlgorithmIdentifier */*alg*/, 175ebfedea0SLionel Sambuc const heim_octet_string */*data*/, 176ebfedea0SLionel Sambuc AlgorithmIdentifier */*signatureAlgorithm*/, 177ebfedea0SLionel Sambuc heim_bit_string */*sig*/); 178ebfedea0SLionel Sambuc 179ebfedea0SLionel Sambuc int 180ebfedea0SLionel Sambuc _hx509_expr_eval ( 181ebfedea0SLionel Sambuc hx509_context /*context*/, 182ebfedea0SLionel Sambuc hx509_env /*env*/, 183ebfedea0SLionel Sambuc struct hx_expr */*expr*/); 184ebfedea0SLionel Sambuc 185ebfedea0SLionel Sambuc void 186ebfedea0SLionel Sambuc _hx509_expr_free (struct hx_expr */*expr*/); 187ebfedea0SLionel Sambuc 188ebfedea0SLionel Sambuc struct hx_expr * 189ebfedea0SLionel Sambuc _hx509_expr_parse (const char */*buf*/); 190ebfedea0SLionel Sambuc 191ebfedea0SLionel Sambuc int 192ebfedea0SLionel Sambuc _hx509_find_extension_subject_key_id ( 193ebfedea0SLionel Sambuc const Certificate */*issuer*/, 194ebfedea0SLionel Sambuc SubjectKeyIdentifier */*si*/); 195ebfedea0SLionel Sambuc 196ebfedea0SLionel Sambuc int 197ebfedea0SLionel Sambuc _hx509_generate_private_key ( 198ebfedea0SLionel Sambuc hx509_context /*context*/, 199ebfedea0SLionel Sambuc struct hx509_generate_private_context */*ctx*/, 200ebfedea0SLionel Sambuc hx509_private_key */*private_key*/); 201ebfedea0SLionel Sambuc 202ebfedea0SLionel Sambuc int 203ebfedea0SLionel Sambuc _hx509_generate_private_key_bits ( 204ebfedea0SLionel Sambuc hx509_context /*context*/, 205ebfedea0SLionel Sambuc struct hx509_generate_private_context */*ctx*/, 206ebfedea0SLionel Sambuc unsigned long /*bits*/); 207ebfedea0SLionel Sambuc 208ebfedea0SLionel Sambuc void 209ebfedea0SLionel Sambuc _hx509_generate_private_key_free (struct hx509_generate_private_context **/*ctx*/); 210ebfedea0SLionel Sambuc 211ebfedea0SLionel Sambuc int 212ebfedea0SLionel Sambuc _hx509_generate_private_key_init ( 213ebfedea0SLionel Sambuc hx509_context /*context*/, 214ebfedea0SLionel Sambuc const heim_oid */*oid*/, 215ebfedea0SLionel Sambuc struct hx509_generate_private_context **/*ctx*/); 216ebfedea0SLionel Sambuc 217ebfedea0SLionel Sambuc int 218ebfedea0SLionel Sambuc _hx509_generate_private_key_is_ca ( 219ebfedea0SLionel Sambuc hx509_context /*context*/, 220ebfedea0SLionel Sambuc struct hx509_generate_private_context */*ctx*/); 221ebfedea0SLionel Sambuc 222ebfedea0SLionel Sambuc Certificate * 223ebfedea0SLionel Sambuc _hx509_get_cert (hx509_cert /*cert*/); 224ebfedea0SLionel Sambuc 225ebfedea0SLionel Sambuc void 226ebfedea0SLionel Sambuc _hx509_ks_dir_register (hx509_context /*context*/); 227ebfedea0SLionel Sambuc 228ebfedea0SLionel Sambuc void 229ebfedea0SLionel Sambuc _hx509_ks_file_register (hx509_context /*context*/); 230ebfedea0SLionel Sambuc 231ebfedea0SLionel Sambuc void 232ebfedea0SLionel Sambuc _hx509_ks_keychain_register (hx509_context /*context*/); 233ebfedea0SLionel Sambuc 234ebfedea0SLionel Sambuc void 235ebfedea0SLionel Sambuc _hx509_ks_mem_register (hx509_context /*context*/); 236ebfedea0SLionel Sambuc 237ebfedea0SLionel Sambuc void 238ebfedea0SLionel Sambuc _hx509_ks_null_register (hx509_context /*context*/); 239ebfedea0SLionel Sambuc 240ebfedea0SLionel Sambuc void 241ebfedea0SLionel Sambuc _hx509_ks_pkcs11_register (hx509_context /*context*/); 242ebfedea0SLionel Sambuc 243ebfedea0SLionel Sambuc void 244ebfedea0SLionel Sambuc _hx509_ks_pkcs12_register (hx509_context /*context*/); 245ebfedea0SLionel Sambuc 246ebfedea0SLionel Sambuc void 247ebfedea0SLionel Sambuc _hx509_ks_register ( 248ebfedea0SLionel Sambuc hx509_context /*context*/, 249ebfedea0SLionel Sambuc struct hx509_keyset_ops */*ops*/); 250ebfedea0SLionel Sambuc 251ebfedea0SLionel Sambuc int 252ebfedea0SLionel Sambuc _hx509_lock_find_cert ( 253ebfedea0SLionel Sambuc hx509_lock /*lock*/, 254ebfedea0SLionel Sambuc const hx509_query */*q*/, 255ebfedea0SLionel Sambuc hx509_cert */*c*/); 256ebfedea0SLionel Sambuc 257ebfedea0SLionel Sambuc const struct _hx509_password * 258ebfedea0SLionel Sambuc _hx509_lock_get_passwords (hx509_lock /*lock*/); 259ebfedea0SLionel Sambuc 260ebfedea0SLionel Sambuc hx509_certs 261ebfedea0SLionel Sambuc _hx509_lock_unlock_certs (hx509_lock /*lock*/); 262ebfedea0SLionel Sambuc 263ebfedea0SLionel Sambuc struct hx_expr * 264ebfedea0SLionel Sambuc _hx509_make_expr ( 265ebfedea0SLionel Sambuc enum hx_expr_op /*op*/, 266ebfedea0SLionel Sambuc void */*arg1*/, 267ebfedea0SLionel Sambuc void */*arg2*/); 268ebfedea0SLionel Sambuc 269ebfedea0SLionel Sambuc int 270ebfedea0SLionel Sambuc _hx509_map_file_os ( 271ebfedea0SLionel Sambuc const char */*fn*/, 272ebfedea0SLionel Sambuc heim_octet_string */*os*/); 273ebfedea0SLionel Sambuc 274ebfedea0SLionel Sambuc int 275ebfedea0SLionel Sambuc _hx509_match_keys ( 276ebfedea0SLionel Sambuc hx509_cert /*c*/, 277ebfedea0SLionel Sambuc hx509_private_key /*key*/); 278ebfedea0SLionel Sambuc 279ebfedea0SLionel Sambuc int 280ebfedea0SLionel Sambuc _hx509_name_cmp ( 281ebfedea0SLionel Sambuc const Name */*n1*/, 282ebfedea0SLionel Sambuc const Name */*n2*/, 283ebfedea0SLionel Sambuc int */*c*/); 284ebfedea0SLionel Sambuc 285ebfedea0SLionel Sambuc int 286ebfedea0SLionel Sambuc _hx509_name_ds_cmp ( 287ebfedea0SLionel Sambuc const DirectoryString */*ds1*/, 288ebfedea0SLionel Sambuc const DirectoryString */*ds2*/, 289ebfedea0SLionel Sambuc int */*diff*/); 290ebfedea0SLionel Sambuc 291ebfedea0SLionel Sambuc int 292ebfedea0SLionel Sambuc _hx509_name_from_Name ( 293ebfedea0SLionel Sambuc const Name */*n*/, 294ebfedea0SLionel Sambuc hx509_name */*name*/); 295ebfedea0SLionel Sambuc 296ebfedea0SLionel Sambuc int 297ebfedea0SLionel Sambuc _hx509_name_modify ( 298ebfedea0SLionel Sambuc hx509_context /*context*/, 299ebfedea0SLionel Sambuc Name */*name*/, 300ebfedea0SLionel Sambuc int /*append*/, 301ebfedea0SLionel Sambuc const heim_oid */*oid*/, 302ebfedea0SLionel Sambuc const char */*str*/); 303ebfedea0SLionel Sambuc 304ebfedea0SLionel Sambuc int 305ebfedea0SLionel Sambuc _hx509_path_append ( 306ebfedea0SLionel Sambuc hx509_context /*context*/, 307ebfedea0SLionel Sambuc hx509_path */*path*/, 308ebfedea0SLionel Sambuc hx509_cert /*cert*/); 309ebfedea0SLionel Sambuc 310ebfedea0SLionel Sambuc void 311ebfedea0SLionel Sambuc _hx509_path_free (hx509_path */*path*/); 312ebfedea0SLionel Sambuc 313ebfedea0SLionel Sambuc int 314ebfedea0SLionel Sambuc _hx509_pbe_decrypt ( 315ebfedea0SLionel Sambuc hx509_context /*context*/, 316ebfedea0SLionel Sambuc hx509_lock /*lock*/, 317ebfedea0SLionel Sambuc const AlgorithmIdentifier */*ai*/, 318ebfedea0SLionel Sambuc const heim_octet_string */*econtent*/, 319ebfedea0SLionel Sambuc heim_octet_string */*content*/); 320ebfedea0SLionel Sambuc 321ebfedea0SLionel Sambuc int 322ebfedea0SLionel Sambuc _hx509_pbe_encrypt ( 323ebfedea0SLionel Sambuc hx509_context /*context*/, 324ebfedea0SLionel Sambuc hx509_lock /*lock*/, 325ebfedea0SLionel Sambuc const AlgorithmIdentifier */*ai*/, 326ebfedea0SLionel Sambuc const heim_octet_string */*content*/, 327ebfedea0SLionel Sambuc heim_octet_string */*econtent*/); 328ebfedea0SLionel Sambuc 329ebfedea0SLionel Sambuc void 330ebfedea0SLionel Sambuc _hx509_pi_printf ( 331ebfedea0SLionel Sambuc int (*/*func*/)(void *, const char *), 332ebfedea0SLionel Sambuc void */*ctx*/, 333ebfedea0SLionel Sambuc const char */*fmt*/, 334ebfedea0SLionel Sambuc ...); 335ebfedea0SLionel Sambuc 336ebfedea0SLionel Sambuc int 337ebfedea0SLionel Sambuc _hx509_private_key_export ( 338ebfedea0SLionel Sambuc hx509_context /*context*/, 339ebfedea0SLionel Sambuc const hx509_private_key /*key*/, 340ebfedea0SLionel Sambuc hx509_key_format_t /*format*/, 341ebfedea0SLionel Sambuc heim_octet_string */*data*/); 342ebfedea0SLionel Sambuc 343ebfedea0SLionel Sambuc int 344ebfedea0SLionel Sambuc _hx509_private_key_exportable (hx509_private_key /*key*/); 345ebfedea0SLionel Sambuc 346ebfedea0SLionel Sambuc BIGNUM * 347ebfedea0SLionel Sambuc _hx509_private_key_get_internal ( 348ebfedea0SLionel Sambuc hx509_context /*context*/, 349ebfedea0SLionel Sambuc hx509_private_key /*key*/, 350ebfedea0SLionel Sambuc const char */*type*/); 351ebfedea0SLionel Sambuc 352ebfedea0SLionel Sambuc int 353ebfedea0SLionel Sambuc _hx509_private_key_oid ( 354ebfedea0SLionel Sambuc hx509_context /*context*/, 355ebfedea0SLionel Sambuc const hx509_private_key /*key*/, 356ebfedea0SLionel Sambuc heim_oid */*data*/); 357ebfedea0SLionel Sambuc 358ebfedea0SLionel Sambuc hx509_private_key 359ebfedea0SLionel Sambuc _hx509_private_key_ref (hx509_private_key /*key*/); 360ebfedea0SLionel Sambuc 361ebfedea0SLionel Sambuc const char * 362ebfedea0SLionel Sambuc _hx509_private_pem_name (hx509_private_key /*key*/); 363ebfedea0SLionel Sambuc 364ebfedea0SLionel Sambuc int 365ebfedea0SLionel Sambuc _hx509_public_encrypt ( 366ebfedea0SLionel Sambuc hx509_context /*context*/, 367ebfedea0SLionel Sambuc const heim_octet_string */*cleartext*/, 368ebfedea0SLionel Sambuc const Certificate */*cert*/, 369ebfedea0SLionel Sambuc heim_oid */*encryption_oid*/, 370ebfedea0SLionel Sambuc heim_octet_string */*ciphertext*/); 371ebfedea0SLionel Sambuc 372ebfedea0SLionel Sambuc void 373ebfedea0SLionel Sambuc _hx509_query_clear (hx509_query */*q*/); 374ebfedea0SLionel Sambuc 375ebfedea0SLionel Sambuc int 376ebfedea0SLionel Sambuc _hx509_query_match_cert ( 377ebfedea0SLionel Sambuc hx509_context /*context*/, 378ebfedea0SLionel Sambuc const hx509_query */*q*/, 379ebfedea0SLionel Sambuc hx509_cert /*cert*/); 380ebfedea0SLionel Sambuc 381ebfedea0SLionel Sambuc void 382ebfedea0SLionel Sambuc _hx509_query_statistic ( 383ebfedea0SLionel Sambuc hx509_context /*context*/, 384ebfedea0SLionel Sambuc int /*type*/, 385ebfedea0SLionel Sambuc const hx509_query */*q*/); 386ebfedea0SLionel Sambuc 387ebfedea0SLionel Sambuc int 388ebfedea0SLionel Sambuc _hx509_request_add_dns_name ( 389ebfedea0SLionel Sambuc hx509_context /*context*/, 390ebfedea0SLionel Sambuc hx509_request /*req*/, 391ebfedea0SLionel Sambuc const char */*hostname*/); 392ebfedea0SLionel Sambuc 393ebfedea0SLionel Sambuc int 394ebfedea0SLionel Sambuc _hx509_request_add_eku ( 395ebfedea0SLionel Sambuc hx509_context /*context*/, 396ebfedea0SLionel Sambuc hx509_request /*req*/, 397ebfedea0SLionel Sambuc const heim_oid */*oid*/); 398ebfedea0SLionel Sambuc 399ebfedea0SLionel Sambuc int 400ebfedea0SLionel Sambuc _hx509_request_add_email ( 401ebfedea0SLionel Sambuc hx509_context /*context*/, 402ebfedea0SLionel Sambuc hx509_request /*req*/, 403ebfedea0SLionel Sambuc const char */*email*/); 404ebfedea0SLionel Sambuc 405ebfedea0SLionel Sambuc int 406ebfedea0SLionel Sambuc _hx509_request_parse ( 407ebfedea0SLionel Sambuc hx509_context /*context*/, 408ebfedea0SLionel Sambuc const char */*path*/, 409ebfedea0SLionel Sambuc hx509_request */*req*/); 410ebfedea0SLionel Sambuc 411ebfedea0SLionel Sambuc int 412ebfedea0SLionel Sambuc _hx509_request_print ( 413ebfedea0SLionel Sambuc hx509_context /*context*/, 414ebfedea0SLionel Sambuc hx509_request /*req*/, 415ebfedea0SLionel Sambuc FILE */*f*/); 416ebfedea0SLionel Sambuc 417ebfedea0SLionel Sambuc int 418ebfedea0SLionel Sambuc _hx509_request_to_pkcs10 ( 419ebfedea0SLionel Sambuc hx509_context /*context*/, 420ebfedea0SLionel Sambuc const hx509_request /*req*/, 421ebfedea0SLionel Sambuc const hx509_private_key /*signer*/, 422ebfedea0SLionel Sambuc heim_octet_string */*request*/); 423ebfedea0SLionel Sambuc 424ebfedea0SLionel Sambuc hx509_revoke_ctx 425ebfedea0SLionel Sambuc _hx509_revoke_ref (hx509_revoke_ctx /*ctx*/); 426ebfedea0SLionel Sambuc 427ebfedea0SLionel Sambuc void 428*0a6a1f1dSLionel Sambuc _hx509_sel_yyerror (const char */*s*/); 429ebfedea0SLionel Sambuc 430ebfedea0SLionel Sambuc int 431ebfedea0SLionel Sambuc _hx509_self_signed_valid ( 432ebfedea0SLionel Sambuc hx509_context /*context*/, 433ebfedea0SLionel Sambuc const AlgorithmIdentifier */*alg*/); 434ebfedea0SLionel Sambuc 435ebfedea0SLionel Sambuc int 436ebfedea0SLionel Sambuc _hx509_set_cert_attribute ( 437ebfedea0SLionel Sambuc hx509_context /*context*/, 438ebfedea0SLionel Sambuc hx509_cert /*cert*/, 439ebfedea0SLionel Sambuc const heim_oid */*oid*/, 440ebfedea0SLionel Sambuc const heim_octet_string */*attr*/); 441ebfedea0SLionel Sambuc 442ebfedea0SLionel Sambuc int 443ebfedea0SLionel Sambuc _hx509_signature_best_before ( 444ebfedea0SLionel Sambuc hx509_context /*context*/, 445ebfedea0SLionel Sambuc const AlgorithmIdentifier */*alg*/, 446ebfedea0SLionel Sambuc time_t /*t*/); 447ebfedea0SLionel Sambuc 448ebfedea0SLionel Sambuc void 449ebfedea0SLionel Sambuc _hx509_unmap_file_os (heim_octet_string */*os*/); 450ebfedea0SLionel Sambuc 451ebfedea0SLionel Sambuc int 452ebfedea0SLionel Sambuc _hx509_unparse_Name ( 453ebfedea0SLionel Sambuc const Name */*aname*/, 454ebfedea0SLionel Sambuc char **/*str*/); 455ebfedea0SLionel Sambuc 456ebfedea0SLionel Sambuc time_t 457ebfedea0SLionel Sambuc _hx509_verify_get_time (hx509_verify_ctx /*ctx*/); 458ebfedea0SLionel Sambuc 459ebfedea0SLionel Sambuc int 460ebfedea0SLionel Sambuc _hx509_verify_signature ( 461ebfedea0SLionel Sambuc hx509_context /*context*/, 462ebfedea0SLionel Sambuc const hx509_cert /*cert*/, 463ebfedea0SLionel Sambuc const AlgorithmIdentifier */*alg*/, 464ebfedea0SLionel Sambuc const heim_octet_string */*data*/, 465ebfedea0SLionel Sambuc const heim_octet_string */*sig*/); 466ebfedea0SLionel Sambuc 467ebfedea0SLionel Sambuc int 468ebfedea0SLionel Sambuc _hx509_verify_signature_bitstring ( 469ebfedea0SLionel Sambuc hx509_context /*context*/, 470ebfedea0SLionel Sambuc const hx509_cert /*signer*/, 471ebfedea0SLionel Sambuc const AlgorithmIdentifier */*alg*/, 472ebfedea0SLionel Sambuc const heim_octet_string */*data*/, 473ebfedea0SLionel Sambuc const heim_bit_string */*sig*/); 474ebfedea0SLionel Sambuc 475ebfedea0SLionel Sambuc int 476ebfedea0SLionel Sambuc _hx509_write_file ( 477ebfedea0SLionel Sambuc const char */*fn*/, 478ebfedea0SLionel Sambuc const void */*data*/, 479ebfedea0SLionel Sambuc size_t /*length*/); 480ebfedea0SLionel Sambuc 481ebfedea0SLionel Sambuc #endif /* __hx509_private_h__ */ 482