mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/openssl/ossl_{bn,x509{attr,cert,name,store}}.c:
Add documentation. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12153 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
13513057c5
commit
dcc5bd8bcf
6 changed files with 216 additions and 8 deletions
|
@ -84,6 +84,10 @@ ossl_x509attr_alloc(VALUE klass)
|
|||
return obj;
|
||||
}
|
||||
|
||||
/*
|
||||
* call-seq:
|
||||
* Attribute.new(oid [, value]) => attr
|
||||
*/
|
||||
static VALUE
|
||||
ossl_x509attr_initialize(int argc, VALUE *argv, VALUE self)
|
||||
{
|
||||
|
@ -108,6 +112,10 @@ ossl_x509attr_initialize(int argc, VALUE *argv, VALUE self)
|
|||
return self;
|
||||
}
|
||||
|
||||
/*
|
||||
* call-seq:
|
||||
* attr.oid = string => string
|
||||
*/
|
||||
static VALUE
|
||||
ossl_x509attr_set_oid(VALUE self, VALUE oid)
|
||||
{
|
||||
|
@ -125,6 +133,10 @@ ossl_x509attr_set_oid(VALUE self, VALUE oid)
|
|||
return oid;
|
||||
}
|
||||
|
||||
/*
|
||||
* call-seq:
|
||||
* attr.oid => string
|
||||
*/
|
||||
static VALUE
|
||||
ossl_x509attr_get_oid(VALUE self)
|
||||
{
|
||||
|
@ -156,6 +168,10 @@ ossl_x509attr_get_oid(VALUE self)
|
|||
# define OSSL_X509ATTR_SET_SINGLE(attr) ((attr)->set = 0)
|
||||
#endif
|
||||
|
||||
/*
|
||||
* call-seq:
|
||||
* attr.value = asn1 => asn1
|
||||
*/
|
||||
static VALUE
|
||||
ossl_x509attr_set_value(VALUE self, VALUE value)
|
||||
{
|
||||
|
@ -179,6 +195,10 @@ ossl_x509attr_set_value(VALUE self, VALUE value)
|
|||
return value;
|
||||
}
|
||||
|
||||
/*
|
||||
* call-seq:
|
||||
* attr.value => asn1
|
||||
*/
|
||||
static VALUE
|
||||
ossl_x509attr_get_value(VALUE self)
|
||||
{
|
||||
|
@ -210,6 +230,10 @@ ossl_x509attr_get_value(VALUE self)
|
|||
return asn1;
|
||||
}
|
||||
|
||||
/*
|
||||
* call-seq:
|
||||
* attr.to_der => string
|
||||
*/
|
||||
static VALUE
|
||||
ossl_x509attr_to_der(VALUE self)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue