ruby-changes:18058
From: drbrain <ko1@a...>
Date: Sat, 4 Dec 2010 11:41:20 +0900 (JST)
Subject: [ruby-changes:18058] Ruby:r30079 (trunk): Add documentation for OpenSSL::X509::Extension.new
drbrain 2010-12-04 11:41:13 +0900 (Sat, 04 Dec 2010) New Revision: 30079 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=30079 Log: Add documentation for OpenSSL::X509::Extension.new Modified files: trunk/ChangeLog trunk/ext/openssl/ossl_x509ext.c Index: ChangeLog =================================================================== --- ChangeLog (revision 30078) +++ ChangeLog (revision 30079) @@ -1,3 +1,7 @@ +Sat Dec 4 11:39:17 2010 Eric Hodel <drbrain@s...> + + * ext/openssl/ossl_x509ext.c (initialize): add documentation. + Sat Dec 4 11:21:50 2010 Nobuyoshi Nakada <nobu@r...> * hash.c (rb_hash_update_by): new API for Hash#update. Index: ext/openssl/ossl_x509ext.c =================================================================== --- ext/openssl/ossl_x509ext.c (revision 30078) +++ ext/openssl/ossl_x509ext.c (revision 30079) @@ -270,6 +270,18 @@ return obj; } +/* + * call-seq: + * OpenSSL::X509::Extension.new asn1 + * OpenSSL::X509::Extension.new name, value + * OpenSSL::X509::Extension.new name, value, critical + * + * Creates an X509 extension. + * + * The extension may be created from +asn1+ data or from an extension +name+ + * and +value+. The +name+ may be either an OID or an extension name. If + * +critical+ is true the extension is marked critical. + */ static VALUE ossl_x509ext_initialize(int argc, VALUE *argv, VALUE self) { -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/