diff options
author | 2019-07-16 13:18:39 +0000 | |
---|---|---|
committer | 2019-07-16 13:18:39 +0000 | |
commit | bbb0e5b662297f18d17f1b7582a0477cd86ab8ba (patch) | |
tree | b4bb90d08f4853d421a3d5623b75249f91d67b0e /usr.bin/ssh/sshbuf.h | |
parent | Fix long line by wrapping with 80 chars (diff) | |
download | wireguard-openbsd-bbb0e5b662297f18d17f1b7582a0477cd86ab8ba.tar.xz wireguard-openbsd-bbb0e5b662297f18d17f1b7582a0477cd86ab8ba.zip |
remove mostly vestigal uuencode.[ch]; moving the only unique
functionality there (wrapping of base64-encoded data) to sshbuf
functions; feedback and ok markus@
Diffstat (limited to 'usr.bin/ssh/sshbuf.h')
-rw-r--r-- | usr.bin/ssh/sshbuf.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/ssh/sshbuf.h b/usr.bin/ssh/sshbuf.h index 608a9845ec2..045ac3deece 100644 --- a/usr.bin/ssh/sshbuf.h +++ b/usr.bin/ssh/sshbuf.h @@ -1,4 +1,4 @@ -/* $OpenBSD: sshbuf.h,v 1.15 2019/07/15 13:11:38 djm Exp $ */ +/* $OpenBSD: sshbuf.h,v 1.16 2019/07/16 13:18:39 djm Exp $ */ /* * Copyright (c) 2011 Damien Miller * @@ -243,7 +243,8 @@ void sshbuf_dump_data(const void *s, size_t len, FILE *f); char *sshbuf_dtob16(struct sshbuf *buf); /* Encode the contents of the buffer as base64 */ -char *sshbuf_dtob64(struct sshbuf *buf); +char *sshbuf_dtob64_string(const struct sshbuf *buf, int wrap); +int sshbuf_dtob64(const struct sshbuf *d, struct sshbuf *b64, int wrap); /* Decode base64 data and append it to the buffer */ int sshbuf_b64tod(struct sshbuf *buf, const char *b64); |