Skip to content

Commit bf4c941

Browse files
Timothy Leggetimlegge
authored andcommitted
Another SvPV returns char * not unsigned char *
1 parent 01414b7 commit bf4c941

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

PKCS10.xs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,13 +194,13 @@ int add_ext(STACK_OF(X509_EXTENSION) *sk, X509_REQ *req, int nid, char *value)
194194

195195
/* Add an extention by setting the raw ASN1 octet string.
196196
*/
197-
int add_ext_raw(STACK_OF(X509_EXTENSION) *sk, int nid, unsigned char *value, int length)
197+
int add_ext_raw(STACK_OF(X509_EXTENSION) *sk, int nid, char *value, int length)
198198
{
199199
X509_EXTENSION *ex;
200200
ASN1_STRING *asn;
201201

202202
asn = ASN1_STRING_type_new(V_ASN1_OCTET_STRING);
203-
ASN1_OCTET_STRING_set(asn, value, length);
203+
ASN1_OCTET_STRING_set(asn, (unsigned char *) value, length);
204204

205205
ex = X509_EXTENSION_create_by_NID(NULL, nid, 0, asn);
206206
if (!ex)

0 commit comments

Comments
 (0)