diff options
author | djm@openbsd.org <djm@openbsd.org> | 2022-10-28 02:36:31 +0200 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2022-10-28 03:46:56 +0200 |
commit | 1e78844ae2b2dc01ba735d5ae740904c57e13685 (patch) | |
tree | 9aaea84e13b641b1cc04dd9446d4af46c0a0919b /sshkey.h | |
parent | upstream: begin big refactor of sshkey (diff) | |
download | openssh-1e78844ae2b2dc01ba735d5ae740904c57e13685.tar.xz openssh-1e78844ae2b2dc01ba735d5ae740904c57e13685.zip |
upstream: factor out sshkey_equal_public()
feedback/ok markus@
OpenBSD-Commit-ID: 1368ba114cb37732fe6ec3d89c7e6d27ea6fdc94
Diffstat (limited to 'sshkey.h')
-rw-r--r-- | sshkey.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $OpenBSD: sshkey.h,v 1.53 2022/10/28 00:35:40 djm Exp $ */ +/* $OpenBSD: sshkey.h,v 1.54 2022/10/28 00:36:31 djm Exp $ */ /* * Copyright (c) 2000, 2001 Markus Friedl. All rights reserved. @@ -168,6 +168,7 @@ struct sshkey_impl_funcs { u_int (*size)(const struct sshkey *); /* optional */ int (*alloc)(struct sshkey *); /* optional */ void (*cleanup)(struct sshkey *); /* optional */ + int (*equal)(const struct sshkey *, const struct sshkey *); }; struct sshkey_impl { @@ -306,6 +307,9 @@ int sshkey_private_serialize_maxsign(struct sshkey *key, void sshkey_sig_details_free(struct sshkey_sig_details *); #ifdef SSHKEY_INTERNAL +int sshkey_sk_fields_equal(const struct sshkey *a, const struct sshkey *b); +void sshkey_sk_cleanup(struct sshkey *k); + int ssh_rsa_sign(const struct sshkey *key, u_char **sigp, size_t *lenp, const u_char *data, size_t datalen, const char *ident); |