summaryrefslogtreecommitdiff
path: root/usr.bin/ssh/sshbuf.h
diff options
context:
space:
mode:
authorDamien Miller <djm@cvs.openbsd.org>2020-06-22 05:54:11 +0000
committerDamien Miller <djm@cvs.openbsd.org>2020-06-22 05:54:11 +0000
commit32aa60057c38f20864af3859b9a71afb303a3004 (patch)
treefa1993133b7356458faefb692e8341fd1ba32dfd /usr.bin/ssh/sshbuf.h
parentc1cb9d2fd626ce9374ca7dd2f8d83777c57f7a2e (diff)
support for RFC4648 base64url encoding; ok markus
Diffstat (limited to 'usr.bin/ssh/sshbuf.h')
-rw-r--r--usr.bin/ssh/sshbuf.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/ssh/sshbuf.h b/usr.bin/ssh/sshbuf.h
index 2d90a052efe..2b77d154afb 100644
--- a/usr.bin/ssh/sshbuf.h
+++ b/usr.bin/ssh/sshbuf.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: sshbuf.h,v 1.22 2020/06/05 03:24:36 djm Exp $ */
+/* $OpenBSD: sshbuf.h,v 1.23 2020/06/22 05:54:10 djm Exp $ */
/*
* Copyright (c) 2011 Damien Miller
*
@@ -254,6 +254,8 @@ char *sshbuf_dtob16(struct sshbuf *buf);
/* Encode the contents of the buffer as base64 */
char *sshbuf_dtob64_string(const struct sshbuf *buf, int wrap);
int sshbuf_dtob64(const struct sshbuf *d, struct sshbuf *b64, int wrap);
+/* RFC4648 "base64url" encoding variant */
+int sshbuf_dtourlb64(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);