mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-03 17:59:07 -04:00
25 lines
731 B
Plaintext
25 lines
731 B
Plaintext
$NetBSD: patch-el,v 1.1 2010/09/10 03:29:01 taca Exp $
|
|
|
|
* r18172: suppress warnings.
|
|
|
|
--- ext/openssl/ossl_rand.c.orig 2008-05-29 18:15:50.000000000 +0000
|
|
+++ ext/openssl/ossl_rand.c
|
|
@@ -99,7 +99,7 @@ ossl_rand_bytes(VALUE self, VALUE len)
|
|
int n = NUM2INT(len);
|
|
|
|
str = rb_str_new(0, n);
|
|
- if (!RAND_bytes(RSTRING_PTR(str), n)) {
|
|
+ if (!RAND_bytes((unsigned char *)RSTRING_PTR(str), n)) {
|
|
ossl_raise(eRandomError, NULL);
|
|
}
|
|
|
|
@@ -118,7 +118,7 @@ ossl_rand_pseudo_bytes(VALUE self, VALUE
|
|
int n = NUM2INT(len);
|
|
|
|
str = rb_str_new(0, n);
|
|
- if (!RAND_pseudo_bytes(RSTRING_PTR(str), n)) {
|
|
+ if (!RAND_pseudo_bytes((unsigned char *)RSTRING_PTR(str), n)) {
|
|
ossl_raise(eRandomError, NULL);
|
|
}
|
|
|