Lines Matching refs:ekus
1212 addToEKUList(EKU_LIST *ekus, int critical, KMF_OID *newoid)
1214 if (newoid != NULL && ekus != NULL) {
1215 ekus->eku_count++;
1217 ekus->critlist = realloc(ekus->critlist,
1218 ekus->eku_count * sizeof (int));
1219 if (ekus->critlist != NULL)
1220 ekus->critlist[ekus->eku_count-1] = critical;
1224 ekus->ekulist = realloc(
1225 ekus->ekulist, ekus->eku_count * sizeof (KMF_OID));
1226 if (ekus->ekulist != NULL)
1227 ekus->ekulist[ekus->eku_count-1] = *newoid;
1235 free_eku_list(EKU_LIST *ekus)
1237 if (ekus != NULL && ekus->eku_count > 0) {
1239 for (i = 0; i < ekus->eku_count; i++) {
1240 kmf_free_data(&ekus->ekulist[i]);
1242 free(ekus->ekulist);
1243 free(ekus->critlist);
1244 free(ekus);
1249 parse_ekus(char *ekustr, EKU_LIST *ekus)
1264 rv = addToEKUList(ekus, critical, newoid);
1278 EKU_LIST *ekus = NULL;
1283 ekus = calloc(sizeof (EKU_LIST), 1);
1284 if (ekus == NULL)
1294 rv = parse_ekus(ekuliststr, ekus);
1298 rv = parse_ekus(p, ekus);
1306 free_eku_list(ekus);
1308 *ekulist = ekus;