--nextPart1581570.dOv9ppeehb Content-Type: text/plain; charset so-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Friday 05 November 2004 20:30, Jason Wold wrote: > > You could try something like this > > a = OpenSSL::ASN1::Sequence.new([OpenSSL::ASN1::Integer.new('10'), > > OpenSSL::ASN1::OctetString.new('')]) > > > > control.value = a.to_der > > '10' needs to be just the integer 10, and then it works. I'd like to point out, for the record, that this is a perfect example of how type checking in a language is a good thing. Seriously, I'm not trying to restart that thread; I just want to draw the attention of the anti-type-checking crowd to the OP. -- ### SER ### Deutsch|Esperanto|Francaise|Linux|XML|Java|Ruby|Aikido ### http://www.germane-software.com/~ser jabber.com:ser ICQ:83578737 ### GPG: http://www.germane-software.com/~ser/Security/ser_public.gpg --nextPart1581570.dOv9ppeehb Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (GNU/Linux) iD8DBQBBjY89P0KxygnleI8RAvZDAKCI1preJtkqO0XexJwo5Xz5ofU2ywCgzcf7 qdtvkymdjj5CCyp1inUfjtE۶R -----END PGP SIGNATURE----- --nextPart1581570.dOv9ppeehb--