/soc/2015/mmcc/rand: d702ea80e16f: Check for SSL support more re...
Michael McConville
mmcconville at mykolab.com
Sat Aug 15 17:15:00 EDT 2015
Changeset: d702ea80e16ffe532279c43e244528aa9eefc9ed
Author: Michael McConville <mmcconville at mykolab.com>
Date: 2015-08-15 17:14 -0400
Branch: default
URL: https://hg.pidgin.im/soc/2015/mmcc/rand/rev/d702ea80e16f
Description:
Check for SSL support more reliably
diffstat:
libpurple/util.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff --git a/libpurple/util.c b/libpurple/util.c
--- a/libpurple/util.c
+++ b/libpurple/util.c
@@ -4997,7 +4997,7 @@ purple_util_random(void *buf, size_t len
PurpleSslOps *ops = purple_ssl_get_ops();
/* use SSL API if available... */
- if (ops && ops->rand_bytes) {
+ if (purple_ssl_is_supported() && ops && ops->rand_bytes) {
return (ops->rand_bytes)(buf, len);
/* ...otherwise, fall back to /dev/urandom */
} else {
More information about the Commits
mailing list