X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fopenssl%2Fprf.c;h=4412529621abc3bd36c44f94be3b170ee94b0c6e;hb=d917c8cb6b69475d568ccbe82389b9f2b3eb5e80;hp=13841c4d158ab4a9dce69328d9a55337d63de0cd;hpb=cb6cbf452f6183a00746afc5bff8f63f3f55235f;p=tinc diff --git a/src/openssl/prf.c b/src/openssl/prf.c index 13841c4d..44125296 100644 --- a/src/openssl/prf.c +++ b/src/openssl/prf.c @@ -19,6 +19,8 @@ #include "system.h" +#include + #include "digest.h" #include "prf.h" @@ -28,7 +30,7 @@ static bool prf_xor(int nid, const char *secret, size_t secretlen, char *seed, size_t seedlen, char *out, ssize_t outlen) { digest_t digest; - + if(!digest_open_by_nid(&digest, nid, -1)) return false;