mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-03 17:59:07 -04:00
34 lines
1.0 KiB
Plaintext
34 lines
1.0 KiB
Plaintext
$NetBSD: patch-bd,v 1.4 2010/09/10 03:29:00 taca Exp $
|
|
|
|
Suppress warnings.
|
|
|
|
--- ext/openssl/ossl.c.orig 2010-06-21 09:18:59.000000000 +0000
|
|
+++ ext/openssl/ossl.c
|
|
@@ -15,7 +15,7 @@
|
|
* String to HEXString conversion
|
|
*/
|
|
int
|
|
-string2hex(char *buf, int buf_len, char **hexbuf, int *hexbuf_len)
|
|
+string2hex(const unsigned char *buf, int buf_len, char **hexbuf, int *hexbuf_len)
|
|
{
|
|
static const char hex[]="0123456789abcdef";
|
|
int i, len = 2 * buf_len;
|
|
@@ -464,7 +464,7 @@ Init_openssl()
|
|
/*
|
|
* Verify callback Proc index for ext-data
|
|
*/
|
|
- if ((ossl_verify_cb_idx = X509_STORE_CTX_get_ex_new_index(0, "ossl_verify_cb_idx", 0, 0, 0)) < 0)
|
|
+ if ((ossl_verify_cb_idx = X509_STORE_CTX_get_ex_new_index(0, (void *)"ossl_verify_cb_idx", 0, 0, 0)) < 0)
|
|
ossl_raise(eOSSLError, "X509_STORE_CTX_get_ex_new_index");
|
|
|
|
/*
|
|
@@ -506,7 +506,7 @@ Init_openssl()
|
|
* Check if all symbols are OK with 'make LDSHARED=gcc all'
|
|
*/
|
|
int
|
|
-main(int argc, char *argv[], char *env[])
|
|
+main(int argc, char *argv[])
|
|
{
|
|
return 0;
|
|
}
|