ruby-changes:22420
From: emboss <ko1@a...>
Date: Wed, 8 Feb 2012 10:03:25 +0900 (JST)
Subject: [ruby-changes:22420] emboss:r34469 (trunk): * ext/openssl/ossl_asn1.c: Call INT2NUM only once for GeneralString.
emboss 2012-02-08 10:03:16 +0900 (Wed, 08 Feb 2012) New Revision: 34469 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=34469 Log: * ext/openssl/ossl_asn1.c: Call INT2NUM only once for GeneralString. Thanks to Mantas Mikulenas for noticing and providing a patch! [ruby-core:42358] [Bug #5972] Modified files: trunk/ChangeLog trunk/ext/openssl/ossl_asn1.c Index: ChangeLog =================================================================== --- ChangeLog (revision 34468) +++ ChangeLog (revision 34469) @@ -1,3 +1,9 @@ +Wed Feb 08 09:57:33 2012 Martin Bosslet <Martin.Bosslet@g...> + + * ext/openssl/ossl_asn1.c: Call INT2NUM only once for GeneralString. + Thanks to Mantas Mikulenas for noticing and providing a patch! + [ruby-core:42358] [Bug #5972] + Wed Feb 08 09:19:00 2012 Martin Bosslet <Martin.Bosslet@g...> * ext/openssl/ossl_cipher.c: Add warning about key as IV. Index: ext/openssl/ossl_asn1.c =================================================================== --- ext/openssl/ossl_asn1.c (revision 34468) +++ ext/openssl/ossl_asn1.c (revision 34469) @@ -1932,7 +1932,7 @@ rb_hash_aset(class_tag_map, cASN1GeneralizedTime, INT2NUM(V_ASN1_GENERALIZEDTIME)); rb_hash_aset(class_tag_map, cASN1GraphicString, INT2NUM(V_ASN1_GRAPHICSTRING)); rb_hash_aset(class_tag_map, cASN1ISO64String, INT2NUM(V_ASN1_ISO64STRING)); - rb_hash_aset(class_tag_map, cASN1GeneralString, INT2NUM(INT2NUM(V_ASN1_GENERALSTRING))); + rb_hash_aset(class_tag_map, cASN1GeneralString, INT2NUM(V_ASN1_GENERALSTRING)); rb_hash_aset(class_tag_map, cASN1UniversalString, INT2NUM(V_ASN1_UNIVERSALSTRING)); rb_hash_aset(class_tag_map, cASN1BMPString, INT2NUM(V_ASN1_BMPSTRING)); rb_global_variable(&class_tag_map); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/