[#74812] Drag and Drop in Windows with Explorer — Tom Felker <tcfelker@...>
I need to make a Windows program with RXRuby that batch processes audio
[#74824] Please read carefully — Ata Oyima <ataoyima55@...>
FROM: MR. ATA OYIMA
[#74825] Millisecond in time. — place4oracle@... (Warren)
Hi,
Warren wrote:
Harry Ohlsen wrote:
On Tue, Jul 01, 2003 at 07:28:48PM +0900, Anders Borch wrote:
Given that we're talking about modulo arithmetic :-) ...
>>>>> "H" == Harry Ohlsen <harryo@qiqsolutions.com> writes:
ts wrote:
>>>>> "H" == Harry Ohlsen <harryo@qiqsolutions.com> writes:
[#74829] inifinity recursion && test/unit — Andrey Kulinich <Andrey.Kulinich@...>
Without test/unit ruby finished work and said that stack level too deep.
On Tue, Jul 01, 2003 at 05:34:06PM +0900, Andrey Kulinich wrote:
On Tue, Jul 01, 2003 at 08:38:42PM +0900, Andrey Kulinich wrote:
[#74837] Sorting a Hash — oadartse@... (Osuka)
I'm Having some trouble sorting a hash!, the hash contents are like
[#74853] Aeditor-0.1 is unleashed — "Simon Strandgaard" <0bz63fz3m1qt3001@...>
Aeditor is a editor-widget written in Ruby. The primary
On Tue, 01 Jul 2003 15:32:24 +0200, Simon Strandgaard wrote:
[#74865] DBD::Oracle9 and non-blocking mode — Jim Cain <list@...>
I'm about ready to make available an early copy of my library, but first
On Wed, Jul 02, 2003 at 01:04:00AM +0900, Jim Cain wrote:
[#74866] IP arithmetic — Brian Candler <B.Candler@...>
Are there any functions in the Ruby standard library which convert
[#74884] Speaking of I18N... — "Hal E. Fulton" <hal9000@...>
I don't suppose anyone has implemented any
Hal E. Fulton wrote:
[#74894] rb_gc() and scan stack — "Simon Strandgaard" <0bz63fz3m1qt3001@...>
I were experimenting with Init_stack, when I discovered a flaw in my mind.
[#74909] FXDataTarget not updating my variable — Hans Fugal <fugalh@...>
I have the following:
[#74912] Ruby9i now available — Jim Cain <list@...>
All,
In article <3F026D44.7090802@jimcain.us>, Jim Cain <list@jimcain.us> wrote:
[#74934] Question about streaming on Ruby — "Rob" <robson@...>
I have a problem which I even don't know where to start.
[#74962] Base of Numbers — volker_grabsch@... (Volker Grabsch)
Hello Folks!
Sorry, small self-correction:
[#74969] Vote for Ruby in Linux Journal Poll — "Yannick Foll" <yfoll@9online.fr>
http://www.linuxjournal.com/rc2003/
[#74980] OT: It's that time of year again ... — james_b <james_b@...>
Happy Birthmonth to all fellow Rubyists born in July!
-----BEGIN PGP SIGNED MESSAGE-----
Saluton!
----- Original Message -----
[#75023] A Quick Guide to SQLite and Ruby — why the lucky stiff <ruby-talk@...>
-Talkers:
Awesome!
Richard Kilmer (rich@infoether.com) wrote:
At 11:32 +0900 7/3/03, why the lucky stiff wrote:
Paul DuBois wrote:
"Curt Hibbs" <curt@hibbs.com> wrote in message news:<INEGJNJOFAMNDPNEABNEEECHHAAA.curt@hibbs.com>...
[#75042] Auto-serialization (as in Vapor, sql-serialize, etc.): detecting changes to instance variables — Jim Cain <list@...>
All,
Jim Cain wrote:
[#75052] Ruby and Windows interaction — Kingsley Hendrickse <KHendric@...>
Hi
[#75068] rjni: Java binding for Ruby through JNI -- tech. preview — Mauricio Fern疣dez <batsman.geo@...>
[#75104] rb_gc_mark(): unknown data type...non object — Jim Cain <list@...>
I figure I'm getting this because I've got a VALUE that's not a Ruby
[#75118] Ruby, Threads and Processes — gm@... (George Moschovitis)
Hello everybody,
[#75119] purpose of replace method — Ian Macdonald <ian@...>
Hi,
Ian Macdonald wrote:
On Sat, Jul 05, 2003 at 05:58:37AM +0900, Nigel Gilbert wrote:
[#75128] RAA Modules and Ruby 1.8 — Stefan Arentz <stefan.arentz@...>
[#75137] How to create Shell Links on Windows? — Timon Christl <me@...>
Is there an easy way to create or modify shell links (.lnk) with ruby on
----- Original Message -----
[#75142] Stuck with Telnet still — Kingsley Hendrickse <KHendric@...>
Hi
[#75160] seeking feedback on my first Ruby program — "Joe Cheng" <code@...>
I just took my first stab at writing a useful Ruby program. My programming
How do I get access to what's in $stderr in the form of a string?
[#75167] Using ruby-pam in a CGI — Samuel Tesla <samuel@...>
I'm looking at writing some simple control panel software for my
[#75193] Ruby Code Snippet: Array.count — Stefan Arentz <stefan.arentz@...>
Stefan Arentz wrote:
On Sat, 05 Jul 2003 14:20:35 +0900, Dave Thomas wrote:
[#75254] unclose 0.1 alpha — Koen Vervloesem <koen.vervloesem@...>
Hi,
Koen Vervloesem wrote:
il Sun, 6 Jul 2003 04:21:48 +0900, Joel VanderWerf
[#75271] confirmation — <TristanWW@...>
Confirmation for ruby-talk@ruby-lang.org
[#75295] Freezing an arbitary object — "Aryeh M. Frierdman" <aryeh@...>
Lets say I am doing design by contract and want to do a call like this:
[#75307] Need regex to match "^\n" — Jim Freeze <jim@...>
Hi:
On 2003.07.07, Jim Freeze <jim@freeze.org> wrote:
[#75325] trapping compile time errors — "Gerard A.W. Vreeswijk" <gv@...>
Hi,
[#75336] Ruby books — jolsen@... (Jesper Olsen)
What is the best book for learning Ruby (Ruby specifically, not
[#75343] Marshaling objects partially — Ronald Pijnacker <rhp@...>
Hi!
Hi,
> Hi,
> > Hi,
>>>>> "R" == Ronald Pijnacker <rhp@dse.nl> writes:
[#75352] ModRuby / Apache2.0 worker mpm — gm@... (George Moschovitis)
Hi there,
[#75363] People in/near Austin, Texas? — "Hal E. Fulton" <hal9000@...>
Who here is in or near Austin, Texas?
----- Original Message -----
[#75364] Integer method? — internetletter@... (s moon)
I found following exp from html_parser.rb
[#75365] : Using Events — Steve Tuckner <STUCKNER@...>
Hello all,
[#75369] Code Snippet: Array.shuffle — Stefan Arentz <stefan.arentz@...>
On Wed, Jul 09, 2003 at 08:50:59PM +0900, Joe Gwozdecki wrote:
On Wed, Jul 09, 2003 at 09:35:22PM +0900, Brian Candler wrote:
On Wed, Jul 09, 2003 at 09:45:33PM +0900, Mauricio Fern疣dez wrote:
[#75404] Integrations tests and $: — Jim Freeze <jim@...>
Hi:
[#75415] rubygarden.org FAQ broken — Eric Schwartz <emschwar@...>
I sent this mail to <webmaster@rubygarden.org>, but apparently that
[#75420] My brief and torrid affair with Ruby. — Ray Cote <rgacote@...>
Hi List:
-----BEGIN PGP SIGNED MESSAGE-----
At 9:08 AM +0900 7/9/03, Daniel Carrera wrote:
-----BEGIN PGP SIGNED MESSAGE-----
They don't call GPL a legal virus for nothing:
Stephyn Butcher wrote:
-----BEGIN PGP SIGNED MESSAGE-----
* Daniel Carrera <dcarrera@math.umd.edu> [0714 03:14]:
Rasputin wrote:
----- Original Message -----
-----BEGIN PGP SIGNED MESSAGE-----
> > Are you honestly saying that you don't understand
-----BEGIN PGP SIGNED MESSAGE-----
Sorry for this long post and rambling. Just skip if you're not in
-----BEGIN PGP SIGNED MESSAGE-----
Austin Ziegler <austin@halostatue.ca> skrev den Thu, 10 Jul 2003 10:10:03
"Josef 'Jupp' Schugt" <jupp@gmx.de> wrote in message
On Sat, 12 Jul 2003 09:39:06 +0900, Sean O'Dell wrote:
-----BEGIN PGP SIGNED MESSAGE-----
"Daniel Carrera" <dcarrera@math.umd.edu> wrote in message
-----BEGIN PGP SIGNED MESSAGE-----
----- Original Message -----
-----BEGIN PGP SIGNED MESSAGE-----
* Daniel Carrera <dcarrera@math.umd.edu> [0705 21:05]:
OK, Daniel, let's put it this way: if you do not use something there's
-----BEGIN PGP SIGNED MESSAGE-----
> GPL code imposes a condition upon its use that some people don't like.
-----BEGIN PGP SIGNED MESSAGE-----
"Samuel Tesla" <samuel@alieniloquent.com> wrote in message
On Thu, 10 Jul 2003 05:17:48 +0900, Daniel Carrera
On Fri, 11 Jul 2003 08:50:18 +0900, Daniel Carrera
I don't believe the GPL is specific about the library sharing the same
[#75438] NASA using Ruby? — Harry Ohlsen <harryo@...>
I noticed a reference in the intro blurb for Dave Thomas's talk at OSCON to NASA doing numerical simulations using Ruby.
On Thu, 10 Jul 2003 04:20:40 +0900, Hal E. Fulton wrote:
On Wednesday 09 July 2003 1:52 pm, Simon Strandgaard wrote:
On Wednesday 09 July 2003 01:38 pm, Tom Felker wrote:
[#75445] Possible use for a continuation? [Generating all factors of a given number] — Harry Ohlsen <harryo@...>
Imagine I have an array of arrays, representing the prime factorisation of a number.
daz wrote:
[#75449] Clarifiction needed about versions — mkcon@... (Martin Kahlert)
Hi!
on 7/9/03 2:08 AM, Martin Kahlert at mkcon@gmx.de wrote:
[#75456] Building Ruby 1.8 preview 3 — "Gavin Sinclair" <gsinclair@...>
Folks,
> Creating library file: libcygwin-ruby18.dll.a
patrick zesar (jonnypichler@gmx.net) wrote:
On Wednesday, July 9, 2003, 8:26:08 PM, Gour wrote:
[#75458] Re: Array.each — "Pe, Botp" <botp@...>
Brian Candler [mailto:B.Candler@pobox.com] wrote:
On Wed, Jul 09, 2003 at 05:56:38PM +0900, "Pe, Botp" wrote:
>>>>> "B" == Brian Candler <B.Candler@pobox.com> writes:
On Wed, Jul 09, 2003 at 06:47:45PM +0900, ts wrote:
>>>>> "B" == Brian Candler <B.Candler@pobox.com> writes:
On Wed, 2003-07-09 at 06:08, ts wrote:
>>>>> "G" == Guillaume Marcais <guslist@free.fr> writes:
[#75512] build problems with 1.8, solaris and sparc options — Daniel Berger <djberge@...>
Hi all,
[#75570] Ruby T-Shirt Idea — shout@... (Austin King)
Keywords: advocacy, silly t-shirts, Request For Feedback
----- Original Message -----
On Thu, Jul 10, 2003 at 12:38:10PM +0900, Hal E. Fulton wrote:
-----BEGIN PGP SIGNED MESSAGE-----
[#75591] Linguistics-1.01 — Michael Granger <ged@...>
Hi fellow Rubyists,
[#75631] OSCON "Ruby in a day" Dave's slides — Pierre Baillet <oct@...>
Hi,
[#75636] Re: OT: GPL - was Re: My brief and torrid affair with Ruby. — "David Douthitt" <DDouthitt@...>
If you want the least restrictive "license" available, then your work
[#75651] OSCON report — ptkwt@...1.aracnet.com (Phil Tomson)
Matz's talk "The Power and Philosophy of Ruby " was standing room only
[#75654] Re: Ruby T-Shirt Idea — "Orion Hunter" <orion2480@...>
What we need is a code snippet that is excessively long and obfuscate in
----- Original Message -----
Bermejo, Rodrigo graced us by uttering:
Saluton!
[#75696] A Ruby XSL stylesheet for DocBook? — Jim Cain <list@...>
I'm writing documentation for my Oracle library, and I was wondering if
On Fri, 11 Jul 2003 08:54:59 +0900, Jim Cain wrote:
Austin Ziegler wrote:
On Fri, 11 Jul 2003 11:35:31 +0900, Jim Cain wrote:
[#75708] Regular expression contradiction — "Gavin Sinclair" <gsinclair@...>
Folks,
[#75730] RubyCocoa 0.4.0 path [?] Issue — Stephyn Butcher <tendzin.dorje@...>
Any Mac OS X/Ruby users out there?
[#75765] cgi.rb broken in Ruby 1.8.0 p3 — gm@... (George Moschovitis)
Hi there,
[#75767] Getting my IP address — Philip Mak <pmak@...>
Is there a piece of Ruby code somewhere that will tell me what my IP
ts <decoux@moulon.inra.fr> wrote in message news:<200307121340.h6CDeV804312@moulon.inra.fr>...
[#75774] Ruby & Cyrillic (Russian encodings) — Armin Roehrl <armin@...>
Hi,
[#75777] Re: OSCON report — "Volkmann, Mark" <Mark.Volkmann@...>
> -----Original Message-----
Hi,
On Sat, 12 Jul 2003, Yukihiro Matsumoto wrote:
[#75788] Re: [OT] Humans and dictionaries (was Re: My brief and torrid aff airwith Ruby.) — "Womick, Don" <don.womick@...>
I don't know... "pro-choice" carries even more baggage than "viral",
Womick, Don wrote:
[#75790] Ruby talk from LL2 — Stefan Arentz <stefan.arentz@...>
[#75800] cross-corr time/array lag problem — qubert@... (Qubert)
I am starting to find the "Way" now, but I have a problem.
[#75818] do...end vs. begin..end — "Kurt M. Dresner" <kdresner@...>
I realize what the difference between these two block delimiters is, but
[#75838] Ruby LISP-ish stuff — "Moses Hall" <moses@...>
I was wondering if there are plans to add some of the more useful LISP
[#75846] Ruby on an embedded ARM processor — Ben Giddings <ben@...>
Hi all,
[#75852] ruby-mysql library load error — eric.anderson@... (Eric Anderson)
I am trying to get the ruby dbi library up and running on my machine.
As Brian Candler pointed out, what I posted is not what I meant to
I'm not certain if this is a case of the blind leading the blind
[#75913] abnormal program termination with dynamic data, but not with fixed data — walter@...
hi everyone. I am stumped!
[#75952] programming a bird -- yes! — gv@... (Gerard A.W. Vreeswijk)
Hello all,
[#75958] OSSL 0.2.0-pre3 — Michal Rokos <m.rokos@...>
Hello folks,
Hi,
On Tue, Jul 15, 2003 at 03:06:28AM +0900, Yukihiro Matsumoto wrote:
In message <20030715091319.GH30869@sam-solutions.net>,
On Wed, Jul 16, 2003 at 06:34:21PM +0900, GOTOU Yuuzou wrote:
[#75963] Custom method_missing doesn't trap super call — Richard Dale <Richard_Dale@...>
When I run the code below it produces the following output:
Yukihiro Matsumoto wrote:
In message "Re: Custom method_missing doesn't trap super call"
Yukihiro Matsumoto wrote:
Yukihiro Matsumoto wrote:
Brian Candler wrote:
[#75967] help - calling methods in a hash with parameters — Tuan Bui <tuanbui@...>
Hiya,
[#75975] Booleans — "Mark J. Reed" <markjreed@...>
Okay, as a convert from Perl to Ruby, I have to say that I love
[#75991] ruby-specific CGI question (I think) — "Kurt M. Dresner" <kdresner@...>
I'm using sessions and forms in my cgi script.
----- Original Message -----
On Tue, Jul 15, 2003 at 10:45:52AM +0900, Hal E. Fulton wrote:
Here's my code folks. Again, I don't profess to have anything that is
On Tue, Jul 15, 2003 at 11:10:55AM +0900, Kurt M. Dresner wrote:
[#76058] How to reduce Ruby runtime error? — Xiangrong Fang <xrfang@...>
Hi my friends,
----- Original Message -----
[#76074] += vs << when appending arrays to an array — Doug Beaver <doug@...>
hello,
[#76083] Using threads to obtain a value — kapheine@... (Zachary P. Landau)
I have a few classes that all try to obtain the same data as each
[#76088] how to temporaly change enviroment variable — Roman Dolgov <roman_dolgov@...>
Hi All,
[#76104] Ruby developers — "maillist@..." <maillist@...>
Hi,
[#76117] soap4r 1.4.8.1 with REXML 2.7.1 - no REXML::VERSION_MAJOR — Damphyr <damphyr@...>
I grabbed the latest soap4r and had a go with the wsdl driver, only to
[#76121] Keyword "with" — "Robert Klemme" <bob.news@...>
Robert Klemme wrote:
Hrm, well I'm a Ruby/Java/C/C++/Python/Perl/Lisp/Javascript/PHP...
>
Brian Candler <B.Candler@pobox.com> wrote:
Peter (having a bad day) Hickman wrote:
----- Original Message -----
On Friday, July 18, 2003, 5:30:00 AM, Hal wrote:
On Saturday, July 19, 2003, at 03:08 AM, Gavin Sinclair wrote:
First, I simply don't agree with the statement that "x += 1" is a rarity
[#76135] Passing arguments to 'env ruby' on OS X — Jim Freeze <jim@...>
When using env on the shebang line,
[#76145] Advocacy: Ruby on/with .net — "Thomas Sondergaard" <thomass@...>
I'd like a minute or two of your time as I try to sell you the idea of ruby
On Mon, 21 Jul 2003 19:28:48 +0900, Mauricio Fern疣dez
Lothar Scholz <mailinglists@scriptolutions.com> wrote in message news:<1173309890.20030719135052@scriptolutions.com>...
[#76167] Re: Other languages' features in Ruby — "Mark J. Reed" <markjreed@...>
BG = Ben Giddings
[#76191] Test::Unit no tests specified — Chris Morris <chrismo@...>
I browsed the previous thread about this topic -- I'm in favor of
[#76196] OO Design question for Net::HTTP caching extension — Aredridel <aredridel@...>
I'm in the process of writing an HTTP-1.1 extension to Net::HTTP. At
On Thu, Jul 17, 2003 at 07:13:34AM +0900, Aredridel wrote:
[#76202] Togl widget, where to install it? — Massimiliano Mirra - bard <mmirra@...>
[#76206] callbacks in ruby and using yield in resursion — Paul <webmaster@...>
Hi,
[#76244] reliable way of finding Objects Class? — walter@...
Hi,
[#76249] nil_or_empty? on String — Chris Morris <chrismo@...>
I just threw down the following -- it smells like I'm over-complicating
[#76254] What's the point? — Jim Freeze <jim@...>
Hi
> I've known for some time that methods can be defined inside
[#76301] Re: New Ruby book — Jack Herrington <jack_d_herrington@...>
On Thursday, July 17, 2003, at 02:49 PM, Gennady wrote:
It looks very good, I went through sample chapters and was impressed how
Thanks!
On Fri, 18 Jul 2003 08:19, Jack Herrington wrote:
[#76317] Question re: graphics output of CGIs (mime-type issue?) — "Hal E. Fulton" <hal9000@...>
What's the proper way to deliver a grpahical
* Hal E. Fulton <hal9000@hypermetrics.com> [0728 01:28]:
[#76323] Marshal efficiency — "Gavin Sinclair" <gsinclair@...>
Folks,
[#76336] Aliased setter methods behave differently than other methods? — Jim Cain <list@...>
Here's another question... I am aliasing and redefining certain methods,
Hi,
nobu.nokada@softhome.net wrote:
[#76342] $HOME install — "Simon Strandgaard" <0bz63fz3m1qt3001@...>
One of my friends (Johan Gade) asked me this question:
[#76365] what happened to Block class? — dblack@...
Hello --
[#76368] Re: New Ruby book — "Albert Chou" <achou@...>
I think to be fair you need to try out BeanShell. I've played with it
[#76372] Binary counter — ptkwt@...1.aracnet.com (Phil Tomson)
I needed to test a class which had a certain number of 'binary' inputs (ie. each input
[#76389] Ruby Golf: Object Diff — "John W. Long" <ws@...>
The problem:
Hi Mauricio,
[#76396] chaining comparisons — "Kurt M. Dresner" <kdresner@...>
When I learned python I was overjoyed that I could evaluate 1 < 2 < 3
On Saturday, July 19, 2003, 3:58:51 PM, Kurt wrote:
On Sat, 19 Jul 2003 15:58:51 +0900, Kurt M. Dresner wrote:
On Sat, Jul 19, 2003 at 05:08:03PM +0900, Simon Strandgaard wrote:
On Sat, 19 Jul 2003 14:58:51 +0900
[#76424] Proposal: Array#to_h, to simplify hash generation — Gavin Sinclair <gsinclair@...>
Hi -talk,
Hi,
On Sunday, July 20, 2003, 1:31:42 AM, Yukihiro wrote:
Hi,
On Saturday, July 19, 2003, at 12:56 PM, Yukihiro Matsumoto wrote:
Yukihiro Matsumoto <matz@ruby-lang.org> wrote:
Hi --
dblack@superlink.net wrote:
>
Hi --
On Monday, July 21, 2003, 8:18:50 PM, dblack wrote:
On Tue, 22 Jul 2003 00:59:50 +0900, Brian Candler wrote:
[#76428] Compiled win32ole 0.5.3? — "Chris Morris" <chrismo@...>
Anyone have a pre-compiled win32ole 0.5.3 available for download? I'm having
[#76442] dlopen is failing on Window XP works great on Window 2000 — Michael Davis <mdavis@...>
Hello,
[#76473] ruby documentation generator? — "Kurt M. Dresner" <kdresner@...>
I've been googling for a few minutes but I haven't found anything yet.
il Sun, 20 Jul 2003 12:29:28 +0900, Gavin Sinclair
il Mon, 21 Jul 2003 00:36:14 +0900, Austin Ziegler
[#76478] Pipeing Sockets — Pablo Lorenzzoni <spectra@...>
Hello ALL!
[#76497] Parsing POST and GET variables simultaneously? — David Heinemeier Hansson <david@...>
Isn't it possible to get variables from POST and GET simultaneously?
On Mon, Jul 21, 2003 at 12:39:08AM +0900, David Heinemeier Hansson wrote:
> Either way, you have to parse the string yourself, though. Identify
Somehow, despite the explicit instructions in my subject line,
[#76499] From Windows internal format to UTF-8? — "renoX" <renZYX@...>
Hello,
[#76551] matz thoughts on Rite ? — "Simon Strandgaard" <0bz63fz3m1qt3001@...>
I don't know much about Rite, therefore I ask.
On Tue, 22 Jul 2003 00:09:21 +0900, Yukihiro Matsumoto wrote:
> * will Rite use Mark&Sweep GC or something else ?
Hi,
[#76563] Deep copy — Jim Freeze <jim@...>
Hi
On Mon, 21 Jul 2003 18:31:21 +0200
[#76591] gsub(/\s*$/, "") doubling string — Paul Rubel <prubel@...>
Hello,
[#76619] Should String#strip take a parameter? — "Warren Brown" <wkb@...>
All,
Hi,
[#76625] RubyForge.org — Richard Kilmer <rich@...>
All,
On Tue, 22 Jul 2003 12:43:41 +0200, Oliver Bolzer wrote:
On Jul 24, Simon Strandgaard wrote:
> All,
On Tuesday 22 Jul 2003 3:38 am, Richard Kilmer wrote:
[#76630] Ruby interpreters for different platforms — "Kurt M. Dresner" <kdresner@...>
Okay guys, this is a bit of a stretch, but...
[#76647] callcc and insomnia — dolio@... (Dan Doel)
Hello,
[#76693] Bug report: ruby-1.8.0p3 fails to compile under FreeBSD-4.7 — Brian Candler <B.Candler@...>
gcc -fPIC -g -O2 -DDB_DBM_HSEARCH -DDBM_HDR="<db.h>" -I. -I/u/home/telinco/build/ruby/ruby-1.8.0 -I/u/home/telinco/build/ruby/ruby-1.8.0 -I/u/home/telinco/build/ruby/ruby-1.8.0/ext/dbm -DHAVE_DB_H -DHAVE_SYS_CDEFS_H -DHAVE___DB_NDBM_OPEN -DHAVE___DB_NDBM_CLEARERR -c dbm.c
Another (possible) problem with ruby-1.8.0p3
Hi,
[#76697] String substitution without RegEx — Andreas Schwarz <usenet@...>
I wanted to do a simple string substitution, and was surprised to see
[#76715] RegExp outermost () — Chris Morris <chrismo@...>
This may be a case where RegExp ain't the way to go, but I want to scan
Scripsit ille 暫hris Morrisォ <chrismo@clabs.org>:
[#76725] SMTP Date format? — Ben Giddings <ben@...>
Hey all,
Saluton!
On Wed July 23 2003 9:35 am, Josef 'Jupp' Schugt wrote:
[#76732] Ruby Spam Corpus — Daniel Carrera <dcarrera@...>
-----BEGIN PGP SIGNED MESSAGE-----
[#76751] New RDoc template, and a question — Dave Thomas <dave@...>
Michael Granger has produced a wonderful new RDoc template, which looks
On Wed, 23 Jul 2003 13:41:16 +0900, Dave Thomas <dave@pragprog.com>
On Wed, 23 Jul 2003 20:26:30 +0900, Jim Weirich wrote:
On Tue, 2003-07-22 at 22:41, Dave Thomas wrote:
Dave Thomas wrote:
On Tuesday, Jul 22, 2003, at 21:41 US/Pacific, Dave Thomas wrote:
[#76768] A different Version of Enumerable#inject — "Robert Klemme" <bob.news@...>
[#76783] Embedding problem - SEGV — Brian Candler <B.Candler@...>
I have a problem with embedding Ruby, which hopefully someone can shed some
>>>>> "B" == Brian Candler <B.Candler@pobox.com> writes:
On Wed, Jul 23, 2003 at 08:57:55PM +0900, ts wrote:
On Wed, Jul 23, 2003 at 08:49:38PM +0900, Brian Candler wrote:
[#76843] Re: [OT] subversion, was [ANN] RubyForge.org — "Bennett, Patrick" <Patrick.Bennett@...>
Hmm, the linuxworld article didn't really say anything useful about
On Thu, 24 Jul 2003 07:05:23 +0900, Bennett, Patrick wrote:
On Wed July 23 2003 5:28 pm, Simon Strandgaard wrote:
On Jul 24, Ben Giddings wrote:
[#76846] "regex literal in condition" — Daniel Carrera <dcarrera@...>
-----BEGIN PGP SIGNED MESSAGE-----
[#76870] Re: [OT] subversion, was [ANN] RubyForge.org — "Booth, Peter" <Peter.Booth@...>
For me, the deciding moment was after installed a demo version of Bitkeeper
[#76892] ruby 1.8.0 preview4 — matz@... (Yukihiro Matsumoto)
Hello,
On Thu, 2003-07-24 at 02:03, Yukihiro Matsumoto wrote:
On Thu, Jul 24, 2003 at 05:03:37PM +0900, Yukihiro Matsumoto wrote:
ossl_config.c:147: bad macro argument list
[#76896] Running a Ruby installation off a CD (under Windows) — Harry Ohlsen <harryo@...>
I've written some stuff I'd like to show to someone who doesn't already have Ruby installed.
[#76900] Re: [OT] subversion, was [ANN] RubyForge.org — "Bennett, Patrick" <Patrick.Bennett@...>
Well, for one, it only runs on Unix. That's a pretty big problem for
[#76910] Re: ruby 1.8.0 preview4 — "Berger, Daniel" <djberge@...>
More on preview4 warnings:
Hi,
Here are what IMO are the important warnings from FreeBSD-4.8, gcc version
[#76928] SWIG and char * parameters — Ben Giddings <ben@...>
I've just started to try to use SWIG to wrap a bunch of C functions so I can
[#76957] Packaging pure ruby files when using extconf.rb — Paul William <webmaster@...>
Hi,
>>>>> "P" == Paul William <webmaster@startlinux.co.nz> writes:
On Fri, Jul 25, 2003 at 04:27:47PM +0900, Paul William wrote:
On Fri, 2003-07-25 at 20:36, Mauricio Fern疣dez wrote:
[#76965] Add debug to help info — Robert Cowham <rc@...>
Is it just me or is how to debug a ruby script unnecessarily hidden?
[#76981] irb --readline — Wybo Dekker <wybo@...>
When I try to have readline support with:
Hi,
[#76984] Patches to 1.8.0p4 to add Bessel functions for those that have 'em — Mike Hall <mghall@...>
Here's some simple patches to configure.in, configure and math.c
Hi,
On Sat, Jul 26, 2003 at 01:41:35AM +0900, Yukihiro Matsumoto wrote:
[#76991] Confused about locking a file via file.flock(File::LOCK_EX) — Ludwigi Beethoven <aix_tech@...>
I am writing a ruby appl under AIX where I need to
>> Flock only works within the same process.
I guess I would have to grab the file and update it
On Sat, Jul 26, 2003 at 08:57:00PM +0900, Ludwigi Beethoven wrote:
[#76998] Trouble with inherited — Steve Tuckner <STUCKNER@...>
Anyone have an idea of why the following code doesn't work?
>>>>> "S" == Steve Tuckner <STUCKNER@MULTITECH.COM> writes:
What suggestion do you have to get information from the subclass that is
[#77007] Problem with class, struct, and to_s — Gavin Sinclair <gsinclair@...>
-talk,
[#77030] Euruko 03 - videos -- mirrors wanted; — Armin Roehrl <armin@...>
Hi all,
Armin Roehrl [mailto:armin@xss.de] wrote:
> BitTorrent (http://bitconjurer.org/BitTorrent/) might be ideal for this.
[#77032] Re: Slow ruby start up on XP — Yura Kloubakov <yura@...>
> -----Original Message-----
[#77036] UTF-8 -> iso8859-15 — Andreas Schwarz <usenet@...>
Simple Question: how can I convert UTF-8 strings (from REXML) to
[#77045] Quick way to find all drives in a windows box — Damphyr <damphyr@...>
Does anyone have a quick and elegant :) way to find all available drive
[#77082] Set doesn't have [] instance method — Gavin Sinclair <gsinclair@...>
It should, shouldn't it? It's meant to combine the fast lookup of
On Sunday, July 27, 2003, 3:28:06 AM, Gavin wrote:
On Sun, Jul 27, 2003 at 11:08:27AM +0900, Gavin Sinclair wrote:
On Wed, Jul 30, 2003 at 11:07:02AM +0900, Mark J. Reed wrote:
[#77084] Re: [ANN] rGenetic — "Orion Hunter" <orion2480@...>
>Interesting. I've got some GA and ES (Evolution Strategy) code that I
[#77087] What's wrong with ruby garden? — "Carl Youngblood" <carl@...>
It seems that Ruby Garden is down right now. Does anyone know what's
[#77091] YAML in Five Minutes — why the lucky stiff <ruby-talk@...>
Perhaps you've heard that Ruby 1.8.0 now includes YAML support, but
[#77094] How to rescue any exception in 1.8? — Philip Mak <pmak@...>
This code will catch the exception in Ruby 1.6:
[#77109] API changes in 1.8.0 — Brian Candler <B.Candler@...>
Has anyone written a summary of API changes between 1.6.8 and 1.8.0? If not,
[#77120] Your Assistance: — "James Kabila" <jameskabila@...>
From: James Kabila
[#77129] Ruby in Ruby — Austin Ziegler <austin@...>
Over on the pragprog list, Ron Jeffries suggested that it might be
On Mon, 28 Jul 2003, Austin Ziegler wrote:
On Wed, 30 Jul 2003 11:15:18 +0900, Robert Klemme wrote:
[#77136] irbrc location under windows — "Emmanuel Touzery" <emmanuel.touzery@...>
Hello,
[#77144] ruby 1.8.0 preview5 — matz@... (Yukihiro Matsumoto)
Hello,
[#77149] winsock problem? — Xiangrong Fang <xrfang@...>
Hi,
On Mon, Jul 28, 2003 at 08:22:49PM +0900, Xiangrong Fang wrote:
Hi Brian,
>>>>> "X" == Xiangrong Fang <xrfang@hotmail.com> writes:
Hi,
>>>>> "X" == Xiangrong Fang <xrfang@hotmail.com> writes:
I tried the following, but unfortunately does not work:
>>>>> "X" == Xiangrong Fang <xrfang@hotmail.com> writes:
[#77157] install questions — "Hal E. Fulton" <hal9000@...>
I have been thinking about installation
[#77171] aSocket.select — Paul Argentoff <argentoff@...>
Dear All,
[#77176] Fishing for ideas: Ruby-talk for Java coders — Armin Roehrl <armin@...>
Hi all,
On Mon July 28 2003 1:06 pm, Armin Roehrl wrote:
[#77183] smtp.sendmail security — "John W. Long" <ng@...>
We are using the following code to send email messages from an online form
[#77187] Generating random numbers? — Harry Ohlsen <harryo@...>
Can someone remind me of the name for the class/method for generating random
[#77196] A Slashdot mention of RubyForge... — "Tom Copeland" <tom@...>
...can be found here:
[#77197] Parser generator — "Rodrigo B. de Oliveira" <rodrigob@...>
I'm evaluating language/frameworks for creating a toy language compiler =
Clifford Heath <cjh_nospam@managesoft.com> skrev den 31 Jul 2003 09:24:23
[#77199] RPM spec for ruby 1.8.0-preview5 for Mandrake. — John Carter <john.carter@...>
Here is an RPM spec for ruby 1.8.0-preview5 that works for Mandrake 9.
[#77206] Singletons as globals and GC — Ben Giddings <ben@...>
Although Ruby allows the use of global variables, I still prefer not to
[#77208] Documentation for standard library -- what format? — William Webber <wew@...>
Hi all!
[#77227] Warnings? — Tim Bates <tim@...>
Hi all,
Hi,
How about a way to trap warnings similar to rescue Exception so we can trap and suppress certain expected warnings?
Hi,
[#77290] Passing a method block to a parent class — eric.anderson@... (Eric Anderson)
If I have
[#77298] is it possible to pipe ruby to more / cat / arbitrary programs? — Tuan Bui <tuanbui@...>
Good morning,
[#77343] Re: Ruby could be wildly more popular if it had ... — Kent Dahl <kentda@...>
Jeff Mitchell wrote:
[#77354] Ruby could be wildly more popular if it had ... — quixoticsycophant@... (Jeff Mitchell)
Brackets.
Saluton!
Chris Thomas <chris@m-audio.com> wrote:
On Fri, Aug 01, 2003 at 07:48:54PM +0900, Martin DeMello wrote:
Saluton!
On Sat, 2 Aug 2003 05:09:39 +0900, Josef 'Jupp' Schugt wrote:
[#77359] Hm... nice, Euclid is a one-liner — Rudolf Polzer <denshimeiru-sapmctacher@...>
a, b = b, a % b while b != 0
[#77368] Ruby => Rite, AST => Bytecode? — Austin Ziegler <austin@...>
Matz and fellow Rubyists,
[#77381] What's with -F in 1.8? — Jason Creighton <androflux@...>
Hello,
Hi,
On Wed 30 Jul 2003 at 15:43:15 +0900, Yukihiro Matsumoto wrote:
[#77408] Bignum multiplication — Harry Ohlsen <harryo@...>
I was just reading about Python 2.3 and they talked about how they've changed their arbitrary-precision integer multiplication to use the Karatsuba multiplication algorithm.
Hi,
Hi,
On Wed, 30 Jul 2003 19:46, Yukihiro Matsumoto wrote:
[#77452] collect_by — Martin DeMello <martindemello@...>
For all you FPers out there - is this a defined function in any
[#77454] MOO — james_b <james_b@...>
I ran across a thread on iwethey.org, where Jim Weirich wondered about
[#77475] Announce: #ruby.dk — "Anders K. Madsen" <madsen@...>
Sorry to bother all you non-danish folks, but...
[#77516] wanted: official mirrors for 1.8.0 — matz@... (Yukihiro Matsumoto)
Hello,
----- Original Message -----
Hello,
On Thursday 31 July 2003 12:50 am, Yukihiro Matsumoto wrote:
> > Others?
[#77528] ruby 1.8.0 preview6 — matz@... (Yukihiro Matsumoto)
Hello,
On Jul 31, Yukihiro Matsumoto wrote:
On Thu July 31 2003 11:42 am, Brett H. Williams wrote:
Hi,
[#77537] What's new in 1.8.0? — David Heinemeier Hansson <david@...>
I've been searching high and low for a prioritized presentation of what
[#77549] Feature request: stable sort — Brian Candler <B.Candler@...>
I've just been poking around and I see that ruby's sort is implemented by
Hi,
On Thu, Jul 31, 2003 at 10:48:49PM +0900, nobu.nokada@softhome.net wrote:
[#77588] RubyMirror on RubyForge — Richard Kilmer <rich@...>
RubyMirror is a RubyForge project which will hold Ruby source
[#77590] Spam at ruby-talk — Daniel Carrera <dcarrera@...>
I don't know who runs the ruby-talk mailing list. I've noticed that
Daniel Carrera wrote:
On Fri, Aug 01, 2003 at 03:37:54AM +0900, Dave Thomas wrote:
I've recently switched from spamassassin to spambayes with much improved results.
Thanks I'll keep that in mind. I'm using spamassassin because that's what
[#77592] Changing ==,>,<, etc — elbows@... (Nathan Weston)
The latest Perl exegesis
[#77623] Extracting a parent class — Michael Garriss <mgarriss@...>
Sorry about the newbie question but....
----- Original Message -----
Answer:
Sorry...I should have been more clear. While this works it does not
[Ann] OSSL 0.2.0-pre3
Hello Alex, here goes the DIFF. It's againt latest CVS of OSSL2. Could you please test it, so I can commit it to CVS? Michal
Attachments (1)
Index: extconf.rb
===================================================================
RCS file: /cvsroot/rubypki/ossl2/extconf.rb,v
retrieving revision 1.17
diff -u -p -r1.17 extconf.rb
--- extconf.rb 14 Jul 2003 20:36:57 -0000 1.17
+++ extconf.rb 21 Jul 2003 06:41:23 -0000
@@ -35,10 +35,6 @@ includes, = dir_config("openssl")
includes ||= "/usr/include"
message "=== OpenSSL for Ruby configurator ===\n"
-message "=== Checking for system dependent stuff... ===\n"
-have_header("unistd.h")
-have_header("sys/time.h")
-message "=== Checking for system dependent stuff done. ===\n"
##
@@ -80,32 +76,67 @@ end
def have_openssl_097(inc_dir)
# FIXME:
# checking_for("OpenSSL >= 0.9.7") do
- printf "Checking for OpenSSL >= 0.9.7..."
+ printf "checking for OpenSSL version... "
File.open(inc_dir+"/openssl/opensslv.h") {|f|
txt = f.read
- result = ((txt.grep(/#define SHLIB_VERSION_NUMBER/)[0].split '"')[1] < "0.9.7")
- puts result ? "no" : "yes"
- !result
+ puts (txt.grep(/#define SHLIB_VERSION_NUMBER/)[0].split '"')[1]
+ true
}
end
message "=== Checking for required stuff... ===\n"
result = have_header("openssl/crypto.h")
-result &= have_library(CRYPTOLIB, "OPENSSL_load_builtin_modules")
+result &= have_library(CRYPTOLIB, "OpenSSL_add_all_digests")
result &= have_library(SSLLIB, "SSL_library_init")
-result &= have_openssl_097(includes)
-have_func("rb_obj_init_copy", "ruby.h")
-have_func("HMAC_CTX_copy")
-have_func("X509_STORE_set_ex_data")
-
-if result
- message "=== Checking for required stuff done. ===\n"
- create_makefile("openssl")
- message "Done.\n"
-else
+if !result
message "=== Checking for required stuff failed. ===\n"
message "Makefile wasn't created. Fix the errors above.\n"
+ exit 1
end
+
+message "=== Checking for system dependent stuff... ===\n"
+have_header("unistd.h")
+have_header("sys/time.h")
+
+message "=== Checking for OpenSSL features... ===\n"
+have_openssl_097(includes)
+have_defined("PEM_read_bio_DSAPublicKey", "openssl/pem.h")
+have_defined("PEM_write_bio_DSAPublicKey", "openssl/pem.h")
+have_defined("DSAPrivateKey_dup", "openssl/dsa.h")
+have_defined("DSAPublicKey_dup", "openssl/dsa.h")
+have_defined("X509_REVOKED_dup", "openssl/x509.h")
+have_defined("PKCS7_SIGNER_INFO_dup", "openssl/pkcs7")
+have_defined("PKCS7_RECIP_INFO_dup", "openssl/pkcs7")
+have_func("HMAC_CTX_copy")
+have_func("X509_STORE_get_ex_data")
+have_func("X509_STORE_set_ex_data")
+have_func("EVP_MD_CTX_create")
+have_func("EVP_MD_CTX_cleanup")
+have_func("EVP_MD_CTX_destroy")
+have_func("PEM_def_callback")
+have_defined("EVP_CIPHER_name", "openssl/evp.h")
+have_defined("EVP_MD_name", "openssl/evp.h")
+have_func("EVP_MD_CTX_init")
+have_func("HMAC_CTX_init")
+have_func("HMAC_CTX_cleanup")
+have_defined("PKCS7_is_detached", "openssl/pkcs7.h")
+have_defined("PKCS7_type_is_encrypted", "openssl/pkcs7.h")
+have_func("X509_CRL_set_version")
+have_func("X509_CRL_set_issuer_name")
+have_func("X509_CRL_sort")
+have_func("X509_CRL_add0_revoked")
+have_struct_member("X509_STORE_CTX", "current_crl", "openssl/x509.h")
+have_struct_member("X509_STORE", "flags", "openssl/x509.h")
+have_struct_member("X509_STORE", "purpose", "openssl/x509.h")
+have_struct_member("X509_STORE", "trust", "openssl/x509.h")
+have_struct_member("EVP_CIPHER_CTX", "flags", "openssl/evp.h")
+
+message "=== Checking for Ruby features... ===\n"
+have_func("rb_obj_init_copy", "ruby.h")
+
+message "=== Checking done. ===\n"
+create_makefile("openssl")
+message "Done.\n"
Index: openssl_missing.c
===================================================================
RCS file: /cvsroot/rubypki/ossl2/openssl_missing.c,v
retrieving revision 1.7
diff -u -p -r1.7 openssl_missing.c
--- openssl_missing.c 9 Jul 2003 10:41:27 -0000 1.7
+++ openssl_missing.c 21 Jul 2003 06:41:23 -0000
@@ -51,3 +51,120 @@ void *X509_STORE_get_ex_data(X509_STORE
return CRYPTO_get_ex_data(&str->ex_data,idx);
}
#endif /* HAVE_X509_STORE_SET_EX_DATA */
+
+#if !defined(HAVE_EVP_MD_CTX_CREATE)
+EVP_MD_CTX *EVP_MD_CTX_create(void)
+{
+ EVP_MD_CTX *ctx = OPENSSL_malloc(sizeof *ctx);
+
+ memset(ctx, '\0', sizeof *ctx);
+
+ return ctx;
+}
+#endif /* HAVE_EVP_MD_CTX_CREATE */
+
+#if !defined(HAVE_EVP_MD_CTX_CLEANUP)
+int EVP_MD_CTX_cleanup(EVP_MD_CTX *ctx)
+{
+#warning FIXME!!!
+ memset(ctx, '\0', sizeof *ctx);
+
+ return 1;
+}
+#endif /* HAVE_EVP_MD_CTX_CLEANUP */
+
+#if !defined(HAVE_EVP_MD_CTX_DESTROY)
+void EVP_MD_CTX_destroy(EVP_MD_CTX *ctx)
+{
+ EVP_MD_CTX_cleanup(ctx);
+ OPENSSL_free(ctx);
+}
+#endif /* HAVE_EVP_MD_CTX_DESTROY */
+
+#if !defined(HAVE_EVP_MD_CTX_INIT)
+void EVP_MD_CTX_init(EVP_MD_CTX *ctx)
+{
+ memset(ctx,'\0',sizeof *ctx);
+}
+#endif
+
+#if !defined(HAVE_HMAC_CTX_INIT)
+void HMAC_CTX_init(HMAC_CTX *ctx)
+{
+ EVP_MD_CTX_init(&ctx->i_ctx);
+ EVP_MD_CTX_init(&ctx->o_ctx);
+ EVP_MD_CTX_init(&ctx->md_ctx);
+}
+#endif
+
+#if !defined(HAVE_HMAC_CTX_CLEANUP)
+void HMAC_CTX_cleanup(HMAC_CTX *ctx)
+{
+ EVP_MD_CTX_cleanup(&ctx->i_ctx);
+ EVP_MD_CTX_cleanup(&ctx->o_ctx);
+ EVP_MD_CTX_cleanup(&ctx->md_ctx);
+ memset(ctx,0,sizeof *ctx);
+}
+#endif
+
+#if !defined(HAVE_X509_CRL_SET_VERSION)
+int X509_CRL_set_version(X509_CRL *x, long version)
+{
+ if (x == NULL) return(0);
+ if (x->crl->version == NULL)
+ {
+ if ((x->crl->version=M_ASN1_INTEGER_new()) == NULL)
+ return(0);
+ }
+ return(ASN1_INTEGER_set(x->crl->version,version));
+}
+#endif
+
+#if !defined(HAVE_X509_CRL_SET_ISSUER_NAME)
+int X509_CRL_set_issuer_name(X509_CRL *x, X509_NAME *name)
+{
+ if ((x == NULL) || (x->crl == NULL)) return(0);
+ return(X509_NAME_set(&x->crl->issuer,name));
+}
+#endif
+
+#if !defined(HAVE_X509_CRL_SORT)
+int X509_CRL_sort(X509_CRL *c)
+{
+ int i;
+ X509_REVOKED *r;
+ /* sort the data so it will be written in serial
+ * number order */
+ sk_X509_REVOKED_sort(c->crl->revoked);
+ for (i=0; i<sk_X509_REVOKED_num(c->crl->revoked); i++)
+ {
+ r=sk_X509_REVOKED_value(c->crl->revoked,i);
+ r->sequence=i;
+ }
+ return 1;
+}
+#endif
+
+#if !defined(X509_CRL_ADD0_REVOKED)
+static int OSSL_X509_REVOKED_cmp(const X509_REVOKED * const *a,
+ const X509_REVOKED * const *b)
+{
+ return(ASN1_STRING_cmp(
+ (ASN1_STRING *)(*a)->serialNumber,
+ (ASN1_STRING *)(*b)->serialNumber));
+}
+
+int X509_CRL_add0_revoked(X509_CRL *crl, X509_REVOKED *rev)
+{
+ X509_CRL_INFO *inf;
+ inf = crl->crl;
+ if(!inf->revoked)
+ inf->revoked = sk_X509_REVOKED_new(OSSL_X509_REVOKED_cmp);
+ if(!inf->revoked || !sk_X509_REVOKED_push(inf->revoked, rev)) {
+ /* ASN1err(ASN1_F_X509_CRL_ADD0_REVOKED, ERR_R_MALLOC_FAILURE); */
+ return 0;
+ }
+ return 1;
+}
+#endif
+
Index: openssl_missing.h
===================================================================
RCS file: /cvsroot/rubypki/ossl2/openssl_missing.h,v
retrieving revision 1.3
diff -u -p -r1.3 openssl_missing.h
--- openssl_missing.h 9 Jul 2003 10:41:27 -0000 1.3
+++ openssl_missing.h 21 Jul 2003 06:41:23 -0000
@@ -19,43 +19,74 @@ extern "C" {
* These functions are not included in headers of OPENSSL <= 0.9.6b
*/
-/* to pem.h */
-#if !defined(OPENSSL_NO_DSA)
+#if !defined(HAVE_PEM_READ_BIO_DSAPUBLICKEY)
# define PEM_read_bio_DSAPublicKey(bp,x,cb,u) (DSA *)PEM_ASN1_read_bio( \
(char *(*)())d2i_DSAPublicKey,PEM_STRING_DSA_PUBLIC,bp,(char **)x,cb,u)
+#endif
+
+#if !defined(HAVE_PEM_WRITE_BIO_DSAPUBLICKEY)
# define PEM_write_bio_DSAPublicKey(bp,x) \
PEM_ASN1_write_bio((int (*)())i2d_DSAPublicKey,\
PEM_STRING_DSA_PUBLIC,\
bp,(char *)x, NULL, NULL, 0, NULL, NULL)
-#endif /* NO_DSA */
+#endif
-/* to x509.h */
-#if !defined(OPENSSL_NO_DSA)
+#if !defined(HAVE_DSAPRIVATEKEY_DUP)
# define DSAPrivateKey_dup(dsa) (DSA *)ASN1_dup((int (*)())i2d_DSAPrivateKey, \
(char *(*)())d2i_DSAPrivateKey,(char *)dsa)
+#endif
+
+#if !defined(HAVE_DSAPUBLICKEY_DUP)
# define DSAPublicKey_dup(dsa) (DSA *)ASN1_dup((int (*)())i2d_DSAPublicKey, \
(char *(*)())d2i_DSAPublicKey,(char *)dsa)
-#endif /* NO_DSA */
+#endif
+#if !defined(HAVE_X509_REVOKED_DUP)
# define X509_REVOKED_dup(rev) (X509_REVOKED *)ASN1_dup((int (*)())i2d_X509_REVOKED, \
(char *(*)())d2i_X509_REVOKED, (char *)rev)
+#endif
-/* to pkcs7.h */
-#define PKCS7_SIGNER_INFO_dup(si) (PKCS7_SIGNER_INFO *)ASN1_dup((int (*)())i2d_PKCS7_SIGNER_INFO, \
+#if !defined(HAVE_PKCS7_SIGNER_INFO_DUP)
+# define PKCS7_SIGNER_INFO_dup(si) (PKCS7_SIGNER_INFO *)ASN1_dup((int (*)())i2d_PKCS7_SIGNER_INFO, \
(char *(*)())d2i_PKCS7_SIGNER_INFO, (char *)si)
-#define PKCS7_RECIP_INFO_dup(ri) (PKCS7_RECIP_INFO *)ASN1_dup((int (*)())i2d_PKCS7_RECIP_INFO, \
+#endif
+
+#if !defined(HAVE_PKCS7_RECIP_INFO_DUP)
+# define PKCS7_RECIP_INFO_dup(ri) (PKCS7_RECIP_INFO *)ASN1_dup((int (*)())i2d_PKCS7_RECIP_INFO, \
(char *(*)())d2i_PKCS7_RECIP_INFO, (char *)ri)
+#endif
-#if !defined(OPENSSL_NO_HMAC)
-#if !defined(HAVE_HMAC_CTX_COPY)
int HMAC_CTX_copy(HMAC_CTX *out, HMAC_CTX *in);
-#endif /* HAVE_HMAC_CTX_COPY */
-#endif /* NO_HMAC */
-
-#if !defined(HAVE_X509_STORE_SET_EX_DATA)
-int X509_STORE_set_ex_data(X509_STORE *str, int idx, void *data);
void *X509_STORE_get_ex_data(X509_STORE *str, int idx);
+int X509_STORE_set_ex_data(X509_STORE *str, int idx, void *data);
+EVP_MD_CTX *EVP_MD_CTX_create(void);
+int EVP_MD_CTX_cleanup(EVP_MD_CTX *ctx);
+void EVP_MD_CTX_destroy(EVP_MD_CTX *ctx);
+
+#if !defined(HAVE_EVP_CIPHER_NAME)
+# define EVP_CIPHER_name(e) OBJ_nid2sn(EVP_CIPHER_nid(e))
#endif
+
+#if !defined(HAVE_EVP_MD_NAME)
+# define EVP_MD_name(e) OBJ_nid2sn(EVP_MD_type(e))
+#endif
+
+void EVP_MD_CTX_init(EVP_MD_CTX *ctx);
+void HMAC_CTX_init(HMAC_CTX *ctx);
+void HMAC_CTX_cleanup(HMAC_CTX *ctx);
+
+#if !defined(HAVE_PKCS7_IS_DETACHED)
+# define PKCS7_is_detached(p7) (PKCS7_type_is_signed(p7) && PKCS7_get_detached(p7))
+#endif
+
+#if !defined(HAVE_PKCS7_TYPE_IS_ENCRYPTED)
+# define PKCS7_type_is_encrypted(a) (OBJ_obj2nid((a)->type) == NID_pkcs7_encrypted)
+#endif
+
+int X509_CRL_set_version(X509_CRL *x, long version);
+int X509_CRL_set_issuer_name(X509_CRL *x, X509_NAME *name);
+int X509_CRL_sort(X509_CRL *c);
+int X509_CRL_add0_revoked(X509_CRL *crl, X509_REVOKED *rev);
#if defined(__cplusplus)
}
Index: ossl.c
===================================================================
RCS file: /cvsroot/rubypki/ossl2/ossl.c,v
retrieving revision 1.36
diff -u -p -r1.36 ossl.c
--- ossl.c 10 Jul 2003 10:34:59 -0000 1.36
+++ ossl.c 21 Jul 2003 06:41:23 -0000
@@ -292,6 +292,7 @@ OSSL_SK2ARY(x509crl, X509_CRL)
/*
* our default PEM callback
*/
+#if defined(HAVE_PEM_DEF_CALLBACK)
static VALUE
ossl_pem_passwd_cb0(VALUE flag)
{
@@ -312,7 +313,7 @@ ossl_pem_passwd_cb(char *buf, int max_le
if (pwd || !rb_block_given_p())
return PEM_def_callback(buf, max_len, flag, pwd);
- while(1){
+ while (1) {
/*
* when the flag is nonzero, this passphrase
* will be used to perform encryption; otherwise it will
@@ -335,6 +336,7 @@ ossl_pem_passwd_cb(char *buf, int max_le
}
return len;
}
+#endif
/*
* Verify callback
Index: ossl.h
===================================================================
RCS file: /cvsroot/rubypki/ossl2/ossl.h,v
retrieving revision 1.32
diff -u -p -r1.32 ossl.h
--- ossl.h 14 Jul 2003 20:36:57 -0000 1.32
+++ ossl.h 21 Jul 2003 06:41:25 -0000
@@ -24,9 +24,11 @@ extern "C" {
#include <version.h>
#include <openssl/opensslv.h>
+/*
#if (OPENSSL_VERSION_NUMBER < 0x00907000L)
# error ! This version of OSSL needs OpenSSL >= 0.9.7 for its run!
#endif
+ */
#if defined(NT) || defined(_WIN32)
# define OpenFile WINAPI_OpenFile
@@ -38,7 +40,9 @@ extern "C" {
#include <openssl/ssl.h>
#include <openssl/hmac.h>
#include <openssl/rand.h>
-#include <openssl/ocsp.h>
+#if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
+# include <openssl/ocsp.h>
+#endif
#if defined(NT) || defined(_WIN32)
# undef OpenFile
#endif
@@ -115,7 +119,11 @@ STACK_OF(X509) *ossl_protect_x509_ary2sk
/*
* our default PEM callback
*/
+#if defined(HAVE_PEM_DEF_CALLBACK)
int ossl_pem_passwd_cb(char *, int, int, void *);
+#else
+# define ossl_pem_passwd_cb NULL
+#endif
/*
* ERRor messages
Index: ossl_bn.c
===================================================================
RCS file: /cvsroot/rubypki/ossl2/ossl_bn.c,v
retrieving revision 1.21
diff -u -p -r1.21 ossl_bn.c
--- ossl_bn.c 9 Jul 2003 10:41:27 -0000 1.21
+++ ossl_bn.c 21 Jul 2003 06:41:25 -0000
@@ -325,7 +325,9 @@ BIGNUM_2c(mul);
BIGNUM_2c(mod);
BIGNUM_2c(exp);
BIGNUM_2c(gcd);
+#if (OPENSSL_VERSION >= 0x00907000L)
BIGNUM_2c(mod_sqr);
+#endif
BIGNUM_2c(mod_inverse);
static VALUE
@@ -372,8 +374,10 @@ ossl_bn_div(VALUE self, VALUE other)
WrapBN(CLASS_OF(self), obj, result); \
return obj; \
}
+#if (OPENSSL_VERSION >= 0x00907000L)
BIGNUM_3c(mod_add);
BIGNUM_3c(mod_sub);
+#endif
BIGNUM_3c(mod_mul);
BIGNUM_3c(mod_exp);
@@ -647,10 +651,12 @@ Init_ossl_bn()
rb_define_method(cBN, "%", ossl_bn_mod, 1);
/* nnmod */
+#if (OPENSSL_VERSION >= 0x00907000L)
rb_define_method(cBN, "mod_add", ossl_bn_mod_add, 2);
rb_define_method(cBN, "mod_sub", ossl_bn_mod_sub, 2);
- rb_define_method(cBN, "mod_mul", ossl_bn_mod_mul, 2);
rb_define_method(cBN, "mod_sqr", ossl_bn_mod_sqr, 1);
+#endif
+ rb_define_method(cBN, "mod_mul", ossl_bn_mod_mul, 2);
rb_define_method(cBN, "**", ossl_bn_exp, 1);
rb_define_method(cBN, "mod_exp", ossl_bn_mod_exp, 2);
rb_define_method(cBN, "gcd", ossl_bn_gcd, 1);
Index: ossl_cipher.c
===================================================================
RCS file: /cvsroot/rubypki/ossl2/ossl_cipher.c,v
retrieving revision 1.21
diff -u -p -r1.21 ossl_cipher.c
--- ossl_cipher.c 9 Jul 2003 10:41:27 -0000 1.21
+++ ossl_cipher.c 21 Jul 2003 06:41:25 -0000
@@ -311,13 +311,16 @@ ossl_cipher_set_iv(VALUE self, VALUE iv)
static VALUE
ossl_cipher_set_padding(VALUE self, VALUE padding)
{
+#if defined(HAVE_ST_FLAGS)
EVP_CIPHER_CTX *ctx;
GetCipher(self, ctx);
if (EVP_CIPHER_CTX_set_padding(ctx, NUM2INT(padding)) != 1)
ossl_raise(eCipherError, NULL);
-
- return padding;
+#else
+ rb_notimplement();
+#endif
+ return padding;
}
#define CIPHER_0ARG_INT(func) \
Index: ossl_config.c
===================================================================
RCS file: /cvsroot/rubypki/ossl2/ossl_config.c,v
retrieving revision 1.13
diff -u -p -r1.13 ossl_config.c
--- ossl_config.c 9 Jul 2003 10:41:27 -0000 1.13
+++ ossl_config.c 21 Jul 2003 06:41:25 -0000
@@ -45,15 +45,23 @@ ossl_config_s_load(int argc, VALUE *argv
char *filename;
VALUE path, obj;
- if (rb_scan_args(argc, argv, "01", &path) == 1) {
+ if (rb_scan_args(argc, argv,
+#if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
+ "01"
+#else
+ "10"
+#endif
+ , &path) == 1) {
SafeStringValue(path);
filename = RSTRING(path)->ptr;
}
+#if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
else {
if (!(filename = CONF_get1_default_config_file())) {
ossl_raise(eConfigError, NULL);
}
}
+#endif
/*
* FIXME
* Does't work for Windows?
Index: ossl_ocsp.c
===================================================================
RCS file: /cvsroot/rubypki/ossl2/ossl_ocsp.c,v
retrieving revision 1.7
diff -u -p -r1.7 ossl_ocsp.c
--- ossl_ocsp.c 14 Jul 2003 20:36:57 -0000 1.7
+++ ossl_ocsp.c 21 Jul 2003 06:41:28 -0000
@@ -11,6 +11,8 @@
*/
#include "ossl.h"
+#if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
+
#define WrapOCSPReq(klass, obj, req) do { \
if(!req) ossl_raise(rb_eRuntimeError, "Request wasn't initialized!"); \
obj = Data_Wrap_Struct(klass, 0, OCSP_REQUEST_free, req); \
@@ -754,3 +756,10 @@ Init_ossl_ocsp()
DefOCSPVConst(RESPID_NAME);
DefOCSPVConst(RESPID_KEY);
}
+
+#else /* OPENSSL_VERSION_NUMBER < 0x0090700L */
+void
+Init_ossl_ocsp()
+{
+}
+#endif
Index: ossl_ssl.c
===================================================================
RCS file: /cvsroot/rubypki/ossl2/ossl_ssl.c,v
retrieving revision 1.38
diff -u -p -r1.38 ossl_ssl.c
--- ossl_ssl.c 9 Jul 2003 10:41:27 -0000 1.38
+++ ossl_ssl.c 21 Jul 2003 06:41:34 -0000
@@ -656,13 +656,17 @@ Init_ossl_ssl()
* ossl_ssl_def_const(OP_DONT_INSERT_EMPTY_FRAGMENTS);
*/
ossl_ssl_def_const(OP_ALL);
+#if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
ossl_ssl_def_const(OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION);
+#endif
#ifdef SSL_OP_SINGLE_ECDH_USE
ossl_ssl_def_const(OP_SINGLE_ECDH_USE);
#endif
ossl_ssl_def_const(OP_SINGLE_DH_USE);
ossl_ssl_def_const(OP_EPHEMERAL_RSA);
+#if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
ossl_ssl_def_const(OP_CIPHER_SERVER_PREFERENCE);
+#endif
ossl_ssl_def_const(OP_TLS_ROLLBACK_BUG);
ossl_ssl_def_const(OP_NO_SSLv2);
ossl_ssl_def_const(OP_NO_SSLv3);
Index: ossl_x509.c
===================================================================
RCS file: /cvsroot/rubypki/ossl2/ossl_x509.c,v
retrieving revision 1.4
diff -u -p -r1.4 ossl_x509.c
--- ossl_x509.c 19 Jun 2003 00:13:30 -0000 1.4
+++ ossl_x509.c 21 Jul 2003 06:41:34 -0000
@@ -62,8 +62,10 @@ Init_ossl_x509()
DefX509Const(V_ERR_KEYUSAGE_NO_CERTSIGN);
DefX509Const(V_ERR_APPLICATION_VERIFICATION);
+#if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
DefX509Const(V_FLAG_CRL_CHECK);
DefX509Const(V_FLAG_CRL_CHECK_ALL);
+#endif
DefX509Const(PURPOSE_SSL_CLIENT);
DefX509Const(PURPOSE_SSL_SERVER);
@@ -72,13 +74,17 @@ Init_ossl_x509()
DefX509Const(PURPOSE_SMIME_ENCRYPT);
DefX509Const(PURPOSE_CRL_SIGN);
DefX509Const(PURPOSE_ANY);
+#if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
DefX509Const(PURPOSE_OCSP_HELPER);
+#endif
DefX509Const(TRUST_COMPAT);
DefX509Const(TRUST_SSL_CLIENT);
DefX509Const(TRUST_SSL_SERVER);
DefX509Const(TRUST_EMAIL);
DefX509Const(TRUST_OBJECT_SIGN);
+#if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
DefX509Const(TRUST_OCSP_SIGN);
DefX509Const(TRUST_OCSP_REQUEST);
+#endif
}
Index: ossl_x509store.c
===================================================================
RCS file: /cvsroot/rubypki/ossl2/ossl_x509store.c,v
retrieving revision 1.27
diff -u -p -r1.27 ossl_x509store.c
--- ossl_x509store.c 14 Jul 2003 20:36:57 -0000 1.27
+++ ossl_x509store.c 21 Jul 2003 06:46:08 -0000
@@ -139,33 +139,42 @@ ossl_x509store_initialize(int argc, VALU
static VALUE
ossl_x509store_set_flags(VALUE self, VALUE flags)
{
+#if defined(HAVE_ST_FLAGS)
X509_STORE *store;
GetX509Store(self, store);
X509_STORE_set_flags(store, NUM2LONG(flags));
-
+#else
+ rb_notimplement();
+#endif
return flags;
}
static VALUE
ossl_x509store_set_purpose(VALUE self, VALUE purpose)
{
+#if defined(HAVE_ST_PURPOSE)
X509_STORE *store;
GetX509Store(self, store);
X509_STORE_set_purpose(store, NUM2LONG(purpose));
-
+#else
+ rb_notimplement();
+#endif
return purpose;
}
static VALUE
ossl_x509store_set_trust(VALUE self, VALUE trust)
{
+#if defined(HAVE_ST_TRUST)
X509_STORE *store;
GetX509Store(self, store);
X509_STORE_set_trust(store, NUM2LONG(trust));
-
+#else
+ rb_notimplement();
+#endif
return trust;
}
@@ -327,7 +336,11 @@ ossl_x509stctx_initialize(int argc, VALU
SafeGetX509Store(store, x509st);
if(!NIL_P(cert)) x509 = DupX509CertPtr(cert); /* NEED TO DUP */
if(!NIL_P(chain)) x509s = ossl_x509_ary2sk(chain);
- if(X509_STORE_CTX_init(ctx, x509st, x509, x509s) != 1){
+ if (X509_STORE_CTX_init(ctx, x509st, x509, x509s)
+#if (OPENSSL_VERSION_NUMBER < 0x00907000L)
+ , 1
+#endif
+ != 1) {
sk_X509_pop_free(x509s, X509_free);
ossl_raise(eX509StoreError, NULL);
}
@@ -436,9 +449,14 @@ ossl_x509stctx_get_curr_crl(VALUE self)
X509_STORE_CTX *ctx;
GetX509StCtx(self, ctx);
+
+#if defined(HAVE_ST_CURRENT_CRL)
if(!ctx->current_crl) return Qnil;
return ossl_x509crl_new(ctx->current_crl);
+#else
+ return Qnil;
+#endif
}
static VALUE
Index: examples/ossl_x509store.rb
===================================================================
RCS file: /cvsroot/rubypki/ossl2/examples/ossl_x509store.rb,v
retrieving revision 1.15
diff -u -p -r1.15 ossl_x509store.rb
--- examples/ossl_x509store.rb 4 Jul 2003 06:32:41 -0000 1.15
+++ examples/ossl_x509store.rb 21 Jul 2003 06:46:12 -0000
@@ -72,21 +72,24 @@ store.add_cert(ca)
#store.add_path("./cert")
#store.add_file("./0cert.pem")
-#store.purpose = X509::PURPOSE_SSL_CLIENT
-#store.purpose = X509::PURPOSE_SSL_SERVER
-#store.purpose = X509::PURPOSE_NS_SSL_SERVER
-store.purpose = X509::PURPOSE_SMIME_SIGN
-#store.purpose = X509::PURPOSE_SMIME_ENCRYPT
-#store.purpose = X509::PURPOSE_CRL_SIGN
-#store.purpose = X509::PURPOSE_ANY
-#store.purpose = X509::PURPOSE_OCSP_HELPER
-#store.trust = X509::TRUST_COMPAT
-#store.trust = X509::TRUST_SSL_CLIENT
-#store.trust = X509::TRUST_SSL_SERVER
-#store.trust = X509::TRUST_EMAIL
-#store.trust = X509::TRUST_OBJECT_SIGN
-#store.trust = X509::TRUST_OCSP_SIGN
-#store.trust = X509::TRUST_OCSP_REQUEST
+begin
+# store.purpose = X509::PURPOSE_SSL_CLIENT
+# store.purpose = X509::PURPOSE_SSL_SERVER
+# store.purpose = X509::PURPOSE_NS_SSL_SERVER
+ store.purpose = X509::PURPOSE_SMIME_SIGN
+# store.purpose = X509::PURPOSE_SMIME_ENCRYPT
+# store.purpose = X509::PURPOSE_CRL_SIGN
+# store.purpose = X509::PURPOSE_ANY
+# store.purpose = X509::PURPOSE_OCSP_HELPER
+# store.trust = X509::TRUST_COMPAT
+# store.trust = X509::TRUST_SSL_CLIENT
+# store.trust = X509::TRUST_SSL_SERVER
+# store.trust = X509::TRUST_EMAIL
+# store.trust = X509::TRUST_OBJECT_SIGN
+# store.trust = X509::TRUST_OCSP_SIGN
+# store.trust = X509::TRUST_OCSP_REQUEST
+rescue NotImplementedError => e
+end
verify_with_store(store, certs, verify_cb)
@@ -104,5 +107,8 @@ puts "========== Add CRL to the Store an
store.add_crl(crl)
#store.add_path("./crl")
#store.add_file("./0crl.pem")
+begin
store.flags = X509::V_FLAG_CRL_CHECK|X509::V_FLAG_CRL_CHECK_ALL
+rescue
+end
verify_with_store(store, certs, verify_cb)