summaryrefslogtreecommitdiffstats
path: root/sshkey.h
diff options
context:
space:
mode:
authordjm@openbsd.org <djm@openbsd.org>2020-04-08 02:08:46 +0200
committerDamien Miller <djm@mindrot.org>2020-04-08 02:14:21 +0200
commitf290ab0833e44355fc006e4e67b92446c14673ef (patch)
treea561fa46ca1ec8e24fa809e977584800bebf5c81 /sshkey.h
parentupstream: simplify sshkey_parse_private_fileblob_type() (diff)
downloadopenssh-f290ab0833e44355fc006e4e67b92446c14673ef.tar.xz
openssh-f290ab0833e44355fc006e4e67b92446c14673ef.zip
upstream: add sshkey_parse_pubkey_from_private_fileblob_type()
Extracts a public key from the unencrypted envelope of a new-style OpenSSH private key. ok markus@ OpenBSD-Commit-ID: 44d7ab446e5e8c686aee96d5897b26b3939939aa
Diffstat (limited to 'sshkey.h')
-rw-r--r--sshkey.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sshkey.h b/sshkey.h
index 71a3fddcb..9c1d4f637 100644
--- a/sshkey.h
+++ b/sshkey.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: sshkey.h,v 1.44 2019/12/30 09:23:28 djm Exp $ */
+/* $OpenBSD: sshkey.h,v 1.45 2020/04/08 00:08:46 djm Exp $ */
/*
* Copyright (c) 2000, 2001 Markus Friedl. All rights reserved.
@@ -259,6 +259,8 @@ int sshkey_parse_private_fileblob(struct sshbuf *buffer,
const char *passphrase, struct sshkey **keyp, char **commentp);
int sshkey_parse_private_fileblob_type(struct sshbuf *blob, int type,
const char *passphrase, struct sshkey **keyp, char **commentp);
+int sshkey_parse_pubkey_from_private_fileblob_type(struct sshbuf *blob,
+ int type, struct sshkey **pubkeyp);
/* XXX should be internal, but used by ssh-keygen */
int ssh_rsa_complete_crt_parameters(struct sshkey *, const BIGNUM *);