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 |
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 ) { |