From 783fb0881f91d59dca1430657628c4d50bd1a2be Mon Sep 17 00:00:00 2001 From: emboss Date: Tue, 16 Aug 2011 21:41:25 +0000 Subject: * ext/openssl/ossl_x509cert.c: fixed whitespace issues git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32992 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/openssl/ossl_x509cert.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'ext') diff --git a/ext/openssl/ossl_x509cert.c b/ext/openssl/ossl_x509cert.c index a820afb5c4..b71025e145 100644 --- a/ext/openssl/ossl_x509cert.c +++ b/ext/openssl/ossl_x509cert.c @@ -765,13 +765,13 @@ Init_ossl_x509cert() * File.open("cert.pem", "wb") { |f| f.print cert.to_pem } * * X.509 certificates are associated with a private/public key pair, - * typically a RSA, DSA or ECC key (see also OpenSSL::PKey::RSA, - * OpenSSL::PKey::DSA and OpenSSL::PKey::EC), the public key itself is - * stored within the certificate and can be accessed in form of an + * typically a RSA, DSA or ECC key (see also OpenSSL::PKey::RSA, + * OpenSSL::PKey::DSA and OpenSSL::PKey::EC), the public key itself is + * stored within the certificate and can be accessed in form of an * OpenSSL::PKey. Certificates are typically used to be able to associate * some form of identity with a key pair, for example web servers serving * pages over HTTPs use certificates to authenticate themselves to the user. - * + * * The public key infrastructure (PKI) model relies on trusted certificate * authorities ("root CAs") that issue these certificates, so that end * users need to base their trust just on a selected few authorities @@ -787,7 +787,7 @@ Init_ossl_x509cert() * First, we need to create a "self-signed" root certificate. To do so, * we need to generate a key first. Please note that the choice of "1" * as a serial number is considered a security flaw for real certificates. - * Secure choices are integers in the two-digit byte range and ideally + * Secure choices are integers in the two-digit byte range and ideally * not sequential but secure random numbers, steps omitted here to keep * the example concise. * @@ -811,7 +811,7 @@ Init_ossl_x509cert() * * The next step is to create the end-entity certificate using the root CA * certificate. - * + * * key = OpenSSL::PKey::RSA.new 2048 * cert = OpenSSL::X509::Certificate.new * cert.version = 2 @@ -827,7 +827,7 @@ Init_ossl_x509cert() * cert.add_extension(ef.create_extension("keyUsage","digitalSignature", true)) * cert.add_extension(ef.create_extension("subjectKeyIdentifier","hash",false)) * cert.sign(root_key, OpenSSL::Digest::SHA256.new) - * + * */ cX509Cert = rb_define_class_under(mX509, "Certificate", rb_cObject); -- cgit v1.2.3