Skip to content

Commit

Permalink
updated comments about documentation strings
Browse files Browse the repository at this point in the history
  • Loading branch information
mcr committed Feb 11, 2019
1 parent 99b9531 commit 9c2102e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ext/openssl/ossl_x509name.c
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,11 @@ ossl_x509name_inspect(VALUE self)
*
* Returns an Array representation of the distinguished name suitable for
* passing to ::new
* The type code is an integer represents the string type. Typical values include:
* 12 - UTF8STRING
* 19 - PRINTABLESTRING
* more values can be found, at, i.e:
* https://docs.huihoo.com/doxygen/openssl/1.0.1c/crypto_2asn1_2asn1_8h.html
*/
static VALUE
ossl_x509name_to_a(VALUE self)
Expand Down
7 changes: 6 additions & 1 deletion ext/openssl/ossl_x509req.c
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,12 @@ ossl_x509req_sign(VALUE self, VALUE key, VALUE digest)
}

/*
* Checks that cert signature is made with PRIVversion of this PUBLIC 'key'
* call-seq:
* request.verify(pub_key) => true/false
*
* Validates the signature on the CSR. The public key is usually found
* in request.public_key.
*
*/
static VALUE
ossl_x509req_verify(VALUE self, VALUE key)
Expand Down

0 comments on commit 9c2102e

Please sign in to comment.