summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/buffer.h
diff options
context:
space:
mode:
authordjm <djm@openbsd.org>2014-01-12 08:13:13 +0000
committerdjm <djm@openbsd.org>2014-01-12 08:13:13 +0000
commit76d2b3a1a1451f54db25d1eb659f5384688f9681 (patch)
treee1fc6308e492b178c6f9ef1e25d7ab272f232716 /usr.bin/ssh/buffer.h
parentsubtly improve an example (diff)
downloadwireguard-openbsd-76d2b3a1a1451f54db25d1eb659f5384688f9681.tar.xz
wireguard-openbsd-76d2b3a1a1451f54db25d1eb659f5384688f9681.zip
avoid use of OpenSSL BIGNUM type and functions for KEX with
Curve25519 by adding a buffer_put_bignum2_from_string() that stores a string using the bignum encoding rules. Will make it easier to build a reduced-feature OpenSSH without OpenSSL in the future; ok markus@
Diffstat (limited to 'usr.bin/ssh/buffer.h')
-rw-r--r--usr.bin/ssh/buffer.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.bin/ssh/buffer.h b/usr.bin/ssh/buffer.h
index d047de613e5..23ec43c5352 100644
--- a/usr.bin/ssh/buffer.h
+++ b/usr.bin/ssh/buffer.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: buffer.h,v 1.22 2013/07/12 00:19:58 djm Exp $ */
+/* $OpenBSD: buffer.h,v 1.23 2014/01/12 08:13:13 djm Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
@@ -86,6 +86,10 @@ char *buffer_get_cstring_ret(Buffer *, u_int *);
void *buffer_get_string_ptr_ret(Buffer *, u_int *);
int buffer_get_char_ret(u_char *, Buffer *);
+void *buffer_get_bignum2_as_string_ret(Buffer *, u_int *);
+void *buffer_get_bignum2_as_string(Buffer *, u_int *);
+void buffer_put_bignum2_from_string(Buffer *, const u_char *, u_int);
+
#include <openssl/ec.h>
int buffer_put_ecpoint_ret(Buffer *, const EC_GROUP *, const EC_POINT *);