mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
partial DSA support
This commit is contained in:
parent
1b1a6d7e77
commit
a6a8f1e706
62 changed files with 2247 additions and 447 deletions
|
@ -37,13 +37,21 @@ make_timestamp()
|
|||
* Print a string to FP, but filter all control characters out.
|
||||
*/
|
||||
void
|
||||
print_string( FILE *fp, byte *p, size_t n )
|
||||
print_string( FILE *fp, byte *p, size_t n, int delim )
|
||||
{
|
||||
for( ; n; n--, p++ )
|
||||
if( iscntrl( *p ) ) {
|
||||
if( iscntrl( *p ) || *p == delim ) {
|
||||
putc('\\', fp);
|
||||
if( *p == '\n' )
|
||||
putc('n', fp);
|
||||
else if( *p == '\r' )
|
||||
putc('r', fp);
|
||||
else if( *p == '\f' )
|
||||
putc('f', fp);
|
||||
else if( *p == '\v' )
|
||||
putc('v', fp);
|
||||
else if( *p == '\b' )
|
||||
putc('b', fp);
|
||||
else if( !*p )
|
||||
putc('0', fp);
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue