1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Add documentation for OpenSSL::X509::Extension.new

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30079 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
drbrain 2010-12-04 02:41:13 +00:00
parent 2d4b0d6261
commit f462afa5cf
2 changed files with 16 additions and 0 deletions

View file

@ -1,3 +1,7 @@
Sat Dec 4 11:39:17 2010 Eric Hodel <drbrain@segment7.net>
* ext/openssl/ossl_x509ext.c (initialize): add documentation.
Sat Dec 4 11:21:50 2010 Nobuyoshi Nakada <nobu@ruby-lang.org> Sat Dec 4 11:21:50 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
* hash.c (rb_hash_update_by): new API for Hash#update. * hash.c (rb_hash_update_by): new API for Hash#update.

View file

@ -270,6 +270,18 @@ ossl_x509ext_alloc(VALUE klass)
return obj; 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 static VALUE
ossl_x509ext_initialize(int argc, VALUE *argv, VALUE self) ossl_x509ext_initialize(int argc, VALUE *argv, VALUE self)
{ {