105 |
return a; |
return a; |
106 |
} |
} |
107 |
|
|
|
int |
|
|
set_packet_list_mode( int mode ) |
|
|
{ |
|
|
int old = list_mode; |
|
|
list_mode = mode; |
|
|
mpi_print_mode = 0; |
|
|
return old; |
|
|
} |
|
108 |
|
|
109 |
static void |
static void |
110 |
unknown_pubkey_warning( int algo ) |
unknown_pubkey_warning( int algo ) |
335 |
else if ( algo == 17 ) return 4; |
else if ( algo == 17 ) return 4; |
336 |
else if ( is_RSA( algo ) ) return 2; |
else if ( is_RSA( algo ) ) return 2; |
337 |
return 0; |
return 0; |
338 |
} /* cdk_pk_get_npkey */ |
} |
339 |
|
|
340 |
int |
int |
341 |
pubkey_get_nskey( int algo ) |
pubkey_get_nskey( int algo ) |
735 |
/* with a some probability this is caused by a problem in the |
/* with a some probability this is caused by a problem in the |
736 |
* the uncompressing layer - in some error cases it just loops |
* the uncompressing layer - in some error cases it just loops |
737 |
* and spits out 0xff bytes. */ |
* and spits out 0xff bytes. */ |
738 |
printf ("%s: garbled packet detected\n", gpg_iobuf_where(inp) ); |
/*printf ("%s: garbled packet detected\n", gpg_iobuf_where(inp));*/ |
739 |
exit (2); |
rc = G10ERR_INVALID_PACKET; |
740 |
|
goto leave; |
741 |
} |
} |
742 |
|
|
743 |
if( out && pkttype ) { |
if( out && pkttype ) { |