summaryrefslogtreecommitdiff
path: root/sshkey.h
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2018-10-19 21:29:01 +0100
committerColin Watson <cjwatson@debian.org>2018-10-19 21:29:01 +0100
commit3d246f10429fc9a37b98eabef94fe8dc7c61002b (patch)
tree1f35b42b5e5f462d35ba452e4dcfa188ce0543fd /sshkey.h
parente6547182a54f0f268ee36e7c99319eeddffbaff2 (diff)
parentaede1c34243a6f7feae2fb2cb686ade5f9be6f3d (diff)
Import openssh_7.9p1.orig.tar.gz
Diffstat (limited to 'sshkey.h')
-rw-r--r--sshkey.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/sshkey.h b/sshkey.h
index 9060b2ecb..f6a007fdf 100644
--- a/sshkey.h
+++ b/sshkey.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: sshkey.h,v 1.26 2018/07/03 13:20:25 djm Exp $ */ 1/* $OpenBSD: sshkey.h,v 1.30 2018/09/14 04:17:44 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.
@@ -39,6 +39,7 @@
39# define EC_POINT void 39# define EC_POINT void
40# endif /* OPENSSL_HAS_ECC */ 40# endif /* OPENSSL_HAS_ECC */
41#else /* WITH_OPENSSL */ 41#else /* WITH_OPENSSL */
42# define BIGNUM void
42# define RSA void 43# define RSA void
43# define DSA void 44# define DSA void
44# define EC_KEY void 45# define EC_KEY void
@@ -102,6 +103,7 @@ struct sshkey_cert {
102 struct sshbuf *critical; 103 struct sshbuf *critical;
103 struct sshbuf *extensions; 104 struct sshbuf *extensions;
104 struct sshkey *signature_key; 105 struct sshkey *signature_key;
106 char *signature_type;
105}; 107};
106 108
107/* XXX opaquify? */ 109/* XXX opaquify? */
@@ -126,10 +128,7 @@ struct sshkey {
126#define ED25519_PK_SZ crypto_sign_ed25519_PUBLICKEYBYTES 128#define ED25519_PK_SZ crypto_sign_ed25519_PUBLICKEYBYTES
127 129
128struct sshkey *sshkey_new(int); 130struct sshkey *sshkey_new(int);
129int sshkey_add_private(struct sshkey *);
130struct sshkey *sshkey_new_private(int);
131void sshkey_free(struct sshkey *); 131void sshkey_free(struct sshkey *);
132int sshkey_demote(const struct sshkey *, struct sshkey **);
133int sshkey_equal_public(const struct sshkey *, 132int sshkey_equal_public(const struct sshkey *,
134 const struct sshkey *); 133 const struct sshkey *);
135int sshkey_equal(const struct sshkey *, const struct sshkey *); 134int sshkey_equal(const struct sshkey *, const struct sshkey *);
@@ -157,6 +156,7 @@ int sshkey_cert_check_authority(const struct sshkey *, int, int,
157 const char *, const char **); 156 const char *, const char **);
158size_t sshkey_format_cert_validity(const struct sshkey_cert *, 157size_t sshkey_format_cert_validity(const struct sshkey_cert *,
159 char *, size_t) __attribute__((__bounded__(__string__, 2, 3))); 158 char *, size_t) __attribute__((__bounded__(__string__, 2, 3)));
159int sshkey_check_cert_sigtype(const struct sshkey *, const char *);
160 160
161int sshkey_certify(struct sshkey *, struct sshkey *, const char *); 161int sshkey_certify(struct sshkey *, struct sshkey *, const char *);
162/* Variant allowing use of a custom signature function (e.g. for ssh-agent) */ 162/* Variant allowing use of a custom signature function (e.g. for ssh-agent) */
@@ -218,7 +218,7 @@ int sshkey_parse_private_fileblob_type(struct sshbuf *blob, int type,
218 const char *passphrase, struct sshkey **keyp, char **commentp); 218 const char *passphrase, struct sshkey **keyp, char **commentp);
219 219
220/* XXX should be internal, but used by ssh-keygen */ 220/* XXX should be internal, but used by ssh-keygen */
221int ssh_rsa_generate_additional_parameters(struct sshkey *); 221int ssh_rsa_complete_crt_parameters(struct sshkey *, const BIGNUM *);
222 222
223/* stateful keys (e.g. XMSS) */ 223/* stateful keys (e.g. XMSS) */
224#ifdef NO_ATTRIBUTE_ON_PROTOTYPE_ARGS 224#ifdef NO_ATTRIBUTE_ON_PROTOTYPE_ARGS