diff options
author | djm@openbsd.org <djm@openbsd.org> | 2020-04-08 00:08:46 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2020-04-08 10:14:21 +1000 |
commit | f290ab0833e44355fc006e4e67b92446c14673ef (patch) | |
tree | a561fa46ca1ec8e24fa809e977584800bebf5c81 /sshkey.h | |
parent | 8d514eea4ae089626a55e11c7bc1745c8d9683e4 (diff) |
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.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: sshkey.h,v 1.44 2019/12/30 09:23:28 djm Exp $ */ | 1 | /* $OpenBSD: sshkey.h,v 1.45 2020/04/08 00:08:46 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. |
@@ -259,6 +259,8 @@ int sshkey_parse_private_fileblob(struct sshbuf *buffer, | |||
259 | const char *passphrase, struct sshkey **keyp, char **commentp); | 259 | const char *passphrase, struct sshkey **keyp, char **commentp); |
260 | int sshkey_parse_private_fileblob_type(struct sshbuf *blob, int type, | 260 | int sshkey_parse_private_fileblob_type(struct sshbuf *blob, int type, |
261 | const char *passphrase, struct sshkey **keyp, char **commentp); | 261 | const char *passphrase, struct sshkey **keyp, char **commentp); |
262 | int sshkey_parse_pubkey_from_private_fileblob_type(struct sshbuf *blob, | ||
263 | int type, struct sshkey **pubkeyp); | ||
262 | 264 | ||
263 | /* XXX should be internal, but used by ssh-keygen */ | 265 | /* XXX should be internal, but used by ssh-keygen */ |
264 | int ssh_rsa_complete_crt_parameters(struct sshkey *, const BIGNUM *); | 266 | int ssh_rsa_complete_crt_parameters(struct sshkey *, const BIGNUM *); |