Lines Matching refs:dpn
308 DIST_POINT_NAME *dpn = (DIST_POINT_NAME *)*pval; in dpn_cb() local
312 dpn->dpname = NULL; in dpn_cb()
316 X509_NAME_free(dpn->dpname); in dpn_cb()
422 static int print_distpoint(BIO *out, DIST_POINT_NAME *dpn, int indent) in print_distpoint() argument
424 if (dpn->type == 0) { in print_distpoint()
426 OSSL_GENERAL_NAMES_print(out, dpn->name.fullname, indent); in print_distpoint()
430 ntmp.entries = dpn->name.relativename; in print_distpoint()
485 int DIST_POINT_set_dpname(DIST_POINT_NAME *dpn, const X509_NAME *iname) in DIST_POINT_set_dpname() argument
491 if (dpn == NULL || dpn->type != 1) in DIST_POINT_set_dpname()
493 frag = dpn->name.relativename; in DIST_POINT_set_dpname()
494 X509_NAME_free(dpn->dpname); /* just in case it was already set */ in DIST_POINT_set_dpname()
495 dpn->dpname = X509_NAME_dup(iname); in DIST_POINT_set_dpname()
496 if (dpn->dpname == NULL) in DIST_POINT_set_dpname()
500 if (!X509_NAME_add_entry(dpn->dpname, ne, -1, i ? 0 : 1)) in DIST_POINT_set_dpname()
504 if (i2d_X509_NAME(dpn->dpname, NULL) >= 0) in DIST_POINT_set_dpname()
508 X509_NAME_free(dpn->dpname); in DIST_POINT_set_dpname()
509 dpn->dpname = NULL; in DIST_POINT_set_dpname()