Lines Matching refs:plc
38 show_policy(KMF_POLICY_RECORD *plc)
41 if (plc == NULL)
44 (void) printf("Name: %s\n", plc->name);
47 plc->ignore_date ? gettext("true") : gettext("false"));
50 plc->ignore_unknown_ekus ? gettext("true") : gettext("false"));
53 plc->ignore_trust_anchor ? gettext("true") : gettext("false"));
56 plc->validity_adjusttime ? plc->validity_adjusttime : "<null>");
58 if (plc->ta_name == NULL && plc->ta_serial == NULL) {
60 } else if (strcasecmp(plc->ta_name, "search") == 0) {
66 plc->ta_name ? plc->ta_name : "<null>");
68 plc->ta_serial ? plc->ta_serial : "<null>");
71 if (plc->ku_bits != 0) {
75 (plc->ku_bits & (1<<i)));
85 if (plc->eku_set.eku_count > 0) {
87 for (i = 0; i < plc->eku_set.eku_count; i++) {
89 &plc->eku_set.ekulist[i]);
91 kmf_oid_to_string(&plc->eku_set.ekulist[i]),
100 if (plc->revocation & KMF_REVOCATION_METHOD_OCSP) {
104 plc->VAL_OCSP_BASIC.responderURI ?
105 plc->VAL_OCSP_BASIC.responderURI : "<null>");
108 plc->VAL_OCSP_BASIC.proxy ?
109 plc->VAL_OCSP_BASIC.proxy : "<null>");
112 "%s\n"), plc->VAL_OCSP_BASIC.uri_from_cert ?
116 plc->VAL_OCSP_BASIC.response_lifetime ?
117 plc->VAL_OCSP_BASIC.response_lifetime : "<null>");
120 plc->VAL_OCSP_BASIC.ignore_response_sign ?
123 if (!plc->VAL_OCSP.has_resp_cert) {
129 plc->VAL_OCSP_RESP_CERT.name ?
130 plc->VAL_OCSP_RESP_CERT.name : "<null>");
132 plc->VAL_OCSP_RESP_CERT.serial ?
133 plc->VAL_OCSP_RESP_CERT.serial : "<null>");
137 if (plc->revocation & KMF_REVOCATION_METHOD_CRL) {
141 plc->validation_info.crl_info.basefilename ?
142 plc->validation_info.crl_info.basefilename : "<null>");
145 plc->validation_info.crl_info.directory ?
146 plc->validation_info.crl_info.directory : "<null>");
149 plc->validation_info.crl_info.get_crl_uri ?
153 plc->validation_info.crl_info.proxy ?
154 plc->validation_info.crl_info.proxy : "<null>");
157 plc->validation_info.crl_info.ignore_crl_sign ?
161 plc->validation_info.crl_info.ignore_crl_date ?
165 plc->mapper.mapname ? plc->mapper.mapname : "<null>");
167 plc->mapper.pathname ? plc->mapper.pathname : "<null>");
169 plc->mapper.dir ? plc->mapper.dir : "<null>");
171 plc->mapper.options ? plc->mapper.options : "<null>");
307 strcmp(policyname, pnode->plc.name) == 0) {
308 KMF_POLICY_RECORD *plc = &pnode->plc;
311 rv = kmf_verify_policy(plc);
315 plc->name);
318 show_policy(&pnode->plc);