Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: jruby/jruby
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 180000cd8d30
Choose a base ref
...
head repository: jruby/jruby
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: a516bba301f2
Choose a head ref
  • 7 commits
  • 78 files changed
  • 1 contributor

Commits on Jul 5, 2016

  1. Copy the full SHA
    cffb977 View commit details
  2. Copy the full SHA
    ca4f51f View commit details
  3. Copy the full SHA
    340f890 View commit details
  4. Copy the full SHA
    998d2ff View commit details
  5. Copy the full SHA
    2651ae0 View commit details
  6. Copy the full SHA
    331c093 View commit details
  7. Copy the full SHA
    a516bba View commit details
Showing with 26,978 additions and 2 deletions.
  1. +2 −0 lib/ruby/truffle/README.md
  2. +2 −2 lib/ruby/truffle/cext/ruby.h
  3. 0 lib/ruby/truffle/cext/ruby/config.h
  4. 0 lib/ruby/truffle/cext/ruby/io.h
  5. 0 lib/ruby/truffle/cext/ruby/thread.h
  6. 0 lib/ruby/truffle/cext/ruby/thread_native.h
  7. +22 −0 lib/ruby/truffle/openssl/openssl.rb
  8. +39 −0 lib/ruby/truffle/openssl/openssl/bn.rb
  9. +451 −0 lib/ruby/truffle/openssl/openssl/buffering.rb
  10. +59 −0 lib/ruby/truffle/openssl/openssl/cipher.rb
  11. +473 −0 lib/ruby/truffle/openssl/openssl/config.rb
  12. +84 −0 lib/ruby/truffle/openssl/openssl/digest.rb
  13. +41 −0 lib/ruby/truffle/openssl/openssl/pkey.rb
  14. +390 −0 lib/ruby/truffle/openssl/openssl/ssl.rb
  15. +176 −0 lib/ruby/truffle/openssl/openssl/x509.rb
  16. +1 −0 lib/ruby/truffle/truffle/openssl.rb
  17. +2 −0 test/truffle/cexts/nokogiri/.jruby-cext-build.yml
  18. 0 test/truffle/cexts/nokogiri/lib/nokogiri/.keep
  19. +6 −0 tool/jt.rb
  20. +1 −0 truffle/src/main/c/README.md
  21. +2 −0 truffle/src/main/c/openssl/.jruby-cext-build.yml
  22. +1,122 −0 truffle/src/main/c/openssl/depend
  23. +26 −0 truffle/src/main/c/openssl/deprecation.rb
  24. 0 truffle/src/main/c/openssl/extconf.h
  25. +157 −0 truffle/src/main/c/openssl/extconf.rb
  26. +171 −0 truffle/src/main/c/openssl/openssl_missing.c
  27. +236 −0 truffle/src/main/c/openssl/openssl_missing.h
  28. +1,234 −0 truffle/src/main/c/openssl/ossl.c
  29. +229 −0 truffle/src/main/c/openssl/ossl.h
  30. +1,994 −0 truffle/src/main/c/openssl/ossl_asn1.c
  31. +66 −0 truffle/src/main/c/openssl/ossl_asn1.h
  32. +87 −0 truffle/src/main/c/openssl/ossl_bio.c
  33. +19 −0 truffle/src/main/c/openssl/ossl_bio.h
  34. +1,116 −0 truffle/src/main/c/openssl/ossl_bn.c
  35. +23 −0 truffle/src/main/c/openssl/ossl_bn.h
  36. +958 −0 truffle/src/main/c/openssl/ossl_cipher.c
  37. +20 −0 truffle/src/main/c/openssl/ossl_cipher.h
  38. +82 −0 truffle/src/main/c/openssl/ossl_config.c
  39. +20 −0 truffle/src/main/c/openssl/ossl_config.h
  40. +449 −0 truffle/src/main/c/openssl/ossl_digest.c
  41. +20 −0 truffle/src/main/c/openssl/ossl_digest.h
  42. +576 −0 truffle/src/main/c/openssl/ossl_engine.c
  43. +19 −0 truffle/src/main/c/openssl/ossl_engine.h
  44. +382 −0 truffle/src/main/c/openssl/ossl_hmac.c
  45. +18 −0 truffle/src/main/c/openssl/ossl_hmac.h
  46. +405 −0 truffle/src/main/c/openssl/ossl_ns_spki.c
  47. +19 −0 truffle/src/main/c/openssl/ossl_ns_spki.h
  48. +1,955 −0 truffle/src/main/c/openssl/ossl_ocsp.c
  49. +23 −0 truffle/src/main/c/openssl/ossl_ocsp.h
  50. +234 −0 truffle/src/main/c/openssl/ossl_pkcs12.c
  51. +13 −0 truffle/src/main/c/openssl/ossl_pkcs12.h
  52. +184 −0 truffle/src/main/c/openssl/ossl_pkcs5.c
  53. +6 −0 truffle/src/main/c/openssl/ossl_pkcs5.h
  54. +1,120 −0 truffle/src/main/c/openssl/ossl_pkcs7.c
  55. +20 −0 truffle/src/main/c/openssl/ossl_pkcs7.h
  56. +445 −0 truffle/src/main/c/openssl/ossl_pkey.c
  57. +247 −0 truffle/src/main/c/openssl/ossl_pkey.h
  58. +633 −0 truffle/src/main/c/openssl/ossl_pkey_dh.c
  59. +662 −0 truffle/src/main/c/openssl/ossl_pkey_dsa.c
  60. +1,820 −0 truffle/src/main/c/openssl/ossl_pkey_ec.c
  61. +744 −0 truffle/src/main/c/openssl/ossl_pkey_rsa.c
  62. +237 −0 truffle/src/main/c/openssl/ossl_rand.c
  63. +18 −0 truffle/src/main/c/openssl/ossl_rand.h
  64. +2,625 −0 truffle/src/main/c/openssl/ossl_ssl.c
  65. +41 −0 truffle/src/main/c/openssl/ossl_ssl.h
  66. +330 −0 truffle/src/main/c/openssl/ossl_ssl_session.c
  67. +15 −0 truffle/src/main/c/openssl/ossl_version.h
  68. +108 −0 truffle/src/main/c/openssl/ossl_x509.c
  69. +120 −0 truffle/src/main/c/openssl/ossl_x509.h
  70. +302 −0 truffle/src/main/c/openssl/ossl_x509attr.c
  71. +855 −0 truffle/src/main/c/openssl/ossl_x509cert.c
  72. +558 −0 truffle/src/main/c/openssl/ossl_x509crl.c
  73. +480 −0 truffle/src/main/c/openssl/ossl_x509ext.c
  74. +530 −0 truffle/src/main/c/openssl/ossl_x509name.c
  75. +486 −0 truffle/src/main/c/openssl/ossl_x509req.c
  76. +244 −0 truffle/src/main/c/openssl/ossl_x509revoked.c
  77. +692 −0 truffle/src/main/c/openssl/ossl_x509store.c
  78. +32 −0 truffle/src/main/c/openssl/ruby_missing.h
2 changes: 2 additions & 0 deletions lib/ruby/truffle/README.md
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
pr-zlib is version 1.0.3, commit c1418dd1abde5c4f6bcc7073b7965eeb4c168144
openssl is from MRI 2.3.1
openssl/openssl.rb has been modified to refer to 'openssl/openssl'
4 changes: 2 additions & 2 deletions lib/ruby/truffle/cext/ruby.h
Original file line number Diff line number Diff line change
@@ -34,7 +34,7 @@ extern "C" {
typedef void* ID;
typedef void* VALUE;

#define NORETURN __attribute__((__noreturn__))
#define NORETURN(X) __attribute__((__noreturn__)) X

// Constants

@@ -175,7 +175,7 @@ void rb_define_global_const(const char *name, VALUE value);

// Raising exceptions

NORETURN void rb_raise(VALUE exception, const char *format, ...);
NORETURN(void rb_raise(VALUE exception, const char *format, ...));

// Defining classes, modules and methods

Empty file.
Empty file added lib/ruby/truffle/cext/ruby/io.h
Empty file.
Empty file.
Empty file.
22 changes: 22 additions & 0 deletions lib/ruby/truffle/openssl/openssl.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# frozen_string_literal: false
=begin
= Info
'OpenSSL for Ruby 2' project
Copyright (C) 2002 Michal Rokos <m.rokos@sh.cvut.cz>
All rights reserved.
= Licence
This program is licensed under the same licence as Ruby.
(See the file 'LICENCE'.)
=end

#require 'openssl.so'
require 'openssl/openssl'

require 'openssl/bn'
require 'openssl/pkey'
require 'openssl/cipher'
require 'openssl/config'
require 'openssl/digest'
require 'openssl/x509'
require 'openssl/ssl'
39 changes: 39 additions & 0 deletions lib/ruby/truffle/openssl/openssl/bn.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# frozen_string_literal: false
#--
#
# = Ruby-space definitions that completes C-space funcs for BN
#
# = Info
# 'OpenSSL for Ruby 2' project
# Copyright (C) 2002 Michal Rokos <m.rokos@sh.cvut.cz>
# All rights reserved.
#
# = Licence
# This program is licensed under the same licence as Ruby.
# (See the file 'LICENCE'.)
#++

module OpenSSL
class BN
include Comparable

def pretty_print(q)
q.object_group(self) {
q.text ' '
q.text to_i.to_s
}
end
end # BN
end # OpenSSL

##
# Add double dispatch to Integer
#
class Integer
# Casts an Integer as an OpenSSL::BN
#
# See `man bn` for more info.
def to_bn
OpenSSL::BN::new(self)
end
end # Integer
Loading