diff options
Diffstat (limited to 'g10/keylist.c')
-rw-r--r-- | g10/keylist.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/g10/keylist.c b/g10/keylist.c index 3be29a89e..32012f422 100644 --- a/g10/keylist.c +++ b/g10/keylist.c @@ -118,6 +118,13 @@ is_uid_valid ( KBNODE keyblock, KBNODE uidnode, u32 *mainkid ) KBNODE node; PKT_signature *selfsig = NULL; /* the latest valid self signature */ + /* The key signature verify function can's handle secret keys yet and + * becuase we are not sure whether the duplication of user IDs and + * self-signatures should be kept on secret keys we are not going to fix + * it there. */ + if ( keyblock->pkt->pkttype == PKT_SECRET_KEY ) + return NULL; + assert ( uidnode->pkt->pkttype == PKT_USER_ID || uidnode->pkt->pkttype == PKT_PHOTO_ID ); |