diff options
author | Werner Koch <[email protected]> | 1997-11-19 13:12:23 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 1997-11-19 13:12:23 +0000 |
commit | 25c8f1a3d79a3ae14dbb824082b4107f7a182b13 (patch) | |
tree | 9a4d2e413e7e388822f8e37efe0e58b6979ac6a8 /util/iobuf.c | |
parent | initially checkin (diff) | |
download | gnupg-25c8f1a3d79a3ae14dbb824082b4107f7a182b13.tar.gz gnupg-25c8f1a3d79a3ae14dbb824082b4107f7a182b13.zip |
Output armor works, RSA keygen works.
Diffstat (limited to '')
-rw-r--r-- | util/iobuf.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/util/iobuf.c b/util/iobuf.c index 12fc74ff6..6c4a5f5da 100644 --- a/util/iobuf.c +++ b/util/iobuf.c @@ -627,6 +627,15 @@ iobuf_write(IOBUF a, byte *buf, unsigned buflen ) return 0; } +int +iobuf_writestr(IOBUF a, const char *buf ) +{ + for( ; *buf; buf++ ) + if( iobuf_writebyte(a, *buf) ) + return -1; + return 0; +} + /**************** |