diff options
author | djm@openbsd.org <djm@openbsd.org> | 2020-06-22 05:54:10 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2020-06-22 16:11:14 +1000 |
commit | 12848191f8fe725af4485d3600e0842d92f8637f (patch) | |
tree | 89f14e47a454dec73067e2f1c631d7ce6f65a664 /sshbuf.h | |
parent | 473b4af43db12127137c7fc1a10928313f5a16d2 (diff) |
upstream: support for RFC4648 base64url encoding; ok markus
OpenBSD-Commit-ID: 0ef22c55e772dda05c112c88412c0797fec66eb4
Diffstat (limited to 'sshbuf.h')
-rw-r--r-- | sshbuf.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: sshbuf.h,v 1.22 2020/06/05 03:24:36 djm Exp $ */ | 1 | /* $OpenBSD: sshbuf.h,v 1.23 2020/06/22 05:54:10 djm Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2011 Damien Miller | 3 | * Copyright (c) 2011 Damien Miller |
4 | * | 4 | * |
@@ -253,6 +253,8 @@ char *sshbuf_dtob16(struct sshbuf *buf); | |||
253 | /* Encode the contents of the buffer as base64 */ | 253 | /* Encode the contents of the buffer as base64 */ |
254 | char *sshbuf_dtob64_string(const struct sshbuf *buf, int wrap); | 254 | char *sshbuf_dtob64_string(const struct sshbuf *buf, int wrap); |
255 | int sshbuf_dtob64(const struct sshbuf *d, struct sshbuf *b64, int wrap); | 255 | int sshbuf_dtob64(const struct sshbuf *d, struct sshbuf *b64, int wrap); |
256 | /* RFC4648 "base64url" encoding variant */ | ||
257 | int sshbuf_dtourlb64(const struct sshbuf *d, struct sshbuf *b64, int wrap); | ||
256 | 258 | ||
257 | /* Decode base64 data and append it to the buffer */ | 259 | /* Decode base64 data and append it to the buffer */ |
258 | int sshbuf_b64tod(struct sshbuf *buf, const char *b64); | 260 | int sshbuf_b64tod(struct sshbuf *buf, const char *b64); |