X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fopenssl%2Fprf.c;h=b37efdf04be864ae28eba1dab1bf164d4ba724cb;hb=1bb969c9306812d0d5c954fe8db32ed1a248bf20;hp=13841c4d158ab4a9dce69328d9a55337d63de0cd;hpb=cb6cbf452f6183a00746afc5bff8f63f3f55235f;p=tinc diff --git a/src/openssl/prf.c b/src/openssl/prf.c index 13841c4d..b37efdf0 100644 --- a/src/openssl/prf.c +++ b/src/openssl/prf.c @@ -1,6 +1,6 @@ /* prf.c -- Pseudo-Random Function for key material generation - Copyright (C) 2011 Guus Sliepen + Copyright (C) 2011-2012 Guus Sliepen This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -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;