diff options
author | Colin Watson <cjwatson@debian.org> | 2020-10-20 14:12:31 +0100 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2020-10-20 14:12:31 +0100 |
commit | e371906fbbbbc11b0dced8fd4e0d258eb489d7c1 (patch) | |
tree | 4d0d8d2afd52572deb7910e29ff5a334b2bcf702 /sshbuf.h | |
parent | e429009cde648a41479cd1b60ce972760a2bdabc (diff) | |
parent | 3728919292c05983372954d27426f7d966813139 (diff) |
New upstream release (8.4p1)
Diffstat (limited to 'sshbuf.h')
-rw-r--r-- | sshbuf.h | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: sshbuf.h,v 1.21 2020/04/26 09:38:14 dtucker 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 | * |
@@ -242,7 +242,7 @@ int sshbuf_put_eckey(struct sshbuf *buf, const EC_KEY *v); | |||
242 | #endif /* WITH_OPENSSL */ | 242 | #endif /* WITH_OPENSSL */ |
243 | 243 | ||
244 | /* Dump the contents of the buffer in a human-readable format */ | 244 | /* Dump the contents of the buffer in a human-readable format */ |
245 | void sshbuf_dump(struct sshbuf *buf, FILE *f); | 245 | void sshbuf_dump(const struct sshbuf *buf, FILE *f); |
246 | 246 | ||
247 | /* Dump specified memory in a human-readable format */ | 247 | /* Dump specified memory in a human-readable format */ |
248 | void sshbuf_dump_data(const void *s, size_t len, FILE *f); | 248 | void sshbuf_dump_data(const void *s, size_t len, FILE *f); |
@@ -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); |