r509 0.10.0 → 1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/README.mdown +2 -2
- data/Rakefile +2 -3
- data/bin/r509 +77 -80
- data/bin/r509-parse +4 -4
- data/doc/R509.html +60 -60
- data/doc/R509/ASN1.html +158 -48
- data/doc/R509/ASN1/GeneralName.html +157 -154
- data/doc/R509/ASN1/GeneralNames.html +246 -237
- data/doc/R509/CRL.html +41 -39
- data/doc/R509/CRL/Administrator.html +105 -100
- data/doc/R509/CRL/FileReaderWriter.html +146 -98
- data/doc/R509/CRL/ReaderWriter.html +57 -54
- data/doc/R509/CRL/SQLiteReaderWriter.html +727 -0
- data/doc/R509/CRL/SignedList.html +83 -80
- data/doc/R509/CSR.html +184 -162
- data/doc/R509/Cert.html +271 -269
- data/doc/R509/Cert/Extensions.html +62 -63
- data/doc/R509/Cert/Extensions/AuthorityInfoAccess.html +138 -108
- data/doc/R509/Cert/Extensions/AuthorityKeyIdentifier.html +100 -84
- data/doc/R509/Cert/Extensions/BasicConstraints.html +89 -88
- data/doc/R509/Cert/Extensions/CRLDistributionPoints.html +87 -83
- data/doc/R509/Cert/Extensions/CertificatePolicies.html +78 -76
- data/doc/R509/Cert/Extensions/ExtendedKeyUsage.html +128 -125
- data/doc/R509/Cert/Extensions/GeneralNamesMixin.html +83 -78
- data/doc/R509/Cert/Extensions/InhibitAnyPolicy.html +69 -67
- data/doc/R509/Cert/Extensions/KeyUsage.html +138 -135
- data/doc/R509/Cert/Extensions/NameConstraints.html +82 -81
- data/doc/R509/Cert/Extensions/NoticeReference.html +59 -56
- data/doc/R509/Cert/Extensions/OCSPNoCheck.html +70 -69
- data/doc/R509/Cert/Extensions/PolicyConstraints.html +71 -69
- data/doc/R509/Cert/Extensions/PolicyInformation.html +63 -60
- data/doc/R509/Cert/Extensions/PolicyQualifiers.html +60 -57
- data/doc/R509/Cert/Extensions/SubjectAlternativeName.html +91 -87
- data/doc/R509/Cert/Extensions/SubjectKeyIdentifier.html +72 -71
- data/doc/R509/Cert/Extensions/UserNotice.html +60 -57
- data/doc/R509/Cert/Extensions/ValidationMixin.html +43 -40
- data/doc/R509/CertificateAuthority.html +39 -37
- data/doc/R509/CertificateAuthority/OptionsBuilder.html +58 -55
- data/doc/R509/CertificateAuthority/Signer.html +277 -60
- data/doc/R509/Config.html +40 -38
- data/doc/R509/Config/CAConfig.html +255 -188
- data/doc/R509/Config/CAConfigPool.html +64 -61
- data/doc/R509/Config/CertProfile.html +119 -116
- data/doc/R509/Config/SubjectItemPolicy.html +94 -93
- data/doc/R509/Engine.html +60 -56
- data/doc/R509/Helpers.html +99 -96
- data/doc/R509/MessageDigest.html +69 -68
- data/doc/R509/NameSanitizer.html +51 -48
- data/doc/R509/OCSP.html +39 -37
- data/doc/R509/OCSP/Request.html +39 -37
- data/doc/R509/OCSP/Request/Nonce.html +67 -67
- data/doc/R509/OCSP/Response.html +93 -90
- data/doc/R509/OIDMapper.html +48 -46
- data/doc/R509/PrivateKey.html +170 -169
- data/doc/R509/R509Error.html +45 -42
- data/doc/R509/SPKI.html +99 -89
- data/doc/R509/Subject.html +86 -83
- data/doc/R509/Validity.html +57 -57
- data/doc/R509/Validity/Checker.html +63 -93
- data/doc/R509/Validity/DefaultChecker.html +58 -55
- data/doc/R509/Validity/DefaultWriter.html +62 -59
- data/doc/R509/Validity/Status.html +77 -74
- data/doc/R509/Validity/Writer.html +75 -123
- data/doc/_index.html +37 -31
- data/doc/class_list.html +25 -27
- data/doc/css/full_list.css +32 -31
- data/doc/css/style.css +221 -78
- data/doc/file.CONTRIBUTING.html +29 -30
- data/doc/file.LICENSE.html +29 -30
- data/doc/file.README.html +31 -32
- data/doc/file.YAML.html +33 -34
- data/doc/file.r509.html +39 -48
- data/doc/file_list.html +39 -30
- data/doc/frames.html +10 -21
- data/doc/index.html +31 -32
- data/doc/js/app.js +100 -71
- data/doc/js/full_list.js +168 -130
- data/doc/method_list.html +1788 -1119
- data/doc/top-level-namespace.html +45 -49
- data/lib/r509.rb +21 -7
- data/lib/r509/asn1.rb +45 -32
- data/lib/r509/cert.rb +45 -51
- data/lib/r509/cert/extensions/authority_info_access.rb +49 -23
- data/lib/r509/cert/extensions/authority_key_identifier.rb +16 -11
- data/lib/r509/cert/extensions/base.rb +22 -23
- data/lib/r509/cert/extensions/basic_constraints.rb +11 -12
- data/lib/r509/cert/extensions/certificate_policies.rb +26 -26
- data/lib/r509/cert/extensions/crl_distribution_points.rb +5 -7
- data/lib/r509/cert/extensions/extended_key_usage.rb +5 -5
- data/lib/r509/cert/extensions/inhibit_any_policy.rb +4 -3
- data/lib/r509/cert/extensions/key_usage.rb +5 -5
- data/lib/r509/cert/extensions/name_constraints.rb +16 -16
- data/lib/r509/cert/extensions/ocsp_no_check.rb +3 -3
- data/lib/r509/cert/extensions/policy_constraints.rb +8 -8
- data/lib/r509/cert/extensions/subject_alternative_name.rb +5 -4
- data/lib/r509/cert/extensions/subject_key_identifier.rb +5 -5
- data/lib/r509/cert/extensions/validation_mixin.rb +11 -10
- data/lib/r509/certificate_authority/options_builder.rb +19 -21
- data/lib/r509/certificate_authority/signer.rb +26 -27
- data/lib/r509/config.rb +1 -0
- data/lib/r509/config/ca_config.rb +70 -75
- data/lib/r509/config/cert_profile.rb +9 -8
- data/lib/r509/config/subject_item_policy.rb +25 -28
- data/lib/r509/crl/administrator.rb +19 -20
- data/lib/r509/crl/reader_writer.rb +10 -8
- data/lib/r509/crl/signed_list.rb +4 -4
- data/lib/r509/crl/sqlite_reader_writer.rb +75 -0
- data/lib/r509/csr.rb +54 -60
- data/lib/r509/ec-hack.rb +3 -2
- data/lib/r509/engine.rb +5 -6
- data/lib/r509/exceptions.rb +1 -1
- data/lib/r509/helpers.rb +11 -14
- data/lib/r509/io_helpers.rb +7 -7
- data/lib/r509/message_digest.rb +5 -6
- data/lib/r509/ocsp.rb +11 -13
- data/lib/r509/oid_mapper.rb +2 -2
- data/lib/r509/private_key.rb +28 -32
- data/lib/r509/spki.rb +17 -20
- data/lib/r509/subject.rb +26 -27
- data/lib/r509/trollop.rb +1 -0
- data/lib/r509/validity.rb +30 -21
- data/lib/r509/version.rb +4 -2
- data/r509.yaml +9 -17
- data/spec/asn1_spec.rb +145 -146
- data/spec/cert/extensions/authority_info_access_spec.rb +41 -41
- data/spec/cert/extensions/authority_key_identifier_spec.rb +29 -23
- data/spec/cert/extensions/base_spec.rb +38 -34
- data/spec/cert/extensions/basic_constraints_spec.rb +21 -21
- data/spec/cert/extensions/certificate_policies_spec.rb +99 -87
- data/spec/cert/extensions/crl_distribution_points_spec.rb +24 -25
- data/spec/cert/extensions/extended_key_usage_spec.rb +40 -36
- data/spec/cert/extensions/inhibit_any_policy_spec.rb +12 -12
- data/spec/cert/extensions/key_usage_spec.rb +44 -39
- data/spec/cert/extensions/name_constraints_spec.rb +83 -83
- data/spec/cert/extensions/ocsp_no_check_spec.rb +10 -10
- data/spec/cert/extensions/policy_constraints_spec.rb +19 -19
- data/spec/cert/extensions/subject_alternative_name_spec.rb +46 -47
- data/spec/cert/extensions/subject_key_identifier_spec.rb +10 -10
- data/spec/cert_spec.rb +105 -101
- data/spec/certificate_authority/options_builder_spec.rb +90 -90
- data/spec/certificate_authority/signer_spec.rb +41 -41
- data/spec/config/ca_config_spec.rb +169 -119
- data/spec/config/cert_profile_spec.rb +33 -33
- data/spec/config/subject_item_policy_spec.rb +22 -22
- data/spec/crl/administrator_spec.rb +65 -65
- data/spec/crl/reader_writer_spec.rb +20 -19
- data/spec/crl/signed_list_spec.rb +26 -26
- data/spec/crl/sqlite_reader_writer_spec.rb +42 -0
- data/spec/csr_spec.rb +149 -145
- data/spec/engine_spec.rb +14 -14
- data/spec/fixtures.rb +56 -39
- data/spec/fixtures/crl_list.sql +13 -0
- data/spec/fixtures/csr1.der +0 -0
- data/spec/fixtures/csr1.pem +6 -6
- data/spec/message_digest_spec.rb +43 -43
- data/spec/ocsp_spec.rb +25 -25
- data/spec/oid_mapper_spec.rb +18 -19
- data/spec/private_key_spec.rb +79 -81
- data/spec/r509_spec.rb +16 -16
- data/spec/spec_helper.rb +3 -3
- data/spec/spki_spec.rb +94 -94
- data/spec/subject_spec.rb +107 -107
- data/spec/validity_spec.rb +25 -25
- metadata +113 -111
- metadata.gz.sig +0 -0
@@ -1,12 +1,12 @@
|
|
1
|
-
<!DOCTYPE html
|
2
|
-
|
3
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
4
3
|
<head>
|
5
|
-
<meta
|
4
|
+
<meta charset="utf-8">
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
6
|
<title>
|
7
7
|
Class: R509::CRL::FileReaderWriter
|
8
8
|
|
9
|
-
— Documentation by YARD 0.
|
9
|
+
— Documentation by YARD 0.9.5
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -15,9 +15,8 @@
|
|
15
15
|
<link rel="stylesheet" href="../../css/common.css" type="text/css" charset="utf-8" />
|
16
16
|
|
17
17
|
<script type="text/javascript" charset="utf-8">
|
18
|
-
|
18
|
+
pathId = "R509::CRL::FileReaderWriter";
|
19
19
|
relpath = '../../';
|
20
|
-
framesUrl = "../../frames.html#!" + escape(window.location.href);
|
21
20
|
</script>
|
22
21
|
|
23
22
|
|
@@ -28,51 +27,50 @@
|
|
28
27
|
|
29
28
|
</head>
|
30
29
|
<body>
|
31
|
-
<div
|
32
|
-
<
|
30
|
+
<div class="nav_wrap">
|
31
|
+
<iframe id="nav" src="../../class_list.html"></iframe>
|
32
|
+
<div id="resizer"></div>
|
33
|
+
</div>
|
34
|
+
|
35
|
+
<div id="main" tabindex="-1">
|
36
|
+
<div id="header">
|
37
|
+
<div id="menu">
|
33
38
|
|
34
39
|
<a href="../../_index.html">Index (F)</a> »
|
35
40
|
<span class='title'><span class='object_link'><a href="../../R509.html" title="R509 (module)">R509</a></span></span> » <span class='title'><span class='object_link'><a href="../CRL.html" title="R509::CRL (module)">CRL</a></span></span>
|
36
41
|
»
|
37
42
|
<span class="title">FileReaderWriter</span>
|
38
43
|
|
39
|
-
|
40
|
-
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
41
44
|
</div>
|
42
45
|
|
43
|
-
|
46
|
+
<div id="search">
|
44
47
|
|
45
48
|
<a class="full_list_link" id="class_list_link"
|
46
49
|
href="../../class_list.html">
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
</a>
|
54
|
-
|
55
|
-
<a class="full_list_link" id="file_list_link"
|
56
|
-
href="../../file_list.html">
|
57
|
-
File List
|
50
|
+
|
51
|
+
<svg width="24" height="24">
|
52
|
+
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
|
53
|
+
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
|
54
|
+
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
|
55
|
+
</svg>
|
58
56
|
</a>
|
59
57
|
|
60
58
|
</div>
|
61
|
-
|
62
|
-
|
59
|
+
<div class="clear"></div>
|
60
|
+
</div>
|
63
61
|
|
64
|
-
|
62
|
+
<iframe id="search_frame" src="../../class_list.html"></iframe>
|
65
63
|
|
66
|
-
|
64
|
+
<div id="content"><h1>Class: R509::CRL::FileReaderWriter
|
67
65
|
|
68
66
|
|
69
67
|
|
70
68
|
</h1>
|
71
|
-
|
72
|
-
<dl class="box">
|
69
|
+
<div class="box_info">
|
73
70
|
|
74
|
-
|
75
|
-
<
|
71
|
+
<dl>
|
72
|
+
<dt>Inherits:</dt>
|
73
|
+
<dd>
|
76
74
|
<span class="inheritName"><span class='object_link'><a href="ReaderWriter.html" title="R509::CRL::ReaderWriter (class)">ReaderWriter</a></span></span>
|
77
75
|
|
78
76
|
<ul class="fullTree">
|
@@ -85,21 +83,25 @@
|
|
85
83
|
</ul>
|
86
84
|
<a href="#" class="inheritanceTree">show all</a>
|
87
85
|
|
88
|
-
|
89
|
-
|
86
|
+
</dd>
|
87
|
+
</dl>
|
90
88
|
|
89
|
+
|
91
90
|
|
92
|
-
|
93
91
|
|
94
|
-
|
95
92
|
|
96
93
|
|
97
94
|
|
98
|
-
|
99
|
-
<dd class="r2 last">lib/r509/crl/reader_writer.rb</dd>
|
95
|
+
|
100
96
|
|
101
|
-
|
102
|
-
|
97
|
+
|
98
|
+
|
99
|
+
<dl>
|
100
|
+
<dt>Defined in:</dt>
|
101
|
+
<dd>lib/r509/crl/reader_writer.rb</dd>
|
102
|
+
</dl>
|
103
|
+
|
104
|
+
</div>
|
103
105
|
|
104
106
|
<h2>Overview</h2><div class="docstring">
|
105
107
|
<div class="discussion">
|
@@ -117,13 +119,13 @@ crl_number_file and crl_list_file attributes in CAConfig</p>
|
|
117
119
|
|
118
120
|
|
119
121
|
|
120
|
-
<h2>Instance Attribute Summary <small
|
122
|
+
<h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
|
121
123
|
<ul class="summary">
|
122
124
|
|
123
125
|
<li class="public ">
|
124
126
|
<span class="summary_signature">
|
125
127
|
|
126
|
-
<a href="#crl_list_file-instance_method" title="#crl_list_file (instance method)"
|
128
|
+
<a href="#crl_list_file-instance_method" title="#crl_list_file (instance method)">#<strong>crl_list_file</strong> ⇒ Object </a>
|
127
129
|
|
128
130
|
|
129
131
|
|
@@ -150,7 +152,7 @@ crl_number_file and crl_list_file attributes in CAConfig</p>
|
|
150
152
|
<li class="public ">
|
151
153
|
<span class="summary_signature">
|
152
154
|
|
153
|
-
<a href="#crl_number_file-instance_method" title="#crl_number_file (instance method)"
|
155
|
+
<a href="#crl_number_file-instance_method" title="#crl_number_file (instance method)">#<strong>crl_number_file</strong> ⇒ Object </a>
|
154
156
|
|
155
157
|
|
156
158
|
|
@@ -182,7 +184,7 @@ crl_number_file and crl_list_file attributes in CAConfig</p>
|
|
182
184
|
|
183
185
|
<h2>
|
184
186
|
Instance Method Summary
|
185
|
-
<small
|
187
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
186
188
|
</h2>
|
187
189
|
|
188
190
|
<ul class="summary">
|
@@ -190,7 +192,7 @@ crl_number_file and crl_list_file attributes in CAConfig</p>
|
|
190
192
|
<li class="public ">
|
191
193
|
<span class="summary_signature">
|
192
194
|
|
193
|
-
<a href="#initialize-instance_method" title="#initialize (instance method)"
|
195
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong> ⇒ FileReaderWriter </a>
|
194
196
|
|
195
197
|
|
196
198
|
|
@@ -216,7 +218,7 @@ crl_number_file and crl_list_file attributes in CAConfig</p>
|
|
216
218
|
<li class="public ">
|
217
219
|
<span class="summary_signature">
|
218
220
|
|
219
|
-
<a href="#read_list-instance_method" title="#read_list (instance method)"
|
221
|
+
<a href="#read_list-instance_method" title="#read_list (instance method)">#<strong>read_list</strong> {|serial, reason, revoke_time| ... } ⇒ Object </a>
|
220
222
|
|
221
223
|
|
222
224
|
|
@@ -240,7 +242,7 @@ crl_number_file and crl_list_file attributes in CAConfig</p>
|
|
240
242
|
<li class="public ">
|
241
243
|
<span class="summary_signature">
|
242
244
|
|
243
|
-
<a href="#read_number-instance_method" title="#read_number (instance method)"
|
245
|
+
<a href="#read_number-instance_method" title="#read_number (instance method)">#<strong>read_number</strong> ⇒ Object </a>
|
244
246
|
|
245
247
|
|
246
248
|
|
@@ -264,7 +266,7 @@ crl_number_file and crl_list_file attributes in CAConfig</p>
|
|
264
266
|
<li class="public ">
|
265
267
|
<span class="summary_signature">
|
266
268
|
|
267
|
-
<a href="#remove_list_entry-instance_method" title="#remove_list_entry (instance method)"
|
269
|
+
<a href="#remove_list_entry-instance_method" title="#remove_list_entry (instance method)">#<strong>remove_list_entry</strong>(serial) ⇒ Object </a>
|
268
270
|
|
269
271
|
|
270
272
|
|
@@ -288,7 +290,7 @@ crl_number_file and crl_list_file attributes in CAConfig</p>
|
|
288
290
|
<li class="public ">
|
289
291
|
<span class="summary_signature">
|
290
292
|
|
291
|
-
<a href="#write_list_entry-instance_method" title="#write_list_entry (instance method)"
|
293
|
+
<a href="#write_list_entry-instance_method" title="#write_list_entry (instance method)">#<strong>write_list_entry</strong>(serial, revoke_time, reason) ⇒ Object </a>
|
292
294
|
|
293
295
|
|
294
296
|
|
@@ -312,7 +314,7 @@ crl_number_file and crl_list_file attributes in CAConfig</p>
|
|
312
314
|
<li class="public ">
|
313
315
|
<span class="summary_signature">
|
314
316
|
|
315
|
-
<a href="#write_number-instance_method" title="#write_number (instance method)"
|
317
|
+
<a href="#write_number-instance_method" title="#write_number (instance method)">#<strong>write_number</strong>(crl_number) ⇒ Object </a>
|
316
318
|
|
317
319
|
|
318
320
|
|
@@ -346,7 +348,7 @@ crl_number_file and crl_list_file attributes in CAConfig</p>
|
|
346
348
|
<div class="method_details first">
|
347
349
|
<h3 class="signature first" id="initialize-instance_method">
|
348
350
|
|
349
|
-
|
351
|
+
#<strong>initialize</strong> ⇒ <tt><span class='object_link'><a href="" title="R509::CRL::FileReaderWriter (class)">FileReaderWriter</a></span></tt>
|
350
352
|
|
351
353
|
|
352
354
|
|
@@ -355,7 +357,7 @@ crl_number_file and crl_list_file attributes in CAConfig</p>
|
|
355
357
|
</h3><div class="docstring">
|
356
358
|
<div class="discussion">
|
357
359
|
|
358
|
-
<p>
|
360
|
+
<p>Returns a new instance of FileReaderWriter</p>
|
359
361
|
|
360
362
|
|
361
363
|
</div>
|
@@ -396,7 +398,7 @@ crl_number_file and crl_list_file attributes in CAConfig</p>
|
|
396
398
|
<div class="method_details first">
|
397
399
|
<h3 class="signature first" id="crl_list_file-instance_method">
|
398
400
|
|
399
|
-
|
401
|
+
#<strong>crl_list_file</strong> ⇒ <tt>Object</tt>
|
400
402
|
|
401
403
|
|
402
404
|
|
@@ -439,7 +441,7 @@ crl_number_file and crl_list_file attributes in CAConfig</p>
|
|
439
441
|
<div class="method_details ">
|
440
442
|
<h3 class="signature " id="crl_number_file-instance_method">
|
441
443
|
|
442
|
-
|
444
|
+
#<strong>crl_number_file</strong> ⇒ <tt>Object</tt>
|
443
445
|
|
444
446
|
|
445
447
|
|
@@ -487,7 +489,7 @@ crl_number_file and crl_list_file attributes in CAConfig</p>
|
|
487
489
|
<div class="method_details first">
|
488
490
|
<h3 class="signature first" id="read_list-instance_method">
|
489
491
|
|
490
|
-
|
492
|
+
#<strong>read_list</strong> {|serial, reason, revoke_time| ... } ⇒ <tt>Object</tt>
|
491
493
|
|
492
494
|
|
493
495
|
|
@@ -502,37 +504,79 @@ crl_number_file and crl_list_file attributes in CAConfig</p>
|
|
502
504
|
</div>
|
503
505
|
</div>
|
504
506
|
<div class="tags">
|
505
|
-
|
506
|
-
<
|
507
|
+
|
508
|
+
<p class="tag_title">Yields:</p>
|
509
|
+
<ul class="yield">
|
507
510
|
|
508
511
|
<li>
|
509
512
|
|
510
|
-
<span class='name'>admin</span>
|
511
513
|
|
514
|
+
<span class='type'></span>
|
515
|
+
|
516
|
+
|
517
|
+
|
518
|
+
|
519
|
+
<div class='inline'>
|
520
|
+
<p>For each revoked certificate in the CRL</p>
|
521
|
+
</div>
|
512
522
|
|
513
|
-
|
523
|
+
</li>
|
524
|
+
|
525
|
+
</ul>
|
526
|
+
<p class="tag_title">Yield Parameters:</p>
|
527
|
+
<ul class="yieldparam">
|
528
|
+
|
529
|
+
<li>
|
530
|
+
|
531
|
+
<span class='name'>serial</span>
|
532
|
+
|
533
|
+
|
534
|
+
<span class='type'>(<tt>Integer</tt>)</span>
|
535
|
+
|
536
|
+
|
537
|
+
|
538
|
+
—
|
539
|
+
<div class='inline'>
|
540
|
+
<p>revoked certificate's serial number</p>
|
541
|
+
</div>
|
542
|
+
|
543
|
+
</li>
|
544
|
+
|
545
|
+
<li>
|
546
|
+
|
547
|
+
<span class='name'>reason</span>
|
548
|
+
|
549
|
+
|
550
|
+
<span class='type'>(<tt>Integer</tt>, <tt>nil</tt>)</span>
|
514
551
|
|
515
552
|
|
516
553
|
|
517
554
|
—
|
518
555
|
<div class='inline'>
|
519
|
-
<p>
|
556
|
+
<p>reason for revocation.</p>
|
520
557
|
</div>
|
521
558
|
|
522
559
|
</li>
|
523
560
|
|
561
|
+
<li>
|
562
|
+
|
563
|
+
<span class='name'>revoke_time</span>
|
564
|
+
|
565
|
+
|
566
|
+
<span class='type'>(<tt>Integer</tt>)</span>
|
567
|
+
|
568
|
+
|
569
|
+
|
570
|
+
</li>
|
571
|
+
|
524
572
|
</ul>
|
525
573
|
|
526
|
-
|
527
574
|
</div><table class="source_code">
|
528
575
|
<tr>
|
529
576
|
<td>
|
530
577
|
<pre class="lines">
|
531
578
|
|
532
579
|
|
533
|
-
46
|
534
|
-
47
|
535
|
-
48
|
536
580
|
49
|
537
581
|
50
|
538
582
|
51
|
@@ -544,12 +588,15 @@ crl_number_file and crl_list_file attributes in CAConfig</p>
|
|
544
588
|
57
|
545
589
|
58
|
546
590
|
59
|
547
|
-
60
|
591
|
+
60
|
592
|
+
61
|
593
|
+
62
|
594
|
+
63</pre>
|
548
595
|
</td>
|
549
596
|
<td>
|
550
|
-
<pre class="code"><span class="info file"># File 'lib/r509/crl/reader_writer.rb', line
|
597
|
+
<pre class="code"><span class="info file"># File 'lib/r509/crl/reader_writer.rb', line 49</span>
|
551
598
|
|
552
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_read_list'>read_list</span
|
599
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_read_list'>read_list</span>
|
553
600
|
<span class='kw'>return</span> <span class='kw'>nil</span> <span class='kw'>if</span> <span class='ivar'>@crl_list_file</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
554
601
|
|
555
602
|
<span class='id identifier rubyid_data'>data</span> <span class='op'>=</span> <span class='id identifier rubyid_read_data'>read_data</span><span class='lparen'>(</span><span class='ivar'>@crl_list_file</span><span class='rparen'>)</span>
|
@@ -560,7 +607,7 @@ crl_number_file and crl_list_file attributes in CAConfig</p>
|
|
560
607
|
<span class='id identifier rubyid_serial'>serial</span> <span class='op'>=</span> <span class='id identifier rubyid_serial'>serial</span><span class='period'>.</span><span class='id identifier rubyid_to_i'>to_i</span>
|
561
608
|
<span class='id identifier rubyid_reason'>reason</span> <span class='op'>=</span> <span class='lparen'>(</span><span class='id identifier rubyid_reason'>reason</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span> <span class='op'>?</span> <span class='kw'>nil</span> <span class='op'>:</span> <span class='id identifier rubyid_reason'>reason</span><span class='period'>.</span><span class='id identifier rubyid_to_i'>to_i</span>
|
562
609
|
<span class='id identifier rubyid_revoke_time'>revoke_time</span> <span class='op'>=</span> <span class='lparen'>(</span><span class='id identifier rubyid_revoke_time'>revoke_time</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span> <span class='op'>?</span> <span class='kw'>nil</span> <span class='op'>:</span> <span class='id identifier rubyid_revoke_time'>revoke_time</span><span class='period'>.</span><span class='id identifier rubyid_to_i'>to_i</span>
|
563
|
-
<span class='
|
610
|
+
<span class='kw'>yield</span> <span class='id identifier rubyid_serial'>serial</span><span class='comma'>,</span> <span class='id identifier rubyid_reason'>reason</span><span class='comma'>,</span> <span class='id identifier rubyid_revoke_time'>revoke_time</span>
|
564
611
|
<span class='kw'>end</span>
|
565
612
|
<span class='kw'>nil</span>
|
566
613
|
<span class='kw'>end</span></pre>
|
@@ -572,7 +619,7 @@ crl_number_file and crl_list_file attributes in CAConfig</p>
|
|
572
619
|
<div class="method_details ">
|
573
620
|
<h3 class="signature " id="read_number-instance_method">
|
574
621
|
|
575
|
-
|
622
|
+
#<strong>read_number</strong> ⇒ <tt>Object</tt>
|
576
623
|
|
577
624
|
|
578
625
|
|
@@ -595,14 +642,14 @@ crl_number_file and crl_list_file attributes in CAConfig</p>
|
|
595
642
|
<pre class="lines">
|
596
643
|
|
597
644
|
|
598
|
-
94
|
599
|
-
95
|
600
|
-
96
|
601
645
|
97
|
602
|
-
98
|
646
|
+
98
|
647
|
+
99
|
648
|
+
100
|
649
|
+
101</pre>
|
603
650
|
</td>
|
604
651
|
<td>
|
605
|
-
<pre class="code"><span class="info file"># File 'lib/r509/crl/reader_writer.rb', line
|
652
|
+
<pre class="code"><span class="info file"># File 'lib/r509/crl/reader_writer.rb', line 97</span>
|
606
653
|
|
607
654
|
<span class='kw'>def</span> <span class='id identifier rubyid_read_number'>read_number</span>
|
608
655
|
<span class='kw'>return</span> <span class='int'>0</span> <span class='kw'>if</span> <span class='ivar'>@crl_number_file</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
@@ -617,7 +664,7 @@ crl_number_file and crl_list_file attributes in CAConfig</p>
|
|
617
664
|
<div class="method_details ">
|
618
665
|
<h3 class="signature " id="remove_list_entry-instance_method">
|
619
666
|
|
620
|
-
|
667
|
+
#<strong>remove_list_entry</strong>(serial) ⇒ <tt>Object</tt>
|
621
668
|
|
622
669
|
|
623
670
|
|
@@ -660,9 +707,6 @@ crl_number_file and crl_list_file attributes in CAConfig</p>
|
|
660
707
|
<pre class="lines">
|
661
708
|
|
662
709
|
|
663
|
-
75
|
664
|
-
76
|
665
|
-
77
|
666
710
|
78
|
667
711
|
79
|
668
712
|
80
|
@@ -676,10 +720,13 @@ crl_number_file and crl_list_file attributes in CAConfig</p>
|
|
676
720
|
88
|
677
721
|
89
|
678
722
|
90
|
679
|
-
91
|
723
|
+
91
|
724
|
+
92
|
725
|
+
93
|
726
|
+
94</pre>
|
680
727
|
</td>
|
681
728
|
<td>
|
682
|
-
<pre class="code"><span class="info file"># File 'lib/r509/crl/reader_writer.rb', line
|
729
|
+
<pre class="code"><span class="info file"># File 'lib/r509/crl/reader_writer.rb', line 78</span>
|
683
730
|
|
684
731
|
<span class='kw'>def</span> <span class='id identifier rubyid_remove_list_entry'>remove_list_entry</span><span class='lparen'>(</span><span class='id identifier rubyid_serial'>serial</span><span class='rparen'>)</span>
|
685
732
|
<span class='kw'>return</span> <span class='kw'>nil</span> <span class='kw'>if</span> <span class='ivar'>@crl_list_file</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
@@ -695,7 +742,7 @@ crl_number_file and crl_list_file attributes in CAConfig</p>
|
|
695
742
|
<span class='id identifier rubyid_updated_list'>updated_list</span><span class='period'>.</span><span class='id identifier rubyid_push'>push</span><span class='lparen'>(</span><span class='id identifier rubyid_line'>line</span><span class='rparen'>)</span>
|
696
743
|
<span class='kw'>end</span>
|
697
744
|
<span class='kw'>end</span>
|
698
|
-
<span class='id identifier rubyid_write_data'>write_data</span><span class='lparen'>(</span><span class='ivar'>@crl_list_file</span><span class='comma'>,</span> <span class='id identifier rubyid_updated_list'>updated_list</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\n</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span
|
745
|
+
<span class='id identifier rubyid_write_data'>write_data</span><span class='lparen'>(</span><span class='ivar'>@crl_list_file</span><span class='comma'>,</span> <span class='id identifier rubyid_updated_list'>updated_list</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\n</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span> <span class='op'>+</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\n</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
699
746
|
<span class='kw'>nil</span>
|
700
747
|
<span class='kw'>end</span></pre>
|
701
748
|
</td>
|
@@ -706,7 +753,7 @@ crl_number_file and crl_list_file attributes in CAConfig</p>
|
|
706
753
|
<div class="method_details ">
|
707
754
|
<h3 class="signature " id="write_list_entry-instance_method">
|
708
755
|
|
709
|
-
|
756
|
+
#<strong>write_list_entry</strong>(serial, revoke_time, reason) ⇒ <tt>Object</tt>
|
710
757
|
|
711
758
|
|
712
759
|
|
@@ -776,21 +823,21 @@ crl_number_file and crl_list_file attributes in CAConfig</p>
|
|
776
823
|
<pre class="lines">
|
777
824
|
|
778
825
|
|
779
|
-
66
|
780
|
-
67
|
781
|
-
68
|
782
826
|
69
|
783
827
|
70
|
784
|
-
71
|
828
|
+
71
|
829
|
+
72
|
830
|
+
73
|
831
|
+
74</pre>
|
785
832
|
</td>
|
786
833
|
<td>
|
787
|
-
<pre class="code"><span class="info file"># File 'lib/r509/crl/reader_writer.rb', line
|
834
|
+
<pre class="code"><span class="info file"># File 'lib/r509/crl/reader_writer.rb', line 69</span>
|
788
835
|
|
789
836
|
<span class='kw'>def</span> <span class='id identifier rubyid_write_list_entry'>write_list_entry</span><span class='lparen'>(</span><span class='id identifier rubyid_serial'>serial</span><span class='comma'>,</span> <span class='id identifier rubyid_revoke_time'>revoke_time</span><span class='comma'>,</span> <span class='id identifier rubyid_reason'>reason</span><span class='rparen'>)</span>
|
790
837
|
<span class='kw'>return</span> <span class='kw'>nil</span> <span class='kw'>if</span> <span class='ivar'>@crl_list_file</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
791
838
|
|
792
|
-
<span class='id identifier rubyid_entry'>entry</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='id identifier rubyid_serial'>serial</span><span class='comma'>,</span
|
793
|
-
<span class='id identifier rubyid_write_data'>write_data</span><span class='lparen'>(</span><span class='ivar'>@crl_list_file</span><span class='comma'>,</span> <span class='id identifier rubyid_entry'>entry</span
|
839
|
+
<span class='id identifier rubyid_entry'>entry</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='id identifier rubyid_serial'>serial</span><span class='comma'>,</span> <span class='id identifier rubyid_revoke_time'>revoke_time</span><span class='comma'>,</span> <span class='id identifier rubyid_reason'>reason</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>,</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
840
|
+
<span class='id identifier rubyid_write_data'>write_data</span><span class='lparen'>(</span><span class='ivar'>@crl_list_file</span><span class='comma'>,</span> <span class='id identifier rubyid_entry'>entry</span> <span class='op'>+</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\n</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>a:ascii-8bit</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
794
841
|
<span class='kw'>end</span></pre>
|
795
842
|
</td>
|
796
843
|
</tr>
|
@@ -800,7 +847,7 @@ crl_number_file and crl_list_file attributes in CAConfig</p>
|
|
800
847
|
<div class="method_details ">
|
801
848
|
<h3 class="signature " id="write_number-instance_method">
|
802
849
|
|
803
|
-
|
850
|
+
#<strong>write_number</strong>(crl_number) ⇒ <tt>Object</tt>
|
804
851
|
|
805
852
|
|
806
853
|
|
@@ -823,19 +870,19 @@ crl_number_file and crl_list_file attributes in CAConfig</p>
|
|
823
870
|
<pre class="lines">
|
824
871
|
|
825
872
|
|
826
|
-
101
|
827
|
-
102
|
828
|
-
103
|
829
873
|
104
|
830
|
-
105
|
874
|
+
105
|
875
|
+
106
|
876
|
+
107
|
877
|
+
108</pre>
|
831
878
|
</td>
|
832
879
|
<td>
|
833
|
-
<pre class="code"><span class="info file"># File 'lib/r509/crl/reader_writer.rb', line
|
880
|
+
<pre class="code"><span class="info file"># File 'lib/r509/crl/reader_writer.rb', line 104</span>
|
834
881
|
|
835
882
|
<span class='kw'>def</span> <span class='id identifier rubyid_write_number'>write_number</span><span class='lparen'>(</span><span class='id identifier rubyid_crl_number'>crl_number</span><span class='rparen'>)</span>
|
836
883
|
<span class='kw'>return</span> <span class='kw'>nil</span> <span class='kw'>if</span> <span class='ivar'>@crl_number_file</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
837
884
|
|
838
|
-
<span class='id identifier rubyid_write_data'>write_data</span><span class='lparen'>(</span><span class='ivar'>@crl_number_file</span><span class='comma'>,</span
|
885
|
+
<span class='id identifier rubyid_write_data'>write_data</span><span class='lparen'>(</span><span class='ivar'>@crl_number_file</span><span class='comma'>,</span> <span class='id identifier rubyid_crl_number'>crl_number</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span><span class='rparen'>)</span>
|
839
886
|
<span class='kw'>end</span></pre>
|
840
887
|
</td>
|
841
888
|
</tr>
|
@@ -846,11 +893,12 @@ crl_number_file and crl_list_file attributes in CAConfig</p>
|
|
846
893
|
|
847
894
|
</div>
|
848
895
|
|
849
|
-
|
850
|
-
Generated on
|
896
|
+
<div id="footer">
|
897
|
+
Generated on Tue Dec 6 17:27:40 2016 by
|
851
898
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
852
|
-
0.
|
899
|
+
0.9.5 (ruby-2.4.0).
|
853
900
|
</div>
|
854
901
|
|
902
|
+
</div>
|
855
903
|
</body>
|
856
904
|
</html>
|