diff options
author | djm@openbsd.org <djm@openbsd.org> | 2015-05-21 06:55:51 +0200 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2015-05-21 07:06:06 +0200 |
commit | d80fbe41a57c72420c87a628444da16d09d66ca7 (patch) | |
tree | e2bb0b30b20135044ac822ee2535c12337124fb6 /sshkey.h | |
parent | upstream commit (diff) | |
download | openssh-d80fbe41a57c72420c87a628444da16d09d66ca7.tar.xz openssh-d80fbe41a57c72420c87a628444da16d09d66ca7.zip |
upstream commit
refactor: split base64 encoding of pubkey into its own
sshkey_to_base64() function and out of sshkey_write(); ok markus@
Upstream-ID: 54fc38f5832e9b91028900819bda46c3959a0c1a
Diffstat (limited to 'sshkey.h')
-rw-r--r-- | sshkey.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $OpenBSD: sshkey.h,v 1.5 2015/01/26 02:59:11 djm Exp $ */ +/* $OpenBSD: sshkey.h,v 1.6 2015/05/21 04:55:51 djm Exp $ */ /* * Copyright (c) 2000, 2001 Markus Friedl. All rights reserved. @@ -163,6 +163,7 @@ int sshkey_from_blob(const u_char *, size_t, struct sshkey **); int sshkey_fromb(struct sshbuf *, struct sshkey **); int sshkey_froms(struct sshbuf *, struct sshkey **); int sshkey_to_blob(const struct sshkey *, u_char **, size_t *); +int sshkey_to_base64(const struct sshkey *, char **); int sshkey_putb(const struct sshkey *, struct sshbuf *); int sshkey_puts(const struct sshkey *, struct sshbuf *); int sshkey_plain_to_blob(const struct sshkey *, u_char **, size_t *); |