Skip to content

Instantly share code, notes, and snippets.

@dbussink
Created February 25, 2010 09:16
Show Gist options
  • Save dbussink/314389 to your computer and use it in GitHub Desktop.
Save dbussink/314389 to your computer and use it in GitHub Desktop.
diff --git a/lib/ext/openssl/ossl_x509name.c b/lib/ext/openssl/ossl_x509name.c
index ae50dc0..9348421 100644
--- a/lib/ext/openssl/ossl_x509name.c
+++ b/lib/ext/openssl/ossl_x509name.c
@@ -141,7 +141,7 @@ ossl_x509name_initialize(int argc, VALUE *argv, VALUE self)
unsigned char *p;
VALUE str = ossl_to_der_if_possible(arg);
StringValue(str);
- p = RSTRING_PTR(str);
+ p = (unsigned char*) RSTRING_PTR(str);
if(!d2i_X509_NAME((X509_NAME**)&DATA_PTR(self), &p, RSTRING_LEN(str))){
ossl_raise(eX509NameError, NULL);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment