diff options
author | gotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-08-24 00:09:47 +0000 |
---|---|---|
committer | gotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-08-24 00:09:47 +0000 |
commit | 22af994534bcdf81138b42c741a8b57fe09453e1 (patch) | |
tree | 4d6678955d122c015aedbfe7c3fc246b2e8162d1 /ext/openssl/ossl_x509name.c | |
parent | f0189a046c5b78cabcd521c430e48e8fc5fc29d4 (diff) | |
download | ruby-22af994534bcdf81138b42c741a8b57fe09453e1.tar.gz ruby-22af994534bcdf81138b42c741a8b57fe09453e1.tar.xz ruby-22af994534bcdf81138b42c741a8b57fe09453e1.zip |
* ext/openssl/ossl_x509attr.c (ossl_x509attr_initialize): d2i
functions may replace the pointer indicated by the first argument.
* ext/openssl/ossl_x509ext.c (ossl_x509ext_initialize): ditto.
* ext/openssl/ossl_x509name.c (ossl_x509name_initialize): ditto.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6811 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/openssl/ossl_x509name.c')
-rw-r--r-- | ext/openssl/ossl_x509name.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/openssl/ossl_x509name.c b/ext/openssl/ossl_x509name.c index ee414b606..b19815750 100644 --- a/ext/openssl/ossl_x509name.c +++ b/ext/openssl/ossl_x509name.c @@ -130,7 +130,7 @@ ossl_x509name_initialize(int argc, VALUE *argv, VALUE self) VALUE str = ossl_to_der_if_possible(arg); StringValue(str); p = RSTRING(str)->ptr; - if(!d2i_X509_NAME(&name, &p, RSTRING(str)->len)){ + if(!d2i_X509_NAME((X509_NAME**)&DATA_PTR(self), &p, RSTRING(str)->len)){ ossl_raise(eX509NameError, NULL); } } |