tbs 148 source4/heimdal/kdc/kx509.c hx509_ca_tbs tbs = NULL; tbs 198 source4/heimdal/kdc/kx509.c ret = hx509_ca_tbs_init(hxctx, &tbs); tbs 218 source4/heimdal/kdc/kx509.c ret = hx509_ca_tbs_set_spki(hxctx, tbs, &spki); tbs 242 source4/heimdal/kdc/kx509.c ret = hx509_ca_tbs_set_template(hxctx, tbs, tbs 252 source4/heimdal/kdc/kx509.c hx509_ca_tbs_set_notAfter(hxctx, tbs, endtime); tbs 254 source4/heimdal/kdc/kx509.c hx509_ca_tbs_subject_expand(hxctx, tbs, env); tbs 257 source4/heimdal/kdc/kx509.c ret = hx509_ca_sign(hxctx, tbs, signer, &cert); tbs 262 source4/heimdal/kdc/kx509.c hx509_ca_tbs_free(&tbs); tbs 275 source4/heimdal/kdc/kx509.c if (tbs) tbs 276 source4/heimdal/kdc/kx509.c hx509_ca_tbs_free(&tbs); tbs 78 source4/heimdal/lib/hx509/ca.c hx509_ca_tbs_init(hx509_context context, hx509_ca_tbs *tbs) tbs 80 source4/heimdal/lib/hx509/ca.c *tbs = calloc(1, sizeof(**tbs)); tbs 81 source4/heimdal/lib/hx509/ca.c if (*tbs == NULL) tbs 84 source4/heimdal/lib/hx509/ca.c (*tbs)->subject = NULL; tbs 85 source4/heimdal/lib/hx509/ca.c (*tbs)->san.len = 0; tbs 86 source4/heimdal/lib/hx509/ca.c (*tbs)->san.val = NULL; tbs 87 source4/heimdal/lib/hx509/ca.c (*tbs)->eku.len = 0; tbs 88 source4/heimdal/lib/hx509/ca.c (*tbs)->eku.val = NULL; tbs 89 source4/heimdal/lib/hx509/ca.c (*tbs)->pathLenConstraint = 0; tbs 90 source4/heimdal/lib/hx509/ca.c (*tbs)->crldp.len = 0; tbs 91 source4/heimdal/lib/hx509/ca.c (*tbs)->crldp.val = NULL; tbs 105 source4/heimdal/lib/hx509/ca.c hx509_ca_tbs_free(hx509_ca_tbs *tbs) tbs 107 source4/heimdal/lib/hx509/ca.c if (tbs == NULL || *tbs == NULL) tbs 110 source4/heimdal/lib/hx509/ca.c free_SubjectPublicKeyInfo(&(*tbs)->spki); tbs 111 source4/heimdal/lib/hx509/ca.c free_GeneralNames(&(*tbs)->san); tbs 112 source4/heimdal/lib/hx509/ca.c free_ExtKeyUsage(&(*tbs)->eku); tbs 113 source4/heimdal/lib/hx509/ca.c der_free_heim_integer(&(*tbs)->serial); tbs 114 source4/heimdal/lib/hx509/ca.c free_CRLDistributionPoints(&(*tbs)->crldp); tbs 116 source4/heimdal/lib/hx509/ca.c hx509_name_free(&(*tbs)->subject); tbs 118 source4/heimdal/lib/hx509/ca.c memset(*tbs, 0, sizeof(**tbs)); tbs 119 source4/heimdal/lib/hx509/ca.c free(*tbs); tbs 120 source4/heimdal/lib/hx509/ca.c *tbs = NULL; tbs 138 source4/heimdal/lib/hx509/ca.c hx509_ca_tbs tbs, tbs 141 source4/heimdal/lib/hx509/ca.c tbs->notBefore = t; tbs 159 source4/heimdal/lib/hx509/ca.c hx509_ca_tbs tbs, tbs 162 source4/heimdal/lib/hx509/ca.c tbs->notAfter = t; tbs 180 source4/heimdal/lib/hx509/ca.c hx509_ca_tbs tbs, tbs 183 source4/heimdal/lib/hx509/ca.c return hx509_ca_tbs_set_notAfter(context, tbs, time(NULL) + delta); tbs 228 source4/heimdal/lib/hx509/ca.c hx509_ca_tbs tbs, tbs 235 source4/heimdal/lib/hx509/ca.c if (tbs->subject) tbs 236 source4/heimdal/lib/hx509/ca.c hx509_name_free(&tbs->subject); tbs 237 source4/heimdal/lib/hx509/ca.c ret = hx509_cert_get_subject(cert, &tbs->subject); tbs 245 source4/heimdal/lib/hx509/ca.c der_free_heim_integer(&tbs->serial); tbs 246 source4/heimdal/lib/hx509/ca.c ret = hx509_cert_get_serialnumber(cert, &tbs->serial); tbs 247 source4/heimdal/lib/hx509/ca.c tbs->flags.serial = !ret; tbs 255 source4/heimdal/lib/hx509/ca.c tbs->notBefore = hx509_cert_get_notBefore(cert); tbs 257 source4/heimdal/lib/hx509/ca.c tbs->notAfter = hx509_cert_get_notAfter(cert); tbs 259 source4/heimdal/lib/hx509/ca.c free_SubjectPublicKeyInfo(&tbs->spki); tbs 260 source4/heimdal/lib/hx509/ca.c ret = hx509_cert_get_SPKI(context, cert, &tbs->spki); tbs 261 source4/heimdal/lib/hx509/ca.c tbs->flags.key = !ret; tbs 270 source4/heimdal/lib/hx509/ca.c tbs->key_usage = KeyUsage2int(ku); tbs 279 source4/heimdal/lib/hx509/ca.c ret = hx509_ca_tbs_add_eku(context, tbs, &eku.val[i]); tbs 306 source4/heimdal/lib/hx509/ca.c hx509_ca_tbs tbs, tbs 309 source4/heimdal/lib/hx509/ca.c tbs->flags.ca = 1; tbs 310 source4/heimdal/lib/hx509/ca.c tbs->pathLenConstraint = pathLenConstraint; tbs 330 source4/heimdal/lib/hx509/ca.c hx509_ca_tbs tbs, tbs 333 source4/heimdal/lib/hx509/ca.c tbs->flags.proxy = 1; tbs 334 source4/heimdal/lib/hx509/ca.c tbs->pathLenConstraint = pathLenConstraint; tbs 352 source4/heimdal/lib/hx509/ca.c hx509_ca_tbs tbs) tbs 354 source4/heimdal/lib/hx509/ca.c tbs->flags.domaincontroller = 1; tbs 374 source4/heimdal/lib/hx509/ca.c hx509_ca_tbs tbs, tbs 378 source4/heimdal/lib/hx509/ca.c free_SubjectPublicKeyInfo(&tbs->spki); tbs 379 source4/heimdal/lib/hx509/ca.c ret = copy_SubjectPublicKeyInfo(spki, &tbs->spki); tbs 380 source4/heimdal/lib/hx509/ca.c tbs->flags.key = !ret; tbs 399 source4/heimdal/lib/hx509/ca.c hx509_ca_tbs tbs, tbs 403 source4/heimdal/lib/hx509/ca.c der_free_heim_integer(&tbs->serial); tbs 404 source4/heimdal/lib/hx509/ca.c ret = der_copy_heim_integer(serialNumber, &tbs->serial); tbs 405 source4/heimdal/lib/hx509/ca.c tbs->flags.serial = !ret; tbs 424 source4/heimdal/lib/hx509/ca.c hx509_ca_tbs tbs, tbs 432 source4/heimdal/lib/hx509/ca.c for (i = 0; i < tbs->eku.len; i++) { tbs 433 source4/heimdal/lib/hx509/ca.c if (der_heim_oid_cmp(oid, &tbs->eku.val[i]) == 0) tbs 437 source4/heimdal/lib/hx509/ca.c ptr = realloc(tbs->eku.val, sizeof(tbs->eku.val[0]) * (tbs->eku.len + 1)); tbs 442 source4/heimdal/lib/hx509/ca.c tbs->eku.val = ptr; tbs 443 source4/heimdal/lib/hx509/ca.c ret = der_copy_oid(oid, &tbs->eku.val[tbs->eku.len]); tbs 448 source4/heimdal/lib/hx509/ca.c tbs->eku.len += 1; tbs 468 source4/heimdal/lib/hx509/ca.c hx509_ca_tbs tbs, tbs 544 source4/heimdal/lib/hx509/ca.c ret = add_CRLDistributionPoints(&tbs->crldp, &dp); tbs 572 source4/heimdal/lib/hx509/ca.c hx509_ca_tbs tbs, tbs 583 source4/heimdal/lib/hx509/ca.c return add_GeneralNames(&tbs->san, &gn); tbs 601 source4/heimdal/lib/hx509/ca.c hx509_ca_tbs tbs, tbs 674 source4/heimdal/lib/hx509/ca.c tbs, tbs 692 source4/heimdal/lib/hx509/ca.c hx509_ca_tbs tbs, tbs 713 source4/heimdal/lib/hx509/ca.c tbs, tbs 736 source4/heimdal/lib/hx509/ca.c hx509_ca_tbs tbs, tbs 739 source4/heimdal/lib/hx509/ca.c return add_utf8_san(context, tbs, oid_id_pkinit_ms_san(), principal); tbs 757 source4/heimdal/lib/hx509/ca.c hx509_ca_tbs tbs, tbs 760 source4/heimdal/lib/hx509/ca.c return add_utf8_san(context, tbs, oid_id_pkix_on_xmppAddr(), jid); tbs 782 source4/heimdal/lib/hx509/ca.c hx509_ca_tbs tbs, tbs 791 source4/heimdal/lib/hx509/ca.c return add_GeneralNames(&tbs->san, &gn); tbs 809 source4/heimdal/lib/hx509/ca.c hx509_ca_tbs tbs, tbs 818 source4/heimdal/lib/hx509/ca.c return add_GeneralNames(&tbs->san, &gn); tbs 835 source4/heimdal/lib/hx509/ca.c hx509_ca_tbs tbs, tbs 838 source4/heimdal/lib/hx509/ca.c if (tbs->subject) tbs 839 source4/heimdal/lib/hx509/ca.c hx509_name_free(&tbs->subject); tbs 840 source4/heimdal/lib/hx509/ca.c return hx509_name_copy(context, subject, &tbs->subject); tbs 859 source4/heimdal/lib/hx509/ca.c hx509_ca_tbs tbs, tbs 862 source4/heimdal/lib/hx509/ca.c return hx509_name_expand(context, tbs->subject, env); tbs 938 source4/heimdal/lib/hx509/ca.c hx509_ca_tbs tbs, tbs 963 source4/heimdal/lib/hx509/ca.c notBefore = tbs->notBefore; tbs 966 source4/heimdal/lib/hx509/ca.c notAfter = tbs->notAfter; tbs 970 source4/heimdal/lib/hx509/ca.c key_usage = tbs->key_usage; tbs 979 source4/heimdal/lib/hx509/ca.c if (tbs->flags.ca) { tbs 993 source4/heimdal/lib/hx509/ca.c if (tbs->flags.key == 0) { tbs 1002 source4/heimdal/lib/hx509/ca.c if (!tbs->flags.proxy) { tbs 1003 source4/heimdal/lib/hx509/ca.c if (tbs->subject == NULL) { tbs 1007 source4/heimdal/lib/hx509/ca.c if (hx509_name_is_null_p(tbs->subject) && tbs->san.len == 0) { tbs 1013 source4/heimdal/lib/hx509/ca.c if (tbs->flags.ca && tbs->flags.proxy) { tbs 1018 source4/heimdal/lib/hx509/ca.c if (tbs->flags.proxy) { tbs 1019 source4/heimdal/lib/hx509/ca.c if (tbs->san.len > 0) { tbs 1036 source4/heimdal/lib/hx509/ca.c if (tbs->flags.serial) { tbs 1037 source4/heimdal/lib/hx509/ca.c ret = der_copy_heim_integer(&tbs->serial, &tbsc->serialNumber); tbs 1064 source4/heimdal/lib/hx509/ca.c ret = hx509_name_to_Name(tbs->subject, &tbsc->issuer); tbs 1075 source4/heimdal/lib/hx509/ca.c if (tbs->flags.proxy) { tbs 1080 source4/heimdal/lib/hx509/ca.c ret = hx509_name_to_Name(tbs->subject, &tbsc->subject); tbs 1088 source4/heimdal/lib/hx509/ca.c ret = copy_SubjectPublicKeyInfo(&tbs->spki, &tbsc->subjectPublicKeyInfo); tbs 1104 source4/heimdal/lib/hx509/ca.c if (tbs->flags.domaincontroller) { tbs 1139 source4/heimdal/lib/hx509/ca.c if (tbs->eku.len > 0) { tbs 1141 source4/heimdal/lib/hx509/ca.c &tbs->eku, &size, ret); tbs 1156 source4/heimdal/lib/hx509/ca.c if (tbs->san.len > 0) { tbs 1158 source4/heimdal/lib/hx509/ca.c &tbs->san, &size, ret); tbs 1200 source4/heimdal/lib/hx509/ca.c SHA1_Update(&m, tbs->spki.subjectPublicKey.data, tbs 1201 source4/heimdal/lib/hx509/ca.c tbs->spki.subjectPublicKey.length / 8); tbs 1232 source4/heimdal/lib/hx509/ca.c if (tbs->flags.ca) { tbs 1234 source4/heimdal/lib/hx509/ca.c if (tbs->pathLenConstraint >= 0) { tbs 1235 source4/heimdal/lib/hx509/ca.c path = tbs->pathLenConstraint; tbs 1249 source4/heimdal/lib/hx509/ca.c ret = add_extension(context, tbsc, tbs->flags.ca, tbs 1258 source4/heimdal/lib/hx509/ca.c if (tbs->flags.proxy) { tbs 1263 source4/heimdal/lib/hx509/ca.c if (tbs->pathLenConstraint >= 0) { tbs 1271 source4/heimdal/lib/hx509/ca.c *info.pCPathLenConstraint = tbs->pathLenConstraint; tbs 1299 source4/heimdal/lib/hx509/ca.c if (tbs->crldp.len) { tbs 1302 source4/heimdal/lib/hx509/ca.c &tbs->crldp, &size, ret); tbs 1464 source4/heimdal/lib/hx509/ca.c hx509_ca_tbs tbs, tbs 1481 source4/heimdal/lib/hx509/ca.c tbs, tbs 1508 source4/heimdal/lib/hx509/ca.c hx509_ca_tbs tbs, tbs 1513 source4/heimdal/lib/hx509/ca.c tbs,