Skip to content

Commit

Permalink
Showing 3 changed files with 2 additions and 7 deletions.
6 changes: 1 addition & 5 deletions lib/ruby/truffle/cext/ruby.h
Original file line number Diff line number Diff line change
@@ -52,11 +52,7 @@ extern "C" {

// Basic types

#ifdef JT_INT_VALUE
typedef uintptr_t VALUE;
#else
typedef void *VALUE;
#endif
typedef void *VALUE;

typedef VALUE ID;

1 change: 0 additions & 1 deletion tool/jt.rb
Original file line number Diff line number Diff line change
@@ -547,7 +547,6 @@ def build(*options)
unless no_openssl
cextc "#{JRUBY_DIR}/truffle/src/main/c/openssl",
'-DRUBY_EXTCONF_H="extconf.h"',
'-DJT_INT_VALUE=true',
'-Werror=implicit-function-declaration'
end
when nil
2 changes: 1 addition & 1 deletion truffle/src/main/c/openssl/ossl_ocsp.c
Original file line number Diff line number Diff line change
@@ -399,7 +399,7 @@ ossl_ocspreq_sign(int argc, VALUE *argv, VALUE self)
else
md = GetDigestPtr(digest);
if (NIL_P(certs))
flags |= OCSP_NOCERTS;
0;//flags |= OCSP_NOCERTS;

This comment has been minimized.

Copy link
@eregon

eregon Aug 25, 2016

Member

This sound suspicious code, since OCSP_NOCERTS is just #define OCSP_NOCERTS 0x1.
But flags are actually ignored in this method??
It looks like it should be flg |= OCSP_NOCERTS, in which case it's a bug :)

else
x509s = ossl_x509_ary2sk(certs);

0 comments on commit 5c6e0af

Please sign in to comment.