Lines Matching refs:context
69 keyBag_parser(hx509_context context,
87 _hx509_collector_private_key_add(context,
98 ShroudedKeyBag_parser(hx509_context context,
113 ret = _hx509_pbe_decrypt(context,
122 ret = keyBag_parser(context, c, content.data, content.length, attrs);
128 certBag_parser(hx509_context context,
155 ret = hx509_cert_init_data(context, os.data, os.length, &cert);
160 ret = _hx509_collector_certs_add(context, c, cert);
177 _hx509_set_cert_attribute(context, cert, oid,
188 parse_safe_content(hx509_context context,
203 parse_pkcs12_type(context,
215 safeContent_parser(hx509_context context,
226 ret = parse_safe_content(context, c, os.data, os.length);
232 encryptedData_parser(hx509_context context,
243 ret = hx509_cms_decrypt_encrypted(context,
252 ret = parse_safe_content(context, c, content.data, content.length);
260 envelopedData_parser(hx509_context context,
274 ret = hx509_cms_unenvelope(context,
283 hx509_set_error_string(context, HX509_ERROR_APPEND, ret,
289 ret = parse_safe_content(context, c, content.data, content.length);
308 parse_pkcs12_type(hx509_context context,
318 (*bagtypes[i].func)(context, c, data, length, attrs);
322 p12_init(hx509_context context,
340 ret = _hx509_collector_alloc(context, lock, &c);
347 hx509_set_error_string(context, 0, ret, "out of memory");
354 hx509_set_error_string(context, 0, ret, "out of memory");
359 ret = hx509_certs_init(context, "MEMORY:ks-file-create",
368 hx509_clear_error_string(context);
375 hx509_set_error_string(context, 0, ret,
383 hx509_set_error_string(context, 0, ret,
391 hx509_set_error_string(context, 0, ret,
405 hx509_clear_error_string(context);
414 hx509_clear_error_string(context);
420 parse_pkcs12_type(context,
429 ret = _hx509_collector_collect_certs(context, c, &p12->certs);
448 addBag(hx509_context context,
459 hx509_set_error_string(context, 0, ENOMEM, "out of memory");
466 hx509_set_error_string(context, 0, ret, "out of memory");
473 hx509_set_error_string(context, 0, ENOMEM, "malloc out of memory");
486 store_func(hx509_context context, void *ctx, hx509_cert c)
500 ret = hx509_cert_binary(context, c, &os);
521 ret = addBag(context, as, &asn1_oid_id_pkcs12_certBag, os.data, os.length);
532 ret = _hx509_private_key_oid(context, key,
538 ret = _hx509_private_key_export(context,
554 ret = addBag(context, as, &asn1_oid_id_pkcs12_keyBag, os.data, os.length);
564 p12_store(hx509_context context,
577 ret = hx509_certs_iter_f(context, p12->certs, store_func, &as);
620 hx509_set_error_string(context, 0, ret, "malloc out of memory");
653 p12_add(hx509_context context, hx509_certs certs, void *data, hx509_cert c)
656 return hx509_certs_add(context, p12->certs, c);
660 p12_iter_start(hx509_context context,
666 return hx509_certs_start_seq(context, p12->certs, cursor);
670 p12_iter(hx509_context context,
677 return hx509_certs_next_cert(context, p12->certs, cursor, cert);
681 p12_iter_end(hx509_context context,
687 return hx509_certs_end_seq(context, p12->certs, cursor);
704 _hx509_ks_pkcs12_register(hx509_context context)
706 _hx509_ks_register(context, &keyset_pkcs12);