/[winpt]/trunk/Gnupg/parse-packet.c
ViewVC logotype

Diff of /trunk/Gnupg/parse-packet.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 133 by twoaday, Mon Jan 9 09:15:29 2006 UTC revision 309 by twoaday, Sat Apr 7 11:07:07 2007 UTC
# Line 105  buffer_to_u32( const unsigned char *buff Line 105  buffer_to_u32( const unsigned char *buff
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 )
# Line 343  pubkey_get_npkey( int algo ) Line 335  pubkey_get_npkey( 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 )
# Line 743  parse( gpg_iobuf_t inp, PACKET *pkt, int Line 735  parse( gpg_iobuf_t inp, PACKET *pkt, int
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  ) {

Legend:
Removed from v.133  
changed lines
  Added in v.309

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26