Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
_gnutls_init++;
if (_gnutls_init > 1) {
- if (_gnutls_init == 2 && _gnutls_init_ret == 0) {
- /* some applications may close the urandom fd
- * before calling gnutls_global_init(). in that
- * case reopen it */
- ret = _gnutls_rnd_check();
- if (ret < 0) {
- gnutls_assert();
- goto out;
- }
- }
ret = _gnutls_init_ret;
goto out;
}
void _gnutls_rnd_deinit(void);
int _gnutls_rnd_preinit(void);
-inline static int _gnutls_rnd_check(void)
-{
- return _rnd_system_entropy_check();
-}
-
#endif /* GNUTLS_LIB_RANDOM_H */