mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
ENGINE_load_public_key takes four arguments since OpenSSL-0.9.7
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4656 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
08ba967d26
commit
56db4c8fb0
1 changed files with 1 additions and 1 deletions
|
@ -225,7 +225,7 @@ ossl_engine_load_pubkey(int argc, VALUE *argv, VALUE self)
|
|||
sid = StringValuePtr(id);
|
||||
sdata = NIL_P(data) ? NULL : StringValuePtr(data);
|
||||
GetEngine(self, e);
|
||||
#if OPENSSL_VERSION_NUMBER < 0x0090702fL
|
||||
#if OPENSSL_VERSION_NUMBER < 0x00907000L
|
||||
pkey = ENGINE_load_public_key(e, sid, sdata);
|
||||
#else
|
||||
pkey = ENGINE_load_public_key(e, sid, NULL, sdata);
|
||||
|
|
Loading…
Reference in a new issue