diff options
author | djm@openbsd.org <djm@openbsd.org> | 2015-01-26 02:59:11 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2015-01-27 00:00:36 +1100 |
commit | 60b1825262b1f1e24fc72050b907189c92daf18e (patch) | |
tree | 055273fcc45bad93e82480da7c55c1845a41acb8 /sshkey.h | |
parent | a5a3e3328ddce91e76f71ff479022d53e35c60c9 (diff) |
upstream commit
small refactor and add some convenience functions; ok
markus
Diffstat (limited to 'sshkey.h')
-rw-r--r-- | sshkey.h | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: sshkey.h,v 1.4 2015/01/13 07:39:19 djm Exp $ */ | 1 | /* $OpenBSD: sshkey.h,v 1.5 2015/01/26 02:59:11 djm Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Copyright (c) 2000, 2001 Markus Friedl. All rights reserved. | 4 | * Copyright (c) 2000, 2001 Markus Friedl. All rights reserved. |
@@ -160,10 +160,13 @@ int sshkey_names_valid2(const char *, int); | |||
160 | char *key_alg_list(int, int); | 160 | char *key_alg_list(int, int); |
161 | 161 | ||
162 | int sshkey_from_blob(const u_char *, size_t, struct sshkey **); | 162 | int sshkey_from_blob(const u_char *, size_t, struct sshkey **); |
163 | int sshkey_to_blob_buf(const struct sshkey *, struct sshbuf *); | 163 | int sshkey_fromb(struct sshbuf *, struct sshkey **); |
164 | int sshkey_froms(struct sshbuf *, struct sshkey **); | ||
164 | int sshkey_to_blob(const struct sshkey *, u_char **, size_t *); | 165 | int sshkey_to_blob(const struct sshkey *, u_char **, size_t *); |
165 | int sshkey_plain_to_blob_buf(const struct sshkey *, struct sshbuf *); | 166 | int sshkey_putb(const struct sshkey *, struct sshbuf *); |
167 | int sshkey_puts(const struct sshkey *, struct sshbuf *); | ||
166 | int sshkey_plain_to_blob(const struct sshkey *, u_char **, size_t *); | 168 | int sshkey_plain_to_blob(const struct sshkey *, u_char **, size_t *); |
169 | int sshkey_putb_plain(const struct sshkey *, struct sshbuf *); | ||
167 | 170 | ||
168 | int sshkey_sign(const struct sshkey *, u_char **, size_t *, | 171 | int sshkey_sign(const struct sshkey *, u_char **, size_t *, |
169 | const u_char *, size_t, u_int); | 172 | const u_char *, size_t, u_int); |