diff options
author | 2019-09-06 05:23:55 +0000 | |
---|---|---|
committer | 2019-09-06 05:23:55 +0000 | |
commit | 1f96526fb0deff53898d266d4e2e399e64e301ef (patch) | |
tree | 97f4b05f2b48e51c0d3734edbd9464b42cb9ed34 /usr.bin/ssh/sshbuf.h | |
parent | lots of things were relying on libcrypto headers to transitively (diff) | |
download | wireguard-openbsd-1f96526fb0deff53898d266d4e2e399e64e301ef.tar.xz wireguard-openbsd-1f96526fb0deff53898d266d4e2e399e64e301ef.zip |
fixes for !WITH_OPENSSL compilation; ok dtucker@
Diffstat (limited to 'usr.bin/ssh/sshbuf.h')
-rw-r--r-- | usr.bin/ssh/sshbuf.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/usr.bin/ssh/sshbuf.h b/usr.bin/ssh/sshbuf.h index 255de5d8ad1..1288b92cc6e 100644 --- a/usr.bin/ssh/sshbuf.h +++ b/usr.bin/ssh/sshbuf.h @@ -1,4 +1,4 @@ -/* $OpenBSD: sshbuf.h,v 1.17 2019/07/30 05:04:49 djm Exp $ */ +/* $OpenBSD: sshbuf.h,v 1.18 2019/09/06 05:23:55 djm Exp $ */ /* * Copyright (c) 2011 Damien Miller * @@ -21,8 +21,17 @@ #include <sys/types.h> #include <stdarg.h> #include <stdio.h> + +#ifdef WITH_OPENSSL #include <openssl/bn.h> #include <openssl/ec.h> +#include <openssl/ecdsa.h> +#else /* OPENSSL */ +#define BIGNUM void +#define EC_KEY void +#define EC_GROUP void +#define EC_POINT void +#endif /* WITH_OPENSSL */ #define SSHBUF_SIZE_MAX 0x8000000 /* Hard maximum size */ #define SSHBUF_REFS_MAX 0x100000 /* Max child buffers */ |