Project

General

Profile

Actions

Feature #9612

closed

Gemify OpenSSL

Added by zzak (zzak _) almost 11 years ago. Updated over 8 years ago.

Status:
Closed
Target version:
-
[ruby-core:61378]

Description

Previously in #9439 we discussed removing OpenSSL from Ruby, however this wasn't the right approach.

I would like to suggest Aaron's approach from ruby-core:60075

You can see his patch here: https://github.com/tenderlove/ruby/commit/fd96a5b

As ruby-core:60063 states, we will need to modify the visibility of thread_native.h as seen here: https://github.com/ruby/ruby/blob/8cacc6459/ext/openssl/ossl.c#L469-L480


Related issues 1 (0 open1 closed)

Related to Ruby master - Feature #5481: Gemifying Ruby standard libraryClosedhsbt (Hiroshi SHIBATA)Actions

Updated by ko1 (Koichi Sasada) over 10 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

Applied in changeset r45944.


  • ext/openssl/depend: remove dependency from internal headers.
    [Feature #9612]
  • ext/openssl/ossl.c (ossl_fips_mode_set): ditto.
  • ext/coverage/depend: ditto.
  • include/ruby/thread_native.h: added.
    This header file only provides wrapper functions to control
    native threads. These wrapper functions are used by MRI
    implementation.
  • vm_core.h: use include/ruby/thread_native.h.
  • thread.c: ditto.
  • thread_pthread.h: ditto.
  • thread_win32.h: ditto.
  • thread_native.h: removed.

Updated by ko1 (Koichi Sasada) over 10 years ago

  • Status changed from Closed to Open

Modified.

But current version doesn't work on 2.1.2 or before.

Updated by nobu (Nobuyoshi Nakada) over 10 years ago

  • Status changed from Open to Closed

Applied in changeset r45945.


openssl/depend: ossl.o

  • ext/openssl/depend (ossl.o): now depends on thread_native.h
    under $(hdrdir) instead of $(top_srcdir). [Feature #9612]

Updated by nobu (Nobuyoshi Nakada) over 10 years ago

  • Status changed from Closed to Open

It might be better to create a subtask?

Updated by zzak (zzak _) over 10 years ago

Awesome, thanks so much @ko1 (Koichi Sasada)!!!

We should consider this for 2.2.0, adding a gemspec with required_ruby_version to match.

Updated by naruse (Yui NARUSE) about 10 years ago

  • Related to Feature #5481: Gemifying Ruby standard library added

Updated by headius (Charles Nutter) about 10 years ago

So will this be a default gem in 2.2? Has there been enough testing?

Because many Rubyists will now start putting "openssl" in their Gemfile, I think we need to get JRuby's version of openssl released as a -java platform gem.

I've started this process locally in the jruby/openssl fork of ruby/openssl. I hope we could work from one codebase in the future.

Updated by naruse (Yui NARUSE) about 10 years ago

  • Target version changed from 2.2.0 to 2.6

No, 2.2 doesn't include gemifying openssl.

Actions #10

Updated by zzak (zzak _) over 9 years ago

  • Assignee set to 7150

Updated by hsbt (Hiroshi SHIBATA) over 8 years ago

  • Status changed from Open to Assigned
  • Assignee changed from 7150 to rhenium (Kazuki Yamaguchi)
Actions #12

Updated by Anonymous over 8 years ago

  • Status changed from Assigned to Closed

Applied in changeset r56027.


import Ruby/OpenSSL 2.0.0.beta.1

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0