/[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 46 by werner, Fri Oct 28 12:57:05 2005 UTC revision 214 by twoaday, Sun May 14 18:40:36 2006 UTC
# Line 352  pubkey_get_nskey( int algo ) Line 352  pubkey_get_nskey( int algo )
352      else if ( algo == 17 )    return 5;      else if ( algo == 17 )    return 5;
353      else if ( is_RSA( algo ) )return 6;      else if ( is_RSA( algo ) )return 6;
354      return 0;      return 0;
355  } /* cdk_pk_get_nskey */  }
356    
357    
 static subpktarea_t *  
 cp_subpktarea (subpktarea_t *s )  
 {  
     subpktarea_t *d;  
       
     if( !s )  
         return NULL;  
     d = malloc (sizeof (*d) + s->size - 1 );  
     d->size = s->size;  
     d->len = s->len;  
     memcpy (d->data, s->data, s->len);  
     return d;  
 }  
358    
359  /*  /*
360   * Return a copy of the preferences   * Return a copy of the preferences
# Line 756  parse( gpg_iobuf_t inp, PACKET *pkt, int Line 743  parse( gpg_iobuf_t inp, PACKET *pkt, int
743          /* with a some probability this is caused by a problem in the          /* with a some probability this is caused by a problem in the
744           * the uncompressing layer - in some error cases it just loops           * the uncompressing layer - in some error cases it just loops
745           * and spits out 0xff bytes. */           * and spits out 0xff bytes. */
746          printf ("%s: garbled packet detected\n", gpg_iobuf_where(inp) );          /*printf ("%s: garbled packet detected\n", gpg_iobuf_where(inp));*/
747          exit (2);          rc = G10ERR_INVALID_PACKET;
748            goto leave;
749      }      }
750            
751      if( out && pkttype  ) {      if( out && pkttype  ) {

Legend:
Removed from v.46  
changed lines
  Added in v.214

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26