Skip to content

Commit f00f1ea

Browse files
committed
updated comments about documentation strings
1 parent 2862335 commit f00f1ea

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

ext/openssl/ossl_x509name.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,11 @@ ossl_x509name_inspect(VALUE self)
333333
*
334334
* Returns an Array representation of the distinguished name suitable for
335335
* passing to ::new
336+
* The type code is an integer represents the string type. Typical values include:
337+
* 12 - UTF8STRING
338+
* 19 - PRINTABLESTRING
339+
* more values can be found, at, i.e:
340+
* https://docs.huihoo.com/doxygen/openssl/1.0.1c/crypto_2asn1_2asn1_8h.html
336341
*/
337342
static VALUE
338343
ossl_x509name_to_a(VALUE self)

ext/openssl/ossl_x509req.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,12 @@ ossl_x509req_sign(VALUE self, VALUE key, VALUE digest)
318318
}
319319

320320
/*
321-
* Checks that cert signature is made with PRIVversion of this PUBLIC 'key'
321+
* call-seq:
322+
* request.verify(pub_key) => true/false
323+
*
324+
* Validates the signature on the CSR. The public key is usually found
325+
* in request.public_key.
326+
*
322327
*/
323328
static VALUE
324329
ossl_x509req_verify(VALUE self, VALUE key)

0 commit comments

Comments
 (0)