From 80549d5f17e09173251204f08d288a71bad39256 Mon Sep 17 00:00:00 2001 From: gotoyuzo Date: Thu, 9 Oct 2003 16:20:22 +0000 Subject: * ext/openssl/ossl_x509name.c (ossl_x509name_initialize): add optional argument to specify the DirectoryString type (ASN1::UTF8STRING by default). RFC3280 deprecates PrintableString for DirectoryString, and strongly requires to use UTF8String for all certificates issued after December, 31 2003. * ext/openssl/lib/openssl/x509.rb (X509::Name::parse): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4733 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/openssl/lib/openssl/x509.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/openssl/lib/openssl') diff --git a/ext/openssl/lib/openssl/x509.rb b/ext/openssl/lib/openssl/x509.rb index b8cc5bd4ed..40b1a6dd15 100644 --- a/ext/openssl/lib/openssl/x509.rb +++ b/ext/openssl/lib/openssl/x509.rb @@ -64,9 +64,9 @@ module OpenSSL end # Extension class Name - def self.parse(str) + def self.parse(str, type=ASN1::UTF8STRING) ary = str.scan(/\s*([^\/,]+)\s*/).collect{|i| i[0].split("=") } - self.new(ary) + self.new(ary, type) end end # Name -- cgit v1.2.3