diff options
Diffstat (limited to 'contrib/ntp/include/ntp_md5.h')
-rw-r--r-- | contrib/ntp/include/ntp_md5.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/ntp/include/ntp_md5.h b/contrib/ntp/include/ntp_md5.h index 2306b9a..01b417a 100644 --- a/contrib/ntp/include/ntp_md5.h +++ b/contrib/ntp/include/ntp_md5.h @@ -8,6 +8,7 @@ #ifdef OPENSSL # include "openssl/evp.h" +# include "libssl_compat.h" #else /* !OPENSSL follows */ /* * Provide OpenSSL-alike MD5 API if we're not using OpenSSL @@ -23,6 +24,9 @@ # endif typedef MD5_CTX EVP_MD_CTX; + +# define EVP_MD_CTX_free(c) free(c) +# define EVP_MD_CTX_new() calloc(1, sizeof(MD5_CTX)) # define EVP_get_digestbynid(t) NULL # define EVP_md5() NULL # define EVP_MD_CTX_init(c) |