summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-12-04 02:41:13 +0000
committerdrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-12-04 02:41:13 +0000
commitf462afa5cf29d15d572f8c0bdfc3583249fa628e (patch)
tree80c223cded995bdd17de5658eb02ac2a398028a6
parent2d4b0d626170c2dada457ea3d11d1d6732775db4 (diff)
Add documentation for OpenSSL::X509::Extension.new
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30079 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rw-r--r--ext/openssl/ossl_x509ext.c12
2 files changed, 16 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index c882c3a8b8..294ec9805b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
* hash.c (rb_hash_update_by): new API for Hash#update.
diff --git a/ext/openssl/ossl_x509ext.c b/ext/openssl/ossl_x509ext.c
index c2019b926c..3e34608b4b 100644
--- a/ext/openssl/ossl_x509ext.c
+++ b/ext/openssl/ossl_x509ext.c
@@ -270,6 +270,18 @@ ossl_x509ext_alloc(VALUE klass)
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)
{