X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fopenssl%2Fprf.c;h=b37efdf04be864ae28eba1dab1bf164d4ba724cb;hb=70a1a5594af5d4e6a364186b42ba4e34c676009b;hp=1c432c7dd5a399ffe4cb4a5aaa2369597ad5821f;hpb=40c28589328a2aa96c2ce1419c5d90616c758b3d;p=meshlink diff --git a/src/openssl/prf.c b/src/openssl/prf.c index 1c432c7d..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 @@ -30,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;