[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

UserID Revocation



* William H. Geiger III wrote:
>IMHO it is a little late in the game to be adding things to the spec. I
>think that there are some more pressing issues like the ability to revoke
>userID's if modifying the format is still open game.

No. It's already solved an implemented since about than a year.

/*
 * OpenPGP Reference implementation and specification to be
 * Author/Editor: Lutz.Donnerhacke@xxxxxxxxxxxx
 * Source is GPLed.
 */


%{
%}
%union {
}
%type <signature> user_ID_compromise
%%

user_ID_compromise:
	CTB_SIGNATURE v23 '\5' '\x30' sig_v23_data eop
	{$$ = $5; $$.type = CERT_USERID_COMPROMISE}
	| CTB_SIGNATURE v4 '\x30' sig_v4_data eop
	  {$$ = $4; $$.type = CERT_USERID_COMPROMISE}
;

%%%

Together with:

/*
 * OpenPGP Reference implementation and specification to be
 * Author/Editor: Lutz.Donnerhacke@xxxxxxxxxxxx
 * Source is GPLed.
 */


%{
%}
%union{
}
%type <userID> signed_userID
%%

signed_userID:
	user_ID_packet maybe_trust self_compromise {$$ = $2; $$.revoked = 1}
	| user_ID_packet maybe_trust
	  self_certificate maybe_trust
	| user_ID_packet maybe_trust
	  self_certificate maybe_trust
	  key_signatures
;

%%%