Lines Matching refs:dkp

65 static	void	printkeyinfo (const dki_t *dkp, const char *oldpath);
67 static void printkeyinfo (const dki_t *dkp, const char *oldpath)
71 if ( dkp == NULL ) /* print headline */
94 /* if ( pathflag && dkp->dname && strcmp (oldpath, dkp->dname) != 0 ) */
95 if ( pathflag && strcmp (oldpath, dkp->dname) != 0 )
96 printf ("%s/\n", dkp->dname);
98 if ( (kskflag && dki_isksk (dkp)) || (zskflag && !dki_isksk (dkp)) )
103 printf ("%-33.33s ", dkp->name);
105 printf ("%33.33s ", dkp->name);
106 printf ("%05d ", dkp->tag);
107 printf ("%3s ", dki_isksk (dkp) ? "KSK" : "ZSK");
109 if ( dkp->status == DKI_ACT )
111 else if ( dkp->status == DKI_PUB )
113 else if ( dkp->status == DKI_DEP )
118 printf ("%-3.3s ", dki_statusstr (dkp) );
121 printf ("%-7s", dki_algo2sstr(dkp->algo));
123 if ( currtime < dkp->time + dkp->lifetime )
130 printf (" %-20s", time2str (dkp->gentime ? dkp->gentime: dkp->time, 's'));
132 printf (" %-20s", time2str (dkp->exptime, 's'));
134 printf (" %16s", age2str (dki_age (dkp, currtime)));
135 if ( lifetimeflag && dkp->lifetime )
137 if ( dkp->status == 'a' )
138 printf ("%c", (currtime < dkp->time + dkp->lifetime) ? '<' : '!');
141 printf ("%hdd", dki_lifetimedays (dkp));
151 const dki_t *dkp;
156 //fprintf (stderr, "listkey %d %d %s\n", which, depth, dkp->name);
160 dkp = *nodep;
161 while ( dkp ) /* loop through list */
163 if ( labellist == NULL || isinlist (dkp->name, labellist) )
164 printkeyinfo (dkp, oldpath); /* print entry */
165 oldpath = dkp->dname;
166 dkp = dkp->next;
175 const dki_t *dkp;
186 for ( dkp = data; dkp; dkp = dkp->next ) /* loop through list */
188 if ( labellist == NULL || isinlist (dkp->name, labellist) )
189 printkeyinfo (dkp, oldpath); /* print entry */
190 oldpath = dkp->dname;
199 const dki_t *dkp;
204 dkp = *nodep;
207 // fprintf (stderr, "list_trustedkey order=%d(pre=0,in=1,post=2,leaf=3) depth=%d %s\n", which, depth, dkp->name);
209 while ( dkp )
211 if ( (dki_isksk (dkp) || zskflag) &&
212 (labellist == NULL || isinlist (dkp->name, labellist)) )
213 dki_prt_trustedkey (dkp, stdout);
214 dkp = dkp->next;
222 const dki_t *dkp;
227 dkp = *nodep;
230 // fprintf (stderr, "list_trustedkey order=%d(pre=0,in=1,post=2,leaf=3) depth=%d %s\n", which, depth, dkp->name);
231 if ( labellist && !isinlist (dkp->name, labellist) )
234 if ( parent == NULL || !issubdomain (dkp->name, parent->name) )
236 parent = dkp;
238 while ( dkp )
240 if ( (dki_isksk (dkp) || zskflag) )
241 dki_prt_trustedkey (dkp, stdout);
242 dkp = dkp->next;
260 for ( dkp = data; dkp; dkp = dkp->next ) /* loop through list */
261 if ( (dki_isksk (dkp) || zskflag) &&
262 (labellist == NULL || isinlist (dkp->name, labellist)) )
263 dki_prt_trustedkey (dkp, stdout);
274 const dki_t *dkp;
281 for ( dkp = *nodep; dkp; dkp = dkp->next )
283 ksk = dki_isksk (dkp);
287 if ( labellist == NULL || isinlist (dkp->name, labellist) )
290 dki_prt_comment (dkp, stdout);
291 dki_prt_dnskey (dkp, stdout);
302 const dki_t *dkp;
305 for ( dkp = data; dkp; dkp = dkp->next )
307 ksk = dki_isksk (dkp);
311 if ( labellist == NULL || isinlist (dkp->name, labellist) )
314 dki_prt_comment (dkp, stdout);
315 dki_prt_dnskey (dkp, stdout);
324 const dki_t *dkp;
331 for ( dkp = *nodep; dkp; dkp = dkp->next )
333 ksk = dki_isksk (dkp);
337 if ( labellist == NULL || isinlist (dkp->name, labellist) )
338 dki_setlifetime ((dki_t *)dkp, lifetime);
348 dki_t *dkp;
351 for ( dkp = data; dkp; dkp = dkp->next )
353 ksk = dki_isksk (dkp);
357 if ( labellist == NULL || isinlist (dkp->name, labellist) )
359 dki_setlifetime (dkp, lifetime);
371 const dki_t *dkp;
377 for ( dkp = *nodep; dkp; dkp = dkp->next )
379 if ( dkp->tag == searchitem )
382 searchresult = dkp;
391 const dki_t *dkp = NULL;
400 dkp = (void *)01;
402 dkp = searchresult;
405 dkp = (dki_t*)dki_tsearch (data, searchtag, keyname);
407 dkp = (dki_t*)dki_search (data, searchtag, keyname);
409 return dkp;