summaryrefslogtreecommitdiff
path: root/sshkey.h
diff options
context:
space:
mode:
authordjm@openbsd.org <djm@openbsd.org>2015-05-21 04:55:51 +0000
committerDamien Miller <djm@mindrot.org>2015-05-21 15:06:06 +1000
commitd80fbe41a57c72420c87a628444da16d09d66ca7 (patch)
treee2bb0b30b20135044ac822ee2535c12337124fb6 /sshkey.h
parent7cc44ef74133a473734bbcbd3484f24d6a7328c5 (diff)
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.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sshkey.h b/sshkey.h
index 62c1c3e2..cdac0e25 100644
--- a/sshkey.h
+++ b/sshkey.h
@@ -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 *);