mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
Rename encode.c to encrypt.c.
Rename function in a simlar way. Re-indent encrypt.c
This commit is contained in:
parent
1d0e9816e4
commit
c11c23b6ac
9 changed files with 1187 additions and 1118 deletions
|
@ -1176,12 +1176,15 @@ get_validity (PKT_public_key *pk, PKT_user_id *uid)
|
|||
int
|
||||
get_validity_info (PKT_public_key *pk, PKT_user_id *uid)
|
||||
{
|
||||
int trustlevel;
|
||||
|
||||
trustlevel = get_validity (pk, uid);
|
||||
if( trustlevel & TRUST_FLAG_REVOKED )
|
||||
return 'r';
|
||||
return trust_letter ( trustlevel );
|
||||
int trustlevel;
|
||||
|
||||
if (!pk)
|
||||
return '?'; /* Just in case a NULL PK is passed. */
|
||||
|
||||
trustlevel = get_validity (pk, uid);
|
||||
if ( (trustlevel & TRUST_FLAG_REVOKED) )
|
||||
return 'r';
|
||||
return trust_letter (trustlevel);
|
||||
}
|
||||
|
||||
const char *
|
||||
|
@ -1189,6 +1192,9 @@ get_validity_string (PKT_public_key *pk, PKT_user_id *uid)
|
|||
{
|
||||
int trustlevel;
|
||||
|
||||
if (!pk)
|
||||
return "err"; /* Just in case a NULL PK is passed. */
|
||||
|
||||
trustlevel = get_validity (pk, uid);
|
||||
if( trustlevel & TRUST_FLAG_REVOKED )
|
||||
return _("revoked");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue