Changeset View
Changeset View
Standalone View
Standalone View
kex.h
/* $OpenBSD: kex.h,v 1.107 2019/01/23 00:30:41 djm Exp $ */ | /* $OpenBSD: kex.h,v 1.109 2019/09/06 05:23:55 djm Exp $ */ | ||||
/* | /* | ||||
* Copyright (c) 2000, 2001 Markus Friedl. All rights reserved. | * Copyright (c) 2000, 2001 Markus Friedl. All rights reserved. | ||||
* | * | ||||
* Redistribution and use in source and binary forms, with or without | * Redistribution and use in source and binary forms, with or without | ||||
* modification, are permitted provided that the following conditions | * modification, are permitted provided that the following conditions | ||||
* are met: | * are met: | ||||
* 1. Redistributions of source code must retain the above copyright | * 1. Redistributions of source code must retain the above copyright | ||||
Show All 14 Lines | |||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||||
*/ | */ | ||||
#ifndef KEX_H | #ifndef KEX_H | ||||
#define KEX_H | #define KEX_H | ||||
#include "mac.h" | #include "mac.h" | ||||
#include "crypto_api.h" | #include "crypto_api.h" | ||||
#ifdef WITH_LEAKMALLOC | |||||
#include "leakmalloc.h" | |||||
#endif | |||||
#ifdef WITH_OPENSSL | #ifdef WITH_OPENSSL | ||||
# include <openssl/bn.h> | |||||
# include <openssl/dh.h> | |||||
# include <openssl/ecdsa.h> | |||||
# ifdef OPENSSL_HAS_ECC | # ifdef OPENSSL_HAS_ECC | ||||
# include <openssl/ec.h> | # include <openssl/ec.h> | ||||
# else /* OPENSSL_HAS_ECC */ | # else /* OPENSSL_HAS_ECC */ | ||||
# define EC_KEY void | # define EC_KEY void | ||||
# define EC_GROUP void | # define EC_GROUP void | ||||
# define EC_POINT void | # define EC_POINT void | ||||
# endif /* OPENSSL_HAS_ECC */ | # endif /* OPENSSL_HAS_ECC */ | ||||
#else /* WITH_OPENSSL */ | #else /* WITH_OPENSSL */ | ||||
▲ Show 20 Lines • Show All 216 Lines • Show Last 20 Lines |