[前][次][番号順一覧][スレッド一覧]

ruby-changes:25018

From: drbrain <ko1@a...>
Date: Wed, 3 Oct 2012 04:36:50 +0900 (JST)
Subject: [ruby-changes:25018] drbrain:r37070 (trunk): * ext/openssl/ossl_x509store.c (ossl_x509store_add_file): Added

drbrain	2012-10-03 04:36:26 +0900 (Wed, 03 Oct 2012)

  New Revision: 37070

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=37070

  Log:
    * ext/openssl/ossl_x509store.c (ossl_x509store_add_file):  Added
      documentation
    * ext/openssl/ossl_x509store.c (ossl_x509store_set_default_paths):
      ditto
    * ext/openssl/ossl_x509store.c (ossl_x509store_add_cert):  ditto

  Modified files:
    trunk/ChangeLog
    trunk/ext/openssl/ossl_x509store.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 37069)
+++ ChangeLog	(revision 37070)
@@ -1,3 +1,11 @@
+Wed Oct  3 04:36:11 2012  Eric Hodel  <drbrain@s...>
+
+	* ext/openssl/ossl_x509store.c (ossl_x509store_add_file):  Added
+	  documentation
+	* ext/openssl/ossl_x509store.c (ossl_x509store_set_default_paths):
+	  ditto
+	* ext/openssl/ossl_x509store.c (ossl_x509store_add_cert):  ditto
+
 Wed Oct  3 02:23:37 2012  Shugo Maeda  <shugo@r...>
 
 	* error.c (exc_to_s, name_err_to_s, name_err_mesg_to_str): do not
Index: ext/openssl/ossl_x509store.c
===================================================================
--- ext/openssl/ossl_x509store.c	(revision 37069)
+++ ext/openssl/ossl_x509store.c	(revision 37070)
@@ -204,6 +204,15 @@
     return time;
 }
 
+/*
+ * call-seq:
+ *   store.add_file(file) -> store
+ *
+ *
+ * Adds the certificates in +file+ to the certificate store.  The +file+ can
+ * contain multiple PEM-encoded certificates.
+ */
+
 static VALUE
 ossl_x509store_add_file(VALUE self, VALUE file)
 {
@@ -246,6 +255,16 @@
     return self;
 }
 
+/*
+ * call-seq:
+ *   store.set_default_path
+ *
+ * Adds the default certificates to the certificate store.  These certificates
+ * are loaded from the default configuration directory which can usually be
+ * determined by:
+ *
+ *   File.dirname OpenSSL::Config::DEFAULT_CONFIG_FILE
+ */
 static VALUE
 ossl_x509store_set_default_paths(VALUE self)
 {
@@ -259,6 +278,13 @@
     return Qnil;
 }
 
+/*
+ * call-seq:
+ *   store.add_cert(cert)
+ *
+ * Adds the OpenSSL::X509::Certificate +cert+ to the certificate store.
+ */
+
 static VALUE
 ossl_x509store_add_cert(VALUE self, VALUE arg)
 {

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]