X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=crypto%2Fdh%2Fdh_depr.c;h=5822d511d958acdec63842a33071ff9e134c0b93;hp=f0903ca20ace488c3ae13c8e0194f1ab44de4d78;hb=HEAD;hpb=e38873f5ce93b41929d8128a533cca7d9e3f0f5a diff --git a/crypto/dh/dh_depr.c b/crypto/dh/dh_depr.c index f0903ca20a..5822d511d9 100644 --- a/crypto/dh/dh_depr.c +++ b/crypto/dh/dh_depr.c @@ -1,5 +1,5 @@ /* - * Copyright 2002-2016 The OpenSSL Project Authors. All Rights Reserved. + * Copyright 2002-2020 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the Apache License 2.0 (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy @@ -9,15 +9,18 @@ /* This file contains deprecated functions as wrappers to the new ones */ +/* + * DH low level APIs are deprecated for public use, but still ok for + * internal use. + */ +#include "internal/deprecated.h" + #include -#if OPENSSL_API_0_9_8 -NON_EMPTY_TRANSLATION_UNIT -#else -# include -# include "internal/cryptlib.h" -# include -# include +#include +#include "internal/cryptlib.h" +#include +#include DH *DH_generate_parameters(int prime_len, int generator, void (*callback) (int, int, void *), void *cb_arg) @@ -43,4 +46,3 @@ DH *DH_generate_parameters(int prime_len, int generator, DH_free(ret); return NULL; } -#endif