[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: ASN.1 for Ruby

Andrew Hodgkinson

7/7/2006 6:41:00 PM

Francis Cianfrocca wrote:

> Is anyone actually interested in ASN.1 support for Ruby? I implemented
> enough of it for LDAP in the Net::LDAP library, in a reasonably
> encapsulated way so it could be abstracted into its own package. I'd
> be happy to do this if anyone has a use for it.

OpenSSL comes with an awful lot of ASN.1 code, though I don't know how
extensive this is compared to your requirements or your implementation.
Extracting the ASN.1 part of your LDAP library sounds reasonable.
However, would it be worth instead (or also) extending the Ruby
interface to OpenSSL to expose its ASN.1 features?

Sadly documentation on both sides of the fence is pretty poor which
might not help. Ruby OpenSSL doesn't have much at all; as a starting
point see:

http://raa.ruby-lang.org/projec...

That said there are people using it. It seems to give straightforward
code from the little bits that I've seen used so far, such as here:

http://technoweenie.stikipad.com/plugins/show/Reversible+Encrypted...

Although a lot of the crypto library is now documented, the OpenSSL
project hasn't described the ASN.1 API yet:

http://www.openssl.org/docs/crypto/c...

The distribution does come with a few relevant .pod files that don't
seem to be online but they only cover a tiny fraction of the interface
visible in <crypto/asn1/asn1.h>. Meanwhile, Google returns nothing but
security advisories for "openssl 'asn.1'"... Is it me, or have I just
spent the last few minutes arguing against myself? :-)

--
Posted via http://www.ruby-....

2 Answers

Andrew Hodgkinson

7/7/2006 7:25:00 PM

0

Francis Cianfrocca wrote:

> You may be thinking of the X.509 and PKCS standards, which are full of
> ASN.1stuff (and of course they're implemented in the crypto libraries
> that come with OpenSSL). For all those applications, I'd say the less
> the users know about the data-representation, the better.

Yes, I was thinking of this ASN.1 code. The crypto library is highly
modular; it includes what looks like a generic ASN.1 support library.
The X.509 etc. code calls into it, but although the asn1.h public header
file does contain some items that are specfic to OpenSSL operations, it
gives the impression that it could be used for a much wider range of
applications. Of course, I could be wrong. I've uploaded the header from
openssl-0.9.8b at the URL below in case you're interested, to save you
having to get the whole tarball just for that one file:

http://pond.org.uk/m...

--
Posted via http://www.ruby-....

Reality Scan

6/24/2009 2:40:00 AM

0

On Jun 23, 9:14 pm, MikeRyder <n...@nospam.com> wrote:
> On Tue, 23 Jun 2009 19:01:27 -0700 (PDT), One Truth
>
> <qqjo...@gmail.com> wrote:
> >On Jun 23, 8:06 pm, MikeRyder <n...@nospam.com> wrote:
> >> Earlier you demanded that Wayne Austin apologize to you for the sins
> >> you've decided he committed against you. That's all fine and nice. But
> >> it's YOU who owes HIM an apology for all the hatred you've spewed out
> >> at him here in the newsgroup, year after year after year.
>
> >Clearly the effect of years of chronic illegal drug use.
>
> i dont take drugs.

Wrong. Your anti-Christ hatred of Christians is a drug. It makes you
vicious and stupid.