• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/crypto/heimdal/lib/hx509/

Lines Matching refs:context

71  * @param context A hx509 context.
81 hx509_ca_tbs_init(hx509_context context, hx509_ca_tbs *tbs)
122 * @param context A hx509 context.
132 hx509_ca_tbs_set_notBefore(hx509_context context,
143 * @param context A hx509 context.
153 hx509_ca_tbs_set_notAfter(hx509_context context,
164 * @param context A hx509 context.
174 hx509_ca_tbs_set_notAfter_lifetime(hx509_context context,
178 return hx509_ca_tbs_set_notAfter(context, tbs, time(NULL) + delta);
210 * @param context A hx509 context.
222 hx509_ca_tbs_set_template(hx509_context context,
234 hx509_set_error_string(context, 0, ret,
244 hx509_set_error_string(context, 0, ret,
255 ret = hx509_cert_get_SPKI(context, cert, &tbs->spki);
262 ret = _hx509_cert_get_keyusage(context, cert, &ku);
270 ret = _hx509_cert_get_eku(context, cert, &eku);
274 ret = hx509_ca_tbs_add_eku(context, tbs, &eku.val[i]);
289 * @param context A hx509 context.
300 hx509_ca_tbs_set_ca(hx509_context context,
313 * @param context A hx509 context.
324 hx509_ca_tbs_set_proxy(hx509_context context,
337 * @param context A hx509 context.
346 hx509_ca_tbs_set_domaincontroller(hx509_context context,
358 * @param context A hx509 context.
368 hx509_ca_tbs_set_spki(hx509_context context,
382 * @param context A hx509 context.
393 hx509_ca_tbs_set_serialnumber(hx509_context context,
408 * @param context A hx509 context.
418 hx509_ca_tbs_add_eku(hx509_context context,
434 hx509_set_error_string(context, 0, ENOMEM, "out of memory");
440 hx509_set_error_string(context, 0, ret, "out of memory");
451 * @param context A hx509 context.
462 hx509_ca_tbs_add_crl_dp_uri(hx509_context context,
492 hx509_set_error_string(context, 0, ret,
505 hx509_set_error_string(context, 0, EINVAL,
522 hx509_set_error_string(context, 0, ret, "out of memory");
532 hx509_set_error_string(context, 0, ret, "out of memory");
542 hx509_set_error_string(context, 0, ret, "out of memory");
556 * @param context A hx509 context.
567 hx509_ca_tbs_add_san_otherName(hx509_context context,
586 * @param context A hx509 context.
596 hx509_ca_tbs_add_san_pkinit(hx509_context context,
620 hx509_set_error_string(context, 0, ret,
632 hx509_set_error_string(context, 0, ret, "malloc: out of memory");
641 hx509_set_error_string(context, 0, ret, "malloc: out of memory");
647 hx509_set_error_string(context, 0, ret, "Missing @ in principal");
663 hx509_set_error_string(context, 0, ret, "Out of memory");
669 ret = hx509_ca_tbs_add_san_otherName(context,
687 add_utf8_san(hx509_context context,
702 hx509_set_error_string(context, 0, ret, "Out of memory");
708 ret = hx509_ca_tbs_add_san_otherName(context,
721 * @param context A hx509 context.
731 hx509_ca_tbs_add_san_ms_upn(hx509_context context,
735 return add_utf8_san(context, tbs, &asn1_oid_id_pkinit_ms_san, principal);
742 * @param context A hx509 context.
752 hx509_ca_tbs_add_san_jid(hx509_context context,
756 return add_utf8_san(context, tbs, &asn1_oid_id_pkix_on_xmppAddr, jid);
767 * @param context A hx509 context.
777 hx509_ca_tbs_add_san_hostname(hx509_context context,
795 * @param context A hx509 context.
805 hx509_ca_tbs_add_san_rfc822name(hx509_context context,
822 * @param context A hx509 context.
832 hx509_ca_tbs_set_subject(hx509_context context,
838 return hx509_name_copy(context, subject, &tbs->subject);
849 * @param context A hx509 context.
860 hx509_ca_tbs_set_unique(hx509_context context,
889 * @param context A hx509 context.
900 hx509_ca_tbs_subject_expand(hx509_context context,
904 return hx509_name_expand(context, tbs->subject, env);
912 add_extension(hx509_context context,
927 hx509_set_error_string(context, 0, ret, "Out of memory");
935 hx509_set_error_string(context, 0, ret, "Out of memory");
940 hx509_set_error_string(context, 0, ret, "Out of memory");
945 hx509_set_error_string(context, 0, ret, "Out of memory");
954 build_proxy_prefix(hx509_context context, const Name *issuer, Name *subject)
962 hx509_set_error_string(context, 0, ret,
970 hx509_set_error_string(context, 0, ENOMEM,
975 ret = _hx509_name_modify(context, subject, 1, &asn1_oid_id_at_commonName, tstr);
983 ca_sign(hx509_context context,
1041 hx509_set_error_string(context, 0, ret, "No public key set");
1050 hx509_set_error_string(context, 0, EINVAL, "No subject name set");
1054 hx509_set_error_string(context, 0, EINVAL,
1060 hx509_set_error_string(context, 0, EINVAL, "Can't be proxy and CA "
1066 hx509_set_error_string(context, 0, EINVAL,
1077 hx509_set_error_string(context, 0, ret, "Out of memory");
1085 hx509_set_error_string(context, 0, ret, "Out of memory");
1093 hx509_set_error_string(context, 0, ret, "Out of memory");
1103 hx509_set_error_string(context, 0, ret, "Failed to copy sigature alg");
1112 hx509_set_error_string(context, 0, ret, "Failed to copy issuer name");
1122 ret = build_proxy_prefix(context, &tbsc->issuer, &tbsc->subject);
1128 hx509_set_error_string(context, 0, ret,
1136 hx509_set_error_string(context, 0, ret, "Failed to copy spki");
1144 hx509_set_error_string(context, 0, ret, "Out of memory");
1149 hx509_set_error_string(context, 0, ret, "Out of memory");
1158 hx509_set_error_string(context, 0, ret, "Out of memory");
1164 hx509_set_error_string(context, 0, ret, "Out of memory");
1173 hx509_set_error_string(context, 0, ret, "Out of memory");
1186 ret = add_extension(context, tbsc, 0,
1200 hx509_set_error_string(context, 0, ret, "Out of memory");
1205 ret = add_extension(context, tbsc, 1,
1217 hx509_set_error_string(context, 0, ret, "Out of memory");
1222 ret = add_extension(context, tbsc, 0,
1234 hx509_set_error_string(context, 0, ret, "Out of memory");
1239 ret = add_extension(context, tbsc, 0,
1252 hx509_set_error_string(context, 0, ret, "Out of memory");
1257 ret = add_extension(context, tbsc, 0,
1287 hx509_set_error_string(context, 0, ret, "Out of memory");
1292 ret = add_extension(context, tbsc, 0,
1319 hx509_set_error_string(context, 0, ret, "Out of memory");
1325 ret = add_extension(context, tbsc, tbs->flags.ca,
1344 hx509_set_error_string(context, 0, ret, "Out of memory");
1354 hx509_set_error_string(context, 0, ret, "Out of memory");
1362 hx509_set_error_string(context, 0, ret, "Out of memory");
1367 ret = add_extension(context, tbsc, 0,
1380 hx509_set_error_string(context, 0, ret, "Out of memory");
1385 ret = add_extension(context, tbsc, FALSE,
1395 hx509_set_error_string(context, 0, ret, "malloc out of memory");
1401 ret = _hx509_create_signature_bitstring(context,
1411 ret = hx509_cert_init(context, &c, certificate);
1425 get_AuthorityKeyIdentifier(hx509_context context,
1438 hx509_set_error_string(context, 0, ret, "Out of memory");
1444 hx509_set_error_string(context, 0, ret, "Out of memory");
1460 hx509_set_error_string(context, 0, ret, "Out of memory");
1467 hx509_set_error_string(context, 0, ret, "Out of memory");
1479 hx509_set_error_string(context, 0, ret, "Out of memory");
1491 hx509_set_error_string(context, 0, ret, "Out of memory");
1502 hx509_set_error_string(context, 0, ret, "Out of memory");
1527 * @param context A hx509 context.
1538 hx509_ca_sign(hx509_context context,
1551 ret = get_AuthorityKeyIdentifier(context, signer_cert, &ai);
1555 ret = ca_sign(context,
1571 * @param context A hx509 context.
1582 hx509_ca_sign_self(hx509_context context,
1587 return ca_sign(context,