diff options
author | djm@openbsd.org <djm@openbsd.org> | 2022-09-17 10:30:45 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2022-09-17 20:38:40 +1000 |
commit | 07d8771bacfefbcfb37fa8a6dc6103bcc097e0ab (patch) | |
tree | 0806650332400eab53ce98e17e140f5bf96d14f6 /sshkey.h | |
parent | 3991a0cf947cf3ae0f0373bcec5a90e86a7152f5 (diff) | |
download | openssh-git-07d8771bacfefbcfb37fa8a6dc6103bcc097e0ab.tar.gz |
upstream: Add a sshkey_check_rsa_length() call for checking the
length of an RSA key; ok markus@
OpenBSD-Commit-ID: de77cd5b11594297eda82edc594b0d32b8535134
Diffstat (limited to 'sshkey.h')
-rw-r--r-- | sshkey.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $OpenBSD: sshkey.h,v 1.51 2022/01/06 22:05:42 djm Exp $ */ +/* $OpenBSD: sshkey.h,v 1.52 2022/09/17 10:30:45 djm Exp $ */ /* * Copyright (c) 2000, 2001 Markus Friedl. All rights reserved. @@ -273,6 +273,7 @@ int sshkey_parse_private_fileblob_type(struct sshbuf *blob, int type, int sshkey_parse_pubkey_from_private_fileblob_type(struct sshbuf *blob, int type, struct sshkey **pubkeyp); +int sshkey_check_rsa_length(const struct sshkey *, int); /* XXX should be internal, but used by ssh-keygen */ int ssh_rsa_complete_crt_parameters(struct sshkey *, const BIGNUM *); |