summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/sshbuf.h
diff options
context:
space:
mode:
authordjm <djm@openbsd.org>2015-01-14 15:02:39 +0000
committerdjm <djm@openbsd.org>2015-01-14 15:02:39 +0000
commit78e9a85355f6b89997662a6901de3d432b82cc16 (patch)
tree0fd5f7645aee199d5f84b361abb31370a76f0f87 /usr.bin/ssh/sshbuf.h
parentupdate sftp client and server to new buffer API. (diff)
downloadwireguard-openbsd-78e9a85355f6b89997662a6901de3d432b82cc16.tar.xz
wireguard-openbsd-78e9a85355f6b89997662a6901de3d432b82cc16.zip
avoid BIGNUM in KRL code by using a simple bitmap;
feedback and ok markus
Diffstat (limited to 'usr.bin/ssh/sshbuf.h')
-rw-r--r--usr.bin/ssh/sshbuf.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/ssh/sshbuf.h b/usr.bin/ssh/sshbuf.h
index 6f58b3ec11d..ce43e0af8c1 100644
--- a/usr.bin/ssh/sshbuf.h
+++ b/usr.bin/ssh/sshbuf.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: sshbuf.h,v 1.3 2014/06/24 01:13:21 djm Exp $ */
+/* $OpenBSD: sshbuf.h,v 1.4 2015/01/14 15:02:39 djm Exp $ */
/*
* Copyright (c) 2011 Damien Miller
*
@@ -206,6 +206,8 @@ int sshbuf_peek_string_direct(const struct sshbuf *buf, const u_char **valp,
*/
int sshbuf_get_bignum2(struct sshbuf *buf, BIGNUM *v);
int sshbuf_get_bignum1(struct sshbuf *buf, BIGNUM *v);
+int sshbuf_get_bignum2_bytes_direct(struct sshbuf *buf,
+ const u_char **valp, size_t *lenp);
int sshbuf_put_bignum2(struct sshbuf *buf, const BIGNUM *v);
int sshbuf_put_bignum1(struct sshbuf *buf, const BIGNUM *v);
int sshbuf_put_bignum2_bytes(struct sshbuf *buf, const void *v, size_t len);