From 71e0fdd5dd363a48f96b338a592548728f18b8a3 Mon Sep 17 00:00:00 2001 From: Zach Rowe Date: Mon, 27 May 2019 12:19:19 -0400 Subject: [PATCH] use / delimiators in Name class --- ext/openssl/ossl.c | 4 ++-- ext/openssl/ossl_x509name.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ext/openssl/ossl.c b/ext/openssl/ossl.c index 5c14664..f5c1390 100644 --- a/ext/openssl/ossl.c +++ b/ext/openssl/ossl.c @@ -790,7 +790,7 @@ static void Init_ossl_locks(void) * This example creates a self-signed certificate using an RSA key and a SHA1 * signature. * - * name = OpenSSL::X509::Name.parse 'CN=nobody/DC=example' + * name = OpenSSL::X509::Name.parse '/CN=nobody/DC=example' * * cert = OpenSSL::X509::Certificate.new * cert.version = 2 @@ -871,7 +871,7 @@ static void Init_ossl_locks(void) * A CA certificate is created the same way we created a certificate above, but * with different extensions. * - * ca_name = OpenSSL::X509::Name.parse 'CN=ca/DC=example' + * ca_name = OpenSSL::X509::Name.parse '/CN=ca/DC=example' * * ca_cert = OpenSSL::X509::Certificate.new * ca_cert.serial = 0 diff --git a/ext/openssl/ossl_x509name.c b/ext/openssl/ossl_x509name.c index a0e28e2..fd66acb 100644 --- a/ext/openssl/ossl_x509name.c +++ b/ext/openssl/ossl_x509name.c @@ -437,7 +437,7 @@ ossl_x509name_to_der(VALUE self) * You can create a Name by parsing a distinguished name String or by * supplying the distinguished name as an Array. * - * name = OpenSSL::X509::Name.parse 'CN=nobody/DC=example' + * name = OpenSSL::X509::Name.parse '/CN=nobody/DC=example' * * name = OpenSSL::X509::Name.new [['CN', 'nobody'], ['DC', 'example']] */ -- 1.8.3.1