X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=crypto%2Fdh%2Fdh.h;h=a15fc1c65f7ec0fd6f3dd102d6355a9b49fcc711;hb=c5f8bbbc0b94f3ec3f3f8f2aabbe3cc81f7b8158;hp=c15b2ad48364ea6f385914978ab29b0336aab9f7;hpb=90644dd74d5c5262831bb0be73e1226778099924;p=oweals%2Fopenssl.git diff --git a/crypto/dh/dh.h b/crypto/dh/dh.h index c15b2ad483..a15fc1c65f 100644 --- a/crypto/dh/dh.h +++ b/crypto/dh/dh.h @@ -59,19 +59,22 @@ #ifndef HEADER_DH_H #define HEADER_DH_H -#ifdef __cplusplus -extern "C" { -#endif - #ifdef NO_DH #error DH is disabled. #endif +#ifndef NO_BIO +#include +#endif #include #include #define DH_FLAG_CACHE_MONT_P 0x01 +#ifdef __cplusplus +extern "C" { +#endif + typedef struct dh_st DH; typedef struct dh_method { @@ -169,7 +172,7 @@ int i2d_DHparams(DH *a,unsigned char **pp); #ifndef NO_FP_API int DHparams_print_fp(FILE *fp, DH *x); #endif -#ifdef HEADER_BIO_H +#ifndef NO_BIO int DHparams_print(BIO *bp, DH *x); #else int DHparams_print(char *bp, DH *x);