summaryrefslogtreecommitdiff
path: root/usr.bin/ssh/sshkey.h
diff options
context:
space:
mode:
authorDamien Miller <djm@cvs.openbsd.org>2015-01-26 02:59:12 +0000
committerDamien Miller <djm@cvs.openbsd.org>2015-01-26 02:59:12 +0000
commitec70fe89ea2c7355199e5eda04e830bb613137cb (patch)
tree7854c6459f0a81d4e74b0cdeb8d912d5c4562860 /usr.bin/ssh/sshkey.h
parent34a8368bc8175eb2a24ea327ff945835ca6e9fd7 (diff)
small refactor and add some convenience functions;
ok markus
Diffstat (limited to 'usr.bin/ssh/sshkey.h')
-rw-r--r--usr.bin/ssh/sshkey.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/usr.bin/ssh/sshkey.h b/usr.bin/ssh/sshkey.h
index f4d7b954a7f..e05b4077d3c 100644
--- a/usr.bin/ssh/sshkey.h
+++ b/usr.bin/ssh/sshkey.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: sshkey.h,v 1.4 2015/01/13 07:39:19 djm Exp $ */
+/* $OpenBSD: sshkey.h,v 1.5 2015/01/26 02:59:11 djm Exp $ */
/*
* Copyright (c) 2000, 2001 Markus Friedl. All rights reserved.
@@ -154,10 +154,13 @@ int sshkey_names_valid2(const char *, int);
char *key_alg_list(int, int);
int sshkey_from_blob(const u_char *, size_t, struct sshkey **);
-int sshkey_to_blob_buf(const struct sshkey *, struct sshbuf *);
+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_plain_to_blob_buf(const struct sshkey *, struct sshbuf *);
+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 *);
+int sshkey_putb_plain(const struct sshkey *, struct sshbuf *);
int sshkey_sign(const struct sshkey *, u_char **, size_t *,
const u_char *, size_t, u_int);