summaryrefslogtreecommitdiffstats
path: root/g10/mainproc.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>1998-01-16 22:15:24 +0100
committerWerner Koch <wk@gnupg.org>1998-01-16 22:15:24 +0100
commit4ec1775f3eaf8733a5285460b631253b90d3c6fb (patch)
tree3061decd5793f93c5a51dab58cb45c8e79a26403 /g10/mainproc.c
parent*** empty log message *** (diff)
downloadgnupg2-4ec1775f3eaf8733a5285460b631253b90d3c6fb.tar.xz
gnupg2-4ec1775f3eaf8733a5285460b631253b90d3c6fb.zip
added some trust model stuff
Diffstat (limited to 'g10/mainproc.c')
-rw-r--r--g10/mainproc.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/g10/mainproc.c b/g10/mainproc.c
index f64a2cda5..36c3381da 100644
--- a/g10/mainproc.c
+++ b/g10/mainproc.c
@@ -110,7 +110,6 @@ add_secret_cert( CTX c, PACKET *pkt )
static int
add_user_id( CTX c, PACKET *pkt )
{
- u32 keyid[2];
KBNODE node, n1, n2;
if( !c->cert ) {
@@ -142,7 +141,6 @@ add_user_id( CTX c, PACKET *pkt )
static int
add_signature( CTX c, PACKET *pkt )
{
- u32 keyid[2];
KBNODE node, n1, n2;
if( !c->cert ) {
@@ -329,7 +327,7 @@ do_check_sig( CTX c, KBNODE node )
if( c->cert->pkt->pkt.public_cert->mfx.md )
md = md_copy( c->cert->pkt->pkt.public_cert->mfx.md );
else
- log_bug(NULL);
+ BUG();
md_write( md, n1->pkt->pkt.user_id->name, n1->pkt->pkt.user_id->len);
}
else {
@@ -356,7 +354,7 @@ static void
print_userid( PACKET *pkt )
{
if( !pkt )
- log_bug(NULL);
+ BUG();
if( pkt->pkttype != PKT_USER_ID ) {
printf("ERROR: unexpected packet type %d", pkt->pkttype );
return;
@@ -493,9 +491,7 @@ proc_packets( IOBUF a )
{
CTX c = m_alloc_clear( sizeof *c );
PACKET *pkt = m_alloc( sizeof *pkt );
- int rc, result;
- int lvl0, lvl1;
- u32 keyid[2];
+ int rc;
int newpkt;
c->iobuf = a;