Lines Matching refs:dpn
294 DIST_POINT_NAME *dpn = (DIST_POINT_NAME *)*pval; in dpn_cb() local
298 dpn->dpname = NULL; in dpn_cb()
302 X509_NAME_free(dpn->dpname); in dpn_cb()
419 static int print_distpoint(BIO *out, DIST_POINT_NAME *dpn, int indent) in print_distpoint() argument
421 if (dpn->type == 0) { in print_distpoint()
423 print_gens(out, dpn->name.fullname, indent); in print_distpoint()
426 ntmp.entries = dpn->name.relativename; in print_distpoint()
481 int DIST_POINT_set_dpname(DIST_POINT_NAME *dpn, const X509_NAME *iname) in DIST_POINT_set_dpname() argument
487 if (dpn == NULL || dpn->type != 1) in DIST_POINT_set_dpname()
489 frag = dpn->name.relativename; in DIST_POINT_set_dpname()
490 X509_NAME_free(dpn->dpname); /* just in case it was already set */ in DIST_POINT_set_dpname()
491 dpn->dpname = X509_NAME_dup(iname); in DIST_POINT_set_dpname()
492 if (dpn->dpname == NULL) in DIST_POINT_set_dpname()
496 if (!X509_NAME_add_entry(dpn->dpname, ne, -1, i ? 0 : 1)) in DIST_POINT_set_dpname()
500 if (i2d_X509_NAME(dpn->dpname, NULL) >= 0) in DIST_POINT_set_dpname()
504 X509_NAME_free(dpn->dpname); in DIST_POINT_set_dpname()
505 dpn->dpname = NULL; in DIST_POINT_set_dpname()