rbs 3.6.0.pre.2 → 3.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +25 -0
- data/Rakefile +2 -2
- data/core/array.rbs +0 -2
- data/core/complex.rbs +0 -2
- data/core/data.rbs +0 -2
- data/core/dir.rbs +0 -2
- data/core/encoding.rbs +0 -2
- data/core/enumerator/product.rbs +0 -2
- data/core/enumerator.rbs +1 -1
- data/core/errors.rbs +0 -12
- data/core/file.rbs +0 -2
- data/core/float.rbs +0 -2
- data/core/hash.rbs +0 -2
- data/core/integer.rbs +0 -2
- data/core/io/buffer.rbs +0 -2
- data/core/kernel.rbs +5 -5
- data/core/module.rbs +2 -2
- data/core/numeric.rbs +0 -2
- data/core/object_space/weak_key_map.rbs +0 -2
- data/core/ractor.rbs +0 -6
- data/core/rational.rbs +0 -2
- data/core/rbs/unnamed/argf.rbs +0 -2
- data/core/ruby_vm.rbs +305 -0
- data/lib/rbs/ast/type_param.rb +44 -11
- data/lib/rbs/cli/validate.rb +6 -4
- data/lib/rbs/definition.rb +2 -8
- data/lib/rbs/definition_builder/ancestor_builder.rb +23 -7
- data/lib/rbs/definition_builder.rb +7 -6
- data/lib/rbs/errors.rb +38 -0
- data/lib/rbs/version.rb +1 -1
- data/sig/definition.rbs +1 -1
- data/sig/errors.rbs +14 -0
- data/sig/members.rbs +1 -2
- data/sig/type_param.rbs +9 -5
- data/stdlib/bigdecimal/0/big_decimal.rbs +0 -2
- data/stdlib/cgi/0/core.rbs +0 -10
- data/stdlib/date/0/date.rbs +0 -2
- data/stdlib/date/0/date_time.rbs +0 -2
- data/stdlib/dbm/0/dbm.rbs +0 -2
- data/stdlib/delegate/0/delegator.rbs +0 -2
- data/stdlib/delegate/0/simple_delegator.rbs +0 -2
- data/stdlib/digest/0/digest.rbs +0 -4
- data/stdlib/etc/0/etc.rbs +0 -4
- data/stdlib/json/0/json.rbs +22 -0
- data/stdlib/logger/0/formatter.rbs +0 -2
- data/stdlib/logger/0/log_device.rbs +0 -2
- data/stdlib/logger/0/logger.rbs +0 -2
- data/stdlib/monitor/0/monitor.rbs +0 -6
- data/stdlib/mutex_m/0/mutex_m.rbs +0 -2
- data/stdlib/net-http/0/net-http.rbs +0 -8
- data/stdlib/observable/0/observable.rbs +0 -2
- data/stdlib/open-uri/0/open-uri.rbs +1 -1
- data/stdlib/open3/0/open3.rbs +155 -0
- data/stdlib/openssl/0/openssl.rbs +0 -112
- data/stdlib/optparse/0/optparse.rbs +0 -22
- data/stdlib/pathname/0/pathname.rbs +0 -2
- data/stdlib/pstore/0/pstore.rbs +0 -2
- data/stdlib/resolv/0/resolv.rbs +0 -74
- data/stdlib/singleton/0/singleton.rbs +0 -2
- data/stdlib/socket/0/addrinfo.rbs +0 -2
- data/stdlib/socket/0/basic_socket.rbs +0 -2
- data/stdlib/socket/0/ip_socket.rbs +0 -2
- data/stdlib/socket/0/socket.rbs +0 -8
- data/stdlib/socket/0/tcp_server.rbs +0 -2
- data/stdlib/socket/0/udp_socket.rbs +0 -2
- data/stdlib/socket/0/unix_server.rbs +0 -2
- data/stdlib/socket/0/unix_socket.rbs +0 -2
- data/stdlib/strscan/0/string_scanner.rbs +0 -2
- data/stdlib/tempfile/0/tempfile.rbs +0 -4
- data/stdlib/zlib/0/deflate.rbs +0 -2
- data/stdlib/zlib/0/gzip_file/error.rbs +0 -2
- data/stdlib/zlib/0/gzip_file.rbs +0 -2
- data/stdlib/zlib/0/gzip_reader.rbs +0 -2
- data/stdlib/zlib/0/gzip_writer.rbs +0 -2
- data/stdlib/zlib/0/inflate.rbs +0 -2
- data/stdlib/zlib/0/zstream.rbs +0 -2
- metadata +4 -3
@@ -21,7 +21,7 @@ module URI
|
|
21
21
|
# We can accept URIs and strings that begin with http://, https:// and ftp://.
|
22
22
|
# In these cases, the opened file object is extended by OpenURI::Meta.
|
23
23
|
#
|
24
|
-
def self.open: (String name, ?String mode, ?Integer perm, ?untyped options) -> (StringIO & OpenURI::Meta | Tempfile & OpenURI::Meta)
|
24
|
+
def self.open: (String name, ?String mode, ?Integer perm, ?untyped options) -> ((StringIO & OpenURI::Meta) | (Tempfile & OpenURI::Meta))
|
25
25
|
| [T] (String name, ?String mode, ?Integer perm, ?untyped options) { (StringIO | Tempfile) -> T } -> T
|
26
26
|
end
|
27
27
|
|
@@ -0,0 +1,155 @@
|
|
1
|
+
# <!-- rdoc-file=lib/open3.rb -->
|
2
|
+
# Module Open3 supports creating child processes with access to their $stdin,
|
3
|
+
# $stdout, and $stderr streams.
|
4
|
+
#
|
5
|
+
# ## What's Here
|
6
|
+
#
|
7
|
+
# Each of these methods executes a given command in a new process or subshell,
|
8
|
+
# or multiple commands in new processes and/or subshells:
|
9
|
+
#
|
10
|
+
# * Each of these methods executes a single command in a process or subshell,
|
11
|
+
# accepts a string for input to $stdin, and returns string output from
|
12
|
+
# $stdout, $stderr, or both:
|
13
|
+
#
|
14
|
+
# * Open3.capture2: Executes the command; returns the string from $stdout.
|
15
|
+
# * Open3.capture2e: Executes the command; returns the string from merged
|
16
|
+
# $stdout and $stderr.
|
17
|
+
# * Open3.capture3: Executes the command; returns strings from $stdout and
|
18
|
+
# $stderr.
|
19
|
+
#
|
20
|
+
#
|
21
|
+
# * Each of these methods executes a single command in a process or subshell,
|
22
|
+
# and returns pipes for $stdin, $stdout, and/or $stderr:
|
23
|
+
#
|
24
|
+
# * Open3.popen2: Executes the command; returns pipes for $stdin and
|
25
|
+
# $stdout.
|
26
|
+
# * Open3.popen2e: Executes the command; returns pipes for $stdin and
|
27
|
+
# merged $stdout and $stderr.
|
28
|
+
# * Open3.popen3: Executes the command; returns pipes for $stdin, $stdout,
|
29
|
+
# and $stderr.
|
30
|
+
#
|
31
|
+
#
|
32
|
+
# * Each of these methods executes one or more commands in processes and/or
|
33
|
+
# subshells, returns pipes for the first $stdin, the last $stdout, or both:
|
34
|
+
#
|
35
|
+
# * Open3.pipeline_r: Returns a pipe for the last $stdout.
|
36
|
+
# * Open3.pipeline_rw: Returns pipes for the first $stdin and the last
|
37
|
+
# $stdout.
|
38
|
+
# * Open3.pipeline_w: Returns a pipe for the first $stdin.
|
39
|
+
# * Open3.pipeline_start: Does not wait for processes to complete.
|
40
|
+
# * Open3.pipeline: Waits for processes to complete.
|
41
|
+
#
|
42
|
+
#
|
43
|
+
#
|
44
|
+
# Each of the methods above accepts:
|
45
|
+
#
|
46
|
+
# * An optional hash of environment variable names and values; see [Execution
|
47
|
+
# Environment](rdoc-ref:Process@Execution+Environment).
|
48
|
+
# * A required string argument that is a `command_line` or `exe_path`; see
|
49
|
+
# [Argument command_line or
|
50
|
+
# exe_path](rdoc-ref:Process@Argument+command_line+or+exe_path).
|
51
|
+
# * An optional hash of execution options; see [Execution
|
52
|
+
# Options](rdoc-ref:Process@Execution+Options).
|
53
|
+
#
|
54
|
+
module Open3
|
55
|
+
# <!--
|
56
|
+
# rdoc-file=lib/open3.rb
|
57
|
+
# - Open3.capture2e([env, ] command_line, options = {}) -> [stdout_and_stderr_s, status]
|
58
|
+
# - Open3.capture2e([env, ] exe_path, *args, options = {}) -> [stdout_and_stderr_s, status]
|
59
|
+
# -->
|
60
|
+
# Basically a wrapper for Open3.popen3 that:
|
61
|
+
#
|
62
|
+
# * Creates a child process, by calling Open3.popen3 with the given arguments
|
63
|
+
# (except for certain entries in hash `options`; see below).
|
64
|
+
# * Returns as string `stdout_and_stderr_s` the merged standard output and
|
65
|
+
# standard error of the child process.
|
66
|
+
# * Returns as `status` a `Process::Status` object that represents the exit
|
67
|
+
# status of the child process.
|
68
|
+
#
|
69
|
+
#
|
70
|
+
# Returns the array `[stdout_and_stderr_s, status]`:
|
71
|
+
#
|
72
|
+
# stdout_and_stderr_s, status = Open3.capture2e('echo "Foo"')
|
73
|
+
# # => ["Foo\n", #<Process::Status: pid 2371692 exit 0>]
|
74
|
+
#
|
75
|
+
# Like Process.spawn, this method has potential security vulnerabilities if
|
76
|
+
# called with untrusted input; see [Command
|
77
|
+
# Injection](rdoc-ref:command_injection.rdoc@Command+Injection).
|
78
|
+
#
|
79
|
+
# Unlike Process.spawn, this method waits for the child process to exit before
|
80
|
+
# returning, so the caller need not do so.
|
81
|
+
#
|
82
|
+
# If the first argument is a hash, it becomes leading argument `env` in the call
|
83
|
+
# to Open3.popen3; see [Execution
|
84
|
+
# Environment](rdoc-ref:Process@Execution+Environment).
|
85
|
+
#
|
86
|
+
# If the last argument is a hash, it becomes trailing argument `options` in the
|
87
|
+
# call to Open3.popen3; see [Execution
|
88
|
+
# Options](rdoc-ref:Process@Execution+Options).
|
89
|
+
#
|
90
|
+
# The hash `options` is given; two options have local effect in method
|
91
|
+
# Open3.capture2e:
|
92
|
+
#
|
93
|
+
# * If entry `options[:stdin_data]` exists, the entry is removed and its
|
94
|
+
# string value is sent to the command's standard input:
|
95
|
+
#
|
96
|
+
# Open3.capture2e('tee', stdin_data: 'Foo')
|
97
|
+
# # => ["Foo", #<Process::Status: pid 2371732 exit 0>]
|
98
|
+
#
|
99
|
+
# * If entry `options[:binmode]` exists, the entry is removed and the internal
|
100
|
+
# streams are set to binary mode.
|
101
|
+
#
|
102
|
+
#
|
103
|
+
# The single required argument is one of the following:
|
104
|
+
#
|
105
|
+
# * `command_line` if it is a string, and if it begins with a shell reserved
|
106
|
+
# word or special built-in, or if it contains one or more metacharacters.
|
107
|
+
# * `exe_path` otherwise.
|
108
|
+
#
|
109
|
+
#
|
110
|
+
# **Argument `command_line`**
|
111
|
+
#
|
112
|
+
# String argument `command_line` is a command line to be passed to a shell; it
|
113
|
+
# must begin with a shell reserved word, begin with a special built-in, or
|
114
|
+
# contain meta characters:
|
115
|
+
#
|
116
|
+
# Open3.capture2e('if true; then echo "Foo"; fi') # Shell reserved word.
|
117
|
+
# # => ["Foo\n", #<Process::Status: pid 2371740 exit 0>]
|
118
|
+
# Open3.capture2e('echo') # Built-in.
|
119
|
+
# # => ["\n", #<Process::Status: pid 2371774 exit 0>]
|
120
|
+
# Open3.capture2e('date > date.tmp') # Contains meta character.
|
121
|
+
# # => ["", #<Process::Status: pid 2371812 exit 0>]
|
122
|
+
#
|
123
|
+
# The command line may also contain arguments and options for the command:
|
124
|
+
#
|
125
|
+
# Open3.capture2e('echo "Foo"')
|
126
|
+
# # => ["Foo\n", #<Process::Status: pid 2326183 exit 0>]
|
127
|
+
#
|
128
|
+
# **Argument `exe_path`**
|
129
|
+
#
|
130
|
+
# Argument `exe_path` is one of the following:
|
131
|
+
#
|
132
|
+
# * The string path to an executable to be called.
|
133
|
+
# * A 2-element array containing the path to an executable and the string to
|
134
|
+
# be used as the name of the executing process.
|
135
|
+
#
|
136
|
+
#
|
137
|
+
# Example:
|
138
|
+
#
|
139
|
+
# Open3.capture2e('/usr/bin/date')
|
140
|
+
# # => ["Sat Sep 30 09:01:46 AM CDT 2023\n", #<Process::Status: pid 2371820 exit 0>]
|
141
|
+
#
|
142
|
+
# Ruby invokes the executable directly, with no shell and no shell expansion:
|
143
|
+
#
|
144
|
+
# Open3.capture2e('doesnt_exist') # Raises Errno::ENOENT
|
145
|
+
#
|
146
|
+
# If one or more `args` is given, each is an argument or option to be passed to
|
147
|
+
# the executable:
|
148
|
+
#
|
149
|
+
# Open3.capture2e('echo', 'C #')
|
150
|
+
# # => ["C #\n", #<Process::Status: pid 2371856 exit 0>]
|
151
|
+
# Open3.capture2e('echo', 'hello', 'world')
|
152
|
+
# # => ["hello world\n", #<Process::Status: pid 2371894 exit 0>]
|
153
|
+
#
|
154
|
+
def self.capture2e: (*String, ?stdin_data: String, ?binmode: boolish) -> [String, Process::Status]
|
155
|
+
end
|
@@ -934,8 +934,6 @@ module OpenSSL
|
|
934
934
|
# puts int2.value # => 1
|
935
935
|
#
|
936
936
|
class ASN1Data
|
937
|
-
public
|
938
|
-
|
939
937
|
# <!-- rdoc-file=ext/openssl/ossl_asn1.c -->
|
940
938
|
# Never `nil`. A boolean value indicating whether the encoding uses indefinite
|
941
939
|
# length (in the case of parsing) or whether an indefinite length form shall be
|
@@ -1082,8 +1080,6 @@ module OpenSSL
|
|
1082
1080
|
end
|
1083
1081
|
|
1084
1082
|
class BitString < OpenSSL::ASN1::Primitive
|
1085
|
-
public
|
1086
|
-
|
1087
1083
|
def unused_bits: () -> ::Integer
|
1088
1084
|
|
1089
1085
|
def unused_bits=: (::Integer) -> ::Integer
|
@@ -1127,8 +1123,6 @@ module OpenSSL
|
|
1127
1123
|
class Constructive < OpenSSL::ASN1::ASN1Data
|
1128
1124
|
include Enumerable[ASN1Data]
|
1129
1125
|
|
1130
|
-
public
|
1131
|
-
|
1132
1126
|
# <!--
|
1133
1127
|
# rdoc-file=ext/openssl/ossl_asn1.c
|
1134
1128
|
# - asn1_ary.each { |asn1| block } => asn1_ary
|
@@ -1192,8 +1186,6 @@ module OpenSSL
|
|
1192
1186
|
end
|
1193
1187
|
|
1194
1188
|
class EndOfContent < OpenSSL::ASN1::ASN1Data
|
1195
|
-
public
|
1196
|
-
|
1197
1189
|
def to_der: () -> String
|
1198
1190
|
|
1199
1191
|
private
|
@@ -1275,8 +1267,6 @@ module OpenSSL
|
|
1275
1267
|
|
1276
1268
|
def value=: (String) -> String
|
1277
1269
|
|
1278
|
-
public
|
1279
|
-
|
1280
1270
|
# <!--
|
1281
1271
|
# rdoc-file=ext/openssl/ossl_asn1.c
|
1282
1272
|
# - oid == other_oid => true or false
|
@@ -1393,8 +1383,6 @@ module OpenSSL
|
|
1393
1383
|
# prim_zero_tagged_explicit = <class>.new(value, 0, :EXPLICIT)
|
1394
1384
|
#
|
1395
1385
|
class Primitive < OpenSSL::ASN1::ASN1Data
|
1396
|
-
public
|
1397
|
-
|
1398
1386
|
# <!-- rdoc-file=ext/openssl/ossl_asn1.c -->
|
1399
1387
|
# May be used as a hint for encoding a value either implicitly or explicitly by
|
1400
1388
|
# setting it either to `:IMPLICIT` or to `:EXPLICIT`. *tagging* is not set when
|
@@ -1535,8 +1523,6 @@ module OpenSSL
|
|
1535
1523
|
#
|
1536
1524
|
def self.rand_range: (untyped) -> untyped
|
1537
1525
|
|
1538
|
-
public
|
1539
|
-
|
1540
1526
|
# <!--
|
1541
1527
|
# rdoc-file=ext/openssl/ossl_bn.c
|
1542
1528
|
# - bn % bn2 => aBN
|
@@ -1950,8 +1936,6 @@ module OpenSSL
|
|
1950
1936
|
module Buffering
|
1951
1937
|
include Enumerable[untyped]
|
1952
1938
|
|
1953
|
-
public
|
1954
|
-
|
1955
1939
|
# <!--
|
1956
1940
|
# rdoc-file=ext/openssl/lib/openssl/buffering.rb
|
1957
1941
|
# - <<(s)
|
@@ -2490,8 +2474,6 @@ module OpenSSL
|
|
2490
2474
|
#
|
2491
2475
|
def self.ciphers: () -> Array[String]
|
2492
2476
|
|
2493
|
-
public
|
2494
|
-
|
2495
2477
|
# <!--
|
2496
2478
|
# rdoc-file=ext/openssl/ossl_cipher.c
|
2497
2479
|
# - cipher.auth_data = string -> string
|
@@ -2908,8 +2890,6 @@ module OpenSSL
|
|
2908
2890
|
#
|
2909
2891
|
def self.parse_config: (IO io) -> Hash[String, Hash[String, String]]
|
2910
2892
|
|
2911
|
-
public
|
2912
|
-
|
2913
2893
|
# <!--
|
2914
2894
|
# rdoc-file=ext/openssl/ossl_config.c
|
2915
2895
|
# - config[section] -> hash
|
@@ -3198,8 +3178,6 @@ module OpenSSL
|
|
3198
3178
|
#
|
3199
3179
|
def self.digest: (String name, String data) -> String
|
3200
3180
|
|
3201
|
-
public
|
3202
|
-
|
3203
3181
|
# <!-- rdoc-file=ext/openssl/ossl_digest.c -->
|
3204
3182
|
# Not every message digest can be computed in one single pass. If a message
|
3205
3183
|
# digest is to be computed from several subsequent sources, then each may be
|
@@ -3456,8 +3434,6 @@ module OpenSSL
|
|
3456
3434
|
#
|
3457
3435
|
def self.load: (?String name) -> (true | nil)
|
3458
3436
|
|
3459
|
-
public
|
3460
|
-
|
3461
3437
|
# <!--
|
3462
3438
|
# rdoc-file=ext/openssl/ossl_engine.c
|
3463
3439
|
# - engine.cipher(name) -> OpenSSL::Cipher
|
@@ -3689,8 +3665,6 @@ module OpenSSL
|
|
3689
3665
|
#
|
3690
3666
|
def self.hexdigest: (String | Digest algo, String key, String data) -> String
|
3691
3667
|
|
3692
|
-
public
|
3693
|
-
|
3694
3668
|
# <!-- rdoc-file=ext/openssl/ossl_hmac.c -->
|
3695
3669
|
# Returns *hmac* updated with the message to be authenticated. Can be called
|
3696
3670
|
# repeatedly with chunks of the message.
|
@@ -4046,8 +4020,6 @@ module OpenSSL
|
|
4046
4020
|
#
|
4047
4021
|
def self.included: (untyped base) -> untyped
|
4048
4022
|
|
4049
|
-
public
|
4050
|
-
|
4051
4023
|
# <!--
|
4052
4024
|
# rdoc-file=ext/openssl/lib/openssl/marshal.rb
|
4053
4025
|
# - _dump(_level)
|
@@ -4056,8 +4028,6 @@ module OpenSSL
|
|
4056
4028
|
def _dump: (untyped _level) -> untyped
|
4057
4029
|
|
4058
4030
|
module ClassMethods
|
4059
|
-
public
|
4060
|
-
|
4061
4031
|
# <!--
|
4062
4032
|
# rdoc-file=ext/openssl/lib/openssl/marshal.rb
|
4063
4033
|
# - _load(string)
|
@@ -4112,8 +4082,6 @@ module OpenSSL
|
|
4112
4082
|
# #proceed
|
4113
4083
|
#
|
4114
4084
|
class SPKI
|
4115
|
-
public
|
4116
|
-
|
4117
4085
|
# <!--
|
4118
4086
|
# rdoc-file=ext/openssl/ossl_ns_spki.c
|
4119
4087
|
# - spki.challenge => string
|
@@ -4505,8 +4473,6 @@ module OpenSSL
|
|
4505
4473
|
# detailed than a Response.
|
4506
4474
|
#
|
4507
4475
|
class BasicResponse
|
4508
|
-
public
|
4509
|
-
|
4510
4476
|
# <!--
|
4511
4477
|
# rdoc-file=ext/openssl/ossl_ocsp.c
|
4512
4478
|
# - basic_response.add_nonce(nonce = nil)
|
@@ -4644,8 +4610,6 @@ module OpenSSL
|
|
4644
4610
|
# status check can be performed.
|
4645
4611
|
#
|
4646
4612
|
class CertificateId
|
4647
|
-
public
|
4648
|
-
|
4649
4613
|
# <!--
|
4650
4614
|
# rdoc-file=ext/openssl/ossl_ocsp.c
|
4651
4615
|
# - certificate_id.cmp(other) -> true or false
|
@@ -4747,8 +4711,6 @@ module OpenSSL
|
|
4747
4711
|
# certificate or from a DER-encoded request created elsewhere.
|
4748
4712
|
#
|
4749
4713
|
class Request
|
4750
|
-
public
|
4751
|
-
|
4752
4714
|
# <!--
|
4753
4715
|
# rdoc-file=ext/openssl/ossl_ocsp.c
|
4754
4716
|
# - request.add_certid(certificate_id) -> request
|
@@ -4884,8 +4846,6 @@ module OpenSSL
|
|
4884
4846
|
#
|
4885
4847
|
def self.create: (Integer status, ?BasicResponse response) -> instance
|
4886
4848
|
|
4887
|
-
public
|
4888
|
-
|
4889
4849
|
# <!--
|
4890
4850
|
# rdoc-file=ext/openssl/ossl_ocsp.c
|
4891
4851
|
# - response.basic
|
@@ -4943,8 +4903,6 @@ module OpenSSL
|
|
4943
4903
|
# which contains the basic information of the status of the certificate.
|
4944
4904
|
#
|
4945
4905
|
class SingleResponse
|
4946
|
-
public
|
4947
|
-
|
4948
4906
|
# <!--
|
4949
4907
|
# rdoc-file=ext/openssl/ossl_ocsp.c
|
4950
4908
|
# - single_response.cert_status -> Integer
|
@@ -5089,8 +5047,6 @@ module OpenSSL
|
|
5089
5047
|
#
|
5090
5048
|
def self.create: (String pass, String name, PKey::PKey key, X509::Certificate cert, ?Array[X509::Certificate]? ca, ?String? key_pbe, ?String? cert_pbe, ?Integer? key_iter, ?Integer? mac_iter, ?Integer? keytype) -> instance
|
5091
5049
|
|
5092
|
-
public
|
5093
|
-
|
5094
5050
|
def ca_certs: () -> Array[X509::Certificate]?
|
5095
5051
|
|
5096
5052
|
def certificate: () -> X509::Certificate
|
@@ -5182,8 +5138,6 @@ module OpenSSL
|
|
5182
5138
|
#
|
5183
5139
|
def self.write_smime: (instance pkcs7, ?String data, ?Integer flags) -> String
|
5184
5140
|
|
5185
|
-
public
|
5186
|
-
|
5187
5141
|
# <!--
|
5188
5142
|
# rdoc-file=ext/openssl/ossl_pkcs7.c
|
5189
5143
|
# - add_certificate(p1)
|
@@ -5393,8 +5347,6 @@ module OpenSSL
|
|
5393
5347
|
end
|
5394
5348
|
|
5395
5349
|
class RecipientInfo
|
5396
|
-
public
|
5397
|
-
|
5398
5350
|
# <!--
|
5399
5351
|
# rdoc-file=ext/openssl/ossl_pkcs7.c
|
5400
5352
|
# - enc_key()
|
@@ -5427,8 +5379,6 @@ module OpenSSL
|
|
5427
5379
|
end
|
5428
5380
|
|
5429
5381
|
class SignerInfo
|
5430
|
-
public
|
5431
|
-
|
5432
5382
|
# <!--
|
5433
5383
|
# rdoc-file=ext/openssl/ossl_pkcs7.c
|
5434
5384
|
# - issuer()
|
@@ -5580,8 +5530,6 @@ module OpenSSL
|
|
5580
5530
|
#
|
5581
5531
|
def self.generate: (Integer size, ?Integer generator) -> instance
|
5582
5532
|
|
5583
|
-
public
|
5584
|
-
|
5585
5533
|
# <!--
|
5586
5534
|
# rdoc-file=ext/openssl/lib/openssl/pkey.rb
|
5587
5535
|
# - dh.compute_key(pub_bn) -> string
|
@@ -5882,8 +5830,6 @@ module OpenSSL
|
|
5882
5830
|
#
|
5883
5831
|
def self.generate: (Integer size) -> instance
|
5884
5832
|
|
5885
|
-
public
|
5886
|
-
|
5887
5833
|
# <!--
|
5888
5834
|
# rdoc-file=ext/openssl/ossl_pkey_dsa.c
|
5889
5835
|
# - dsa.export([cipher, password]) -> aString
|
@@ -6279,8 +6225,6 @@ module OpenSSL
|
|
6279
6225
|
#
|
6280
6226
|
def self.generate: (String | Group pem_or_der_or_group_or_curve_name) -> instance
|
6281
6227
|
|
6282
|
-
public
|
6283
|
-
|
6284
6228
|
# <!--
|
6285
6229
|
# rdoc-file=ext/openssl/ossl_pkey_ec.c
|
6286
6230
|
# - key.check_key => true
|
@@ -6596,8 +6540,6 @@ module OpenSSL
|
|
6596
6540
|
type point_conversion_format = :compressed | :uncompressed | :hybrid
|
6597
6541
|
|
6598
6542
|
class Group
|
6599
|
-
public
|
6600
|
-
|
6601
6543
|
# <!-- rdoc-file=ext/openssl/ossl_pkey_ec.c -->
|
6602
6544
|
# Returns `true` if the two groups use the same curve and have the same
|
6603
6545
|
# parameters, `false` otherwise.
|
@@ -6803,8 +6745,6 @@ module OpenSSL
|
|
6803
6745
|
end
|
6804
6746
|
|
6805
6747
|
class Point
|
6806
|
-
public
|
6807
|
-
|
6808
6748
|
# <!--
|
6809
6749
|
# rdoc-file=ext/openssl/ossl_pkey_ec.c
|
6810
6750
|
# - ==(p1)
|
@@ -6953,8 +6893,6 @@ module OpenSSL
|
|
6953
6893
|
# * OpenSSL::PKey::EC
|
6954
6894
|
#
|
6955
6895
|
class PKey
|
6956
|
-
public
|
6957
|
-
|
6958
6896
|
# <!--
|
6959
6897
|
# rdoc-file=ext/openssl/ossl_pkey.c
|
6960
6898
|
# - pkey.inspect -> string
|
@@ -7136,8 +7074,6 @@ module OpenSSL
|
|
7136
7074
|
#
|
7137
7075
|
def self.generate: (Integer size, ?Integer exponent) -> instance
|
7138
7076
|
|
7139
|
-
public
|
7140
|
-
|
7141
7077
|
def d: () -> BN?
|
7142
7078
|
|
7143
7079
|
def dmp1: () -> BN?
|
@@ -7856,8 +7792,6 @@ module OpenSSL
|
|
7856
7792
|
# be frozen afterward.
|
7857
7793
|
#
|
7858
7794
|
class SSLContext
|
7859
|
-
public
|
7860
|
-
|
7861
7795
|
# <!--
|
7862
7796
|
# rdoc-file=ext/openssl/ossl_ssl.c
|
7863
7797
|
# - ctx.add_certificate(certificate, pkey [, extra_certs]) -> self
|
@@ -8767,8 +8701,6 @@ module OpenSSL
|
|
8767
8701
|
class SSLServer
|
8768
8702
|
include OpenSSL::SSL::SocketForwarder
|
8769
8703
|
|
8770
|
-
public
|
8771
|
-
|
8772
8704
|
# <!--
|
8773
8705
|
# rdoc-file=ext/openssl/lib/openssl/ssl.rb
|
8774
8706
|
# - accept()
|
@@ -8859,8 +8791,6 @@ module OpenSSL
|
|
8859
8791
|
#
|
8860
8792
|
def self.open: (untyped remote_host, untyped remote_port, ?untyped local_host, ?untyped local_port, ?context: untyped) -> untyped
|
8861
8793
|
|
8862
|
-
public
|
8863
|
-
|
8864
8794
|
# <!--
|
8865
8795
|
# rdoc-file=ext/openssl/ossl_ssl.c
|
8866
8796
|
# - ssl.accept => self
|
@@ -9250,8 +9180,6 @@ module OpenSSL
|
|
9250
9180
|
end
|
9251
9181
|
|
9252
9182
|
class Session
|
9253
|
-
public
|
9254
|
-
|
9255
9183
|
# <!--
|
9256
9184
|
# rdoc-file=ext/openssl/ossl_ssl_session.c
|
9257
9185
|
# - session1 == session2 -> boolean
|
@@ -9350,8 +9278,6 @@ module OpenSSL
|
|
9350
9278
|
end
|
9351
9279
|
|
9352
9280
|
module SocketForwarder
|
9353
|
-
public
|
9354
|
-
|
9355
9281
|
# <!--
|
9356
9282
|
# rdoc-file=ext/openssl/lib/openssl/ssl.rb
|
9357
9283
|
# - addr()
|
@@ -9549,8 +9475,6 @@ module OpenSSL
|
|
9549
9475
|
# factory.allowed_digests -> array or nil
|
9550
9476
|
#
|
9551
9477
|
class Factory
|
9552
|
-
public
|
9553
|
-
|
9554
9478
|
def additional_certs: () -> Array[X509::Certificate]?
|
9555
9479
|
|
9556
9480
|
def additional_certs=: (Array[X509::Certificate]? certs) -> Array[X509::Certificate]?
|
@@ -9609,8 +9533,6 @@ module OpenSSL
|
|
9609
9533
|
# * algorithm, message_imprint, policy_id, and nonce are set to `false`
|
9610
9534
|
#
|
9611
9535
|
class Request
|
9612
|
-
public
|
9613
|
-
|
9614
9536
|
# <!--
|
9615
9537
|
# rdoc-file=ext/openssl/ossl_ts.c
|
9616
9538
|
# - request.algorithm -> string
|
@@ -9753,8 +9675,6 @@ module OpenSSL
|
|
9753
9675
|
# Response.
|
9754
9676
|
#
|
9755
9677
|
class Response
|
9756
|
-
public
|
9757
|
-
|
9758
9678
|
# <!--
|
9759
9679
|
# rdoc-file=ext/openssl/ossl_ts.c
|
9760
9680
|
# - response.failure_info -> nil or symbol
|
@@ -9917,8 +9837,6 @@ module OpenSSL
|
|
9917
9837
|
# Response.
|
9918
9838
|
#
|
9919
9839
|
class TokenInfo
|
9920
|
-
public
|
9921
|
-
|
9922
9840
|
# <!--
|
9923
9841
|
# rdoc-file=ext/openssl/ossl_ts.c
|
9924
9842
|
# - token_info.algorithm -> string or nil
|
@@ -10287,8 +10205,6 @@ module OpenSSL
|
|
10287
10205
|
|
10288
10206
|
extend OpenSSL::Marshal::ClassMethods
|
10289
10207
|
|
10290
|
-
public
|
10291
|
-
|
10292
10208
|
# <!--
|
10293
10209
|
# rdoc-file=ext/openssl/lib/openssl/x509.rb
|
10294
10210
|
# - ==(other)
|
@@ -10359,8 +10275,6 @@ module OpenSSL
|
|
10359
10275
|
|
10360
10276
|
extend OpenSSL::Marshal::ClassMethods
|
10361
10277
|
|
10362
|
-
public
|
10363
|
-
|
10364
10278
|
# <!--
|
10365
10279
|
# rdoc-file=ext/openssl/lib/openssl/x509.rb
|
10366
10280
|
# - ==(other)
|
@@ -10637,8 +10551,6 @@ module OpenSSL
|
|
10637
10551
|
|
10638
10552
|
extend OpenSSL::Marshal::ClassMethods
|
10639
10553
|
|
10640
|
-
public
|
10641
|
-
|
10642
10554
|
# <!--
|
10643
10555
|
# rdoc-file=ext/openssl/ossl_x509cert.c
|
10644
10556
|
# - cert1 == cert2 -> true | false
|
@@ -10867,8 +10779,6 @@ module OpenSSL
|
|
10867
10779
|
|
10868
10780
|
extend OpenSSL::Marshal::ClassMethods
|
10869
10781
|
|
10870
|
-
public
|
10871
|
-
|
10872
10782
|
# <!--
|
10873
10783
|
# rdoc-file=ext/openssl/lib/openssl/x509.rb
|
10874
10784
|
# - ==(other)
|
@@ -10980,8 +10890,6 @@ module OpenSSL
|
|
10980
10890
|
module AuthorityInfoAccess
|
10981
10891
|
include OpenSSL::X509::Extension::Helpers
|
10982
10892
|
|
10983
|
-
public
|
10984
|
-
|
10985
10893
|
# <!--
|
10986
10894
|
# rdoc-file=ext/openssl/lib/openssl/x509.rb
|
10987
10895
|
# - ca_issuer_uris()
|
@@ -11018,8 +10926,6 @@ module OpenSSL
|
|
11018
10926
|
module AuthorityKeyIdentifier
|
11019
10927
|
include OpenSSL::X509::Extension::Helpers
|
11020
10928
|
|
11021
|
-
public
|
11022
|
-
|
11023
10929
|
# <!--
|
11024
10930
|
# rdoc-file=ext/openssl/lib/openssl/x509.rb
|
11025
10931
|
# - authority_key_identifier()
|
@@ -11035,8 +10941,6 @@ module OpenSSL
|
|
11035
10941
|
module CRLDistributionPoints
|
11036
10942
|
include OpenSSL::X509::Extension::Helpers
|
11037
10943
|
|
11038
|
-
public
|
11039
|
-
|
11040
10944
|
# <!--
|
11041
10945
|
# rdoc-file=ext/openssl/lib/openssl/x509.rb
|
11042
10946
|
# - crl_uris()
|
@@ -11050,8 +10954,6 @@ module OpenSSL
|
|
11050
10954
|
end
|
11051
10955
|
|
11052
10956
|
module Helpers
|
11053
|
-
public
|
11054
|
-
|
11055
10957
|
# <!--
|
11056
10958
|
# rdoc-file=ext/openssl/lib/openssl/x509.rb
|
11057
10959
|
# - find_extension(oid)
|
@@ -11063,8 +10965,6 @@ module OpenSSL
|
|
11063
10965
|
module SubjectKeyIdentifier
|
11064
10966
|
include OpenSSL::X509::Extension::Helpers
|
11065
10967
|
|
11066
|
-
public
|
11067
|
-
|
11068
10968
|
# <!--
|
11069
10969
|
# rdoc-file=ext/openssl/lib/openssl/x509.rb
|
11070
10970
|
# - subject_key_identifier()
|
@@ -11082,8 +10982,6 @@ module OpenSSL
|
|
11082
10982
|
end
|
11083
10983
|
|
11084
10984
|
class ExtensionFactory
|
11085
|
-
public
|
11086
|
-
|
11087
10985
|
def config: () -> Config?
|
11088
10986
|
|
11089
10987
|
def config=: (Config config) -> Config
|
@@ -11233,8 +11131,6 @@ module OpenSSL
|
|
11233
11131
|
#
|
11234
11132
|
def self.parse_rfc2253: (String str, ?template template) -> instance
|
11235
11133
|
|
11236
|
-
public
|
11237
|
-
|
11238
11134
|
# <!-- rdoc-file=ext/openssl/ossl_x509name.c -->
|
11239
11135
|
# Compares this Name with *other* and returns `0` if they are the same and `-1`
|
11240
11136
|
# or `+1` if they are greater or less than each other respectively. Returns
|
@@ -11506,8 +11402,6 @@ module OpenSSL
|
|
11506
11402
|
|
11507
11403
|
extend OpenSSL::Marshal::ClassMethods
|
11508
11404
|
|
11509
|
-
public
|
11510
|
-
|
11511
11405
|
# <!--
|
11512
11406
|
# rdoc-file=ext/openssl/lib/openssl/x509.rb
|
11513
11407
|
# - ==(other)
|
@@ -11649,8 +11543,6 @@ module OpenSSL
|
|
11649
11543
|
end
|
11650
11544
|
|
11651
11545
|
class Revoked
|
11652
|
-
public
|
11653
|
-
|
11654
11546
|
# <!--
|
11655
11547
|
# rdoc-file=ext/openssl/lib/openssl/x509.rb
|
11656
11548
|
# - ==(other)
|
@@ -11770,8 +11662,6 @@ module OpenSSL
|
|
11770
11662
|
# ssl_socket = OpenSSL::SSL::SSLSocket.new tcp_socket, ssl_context
|
11771
11663
|
#
|
11772
11664
|
class Store
|
11773
|
-
public
|
11774
|
-
|
11775
11665
|
# <!--
|
11776
11666
|
# rdoc-file=ext/openssl/ossl_x509store.c
|
11777
11667
|
# - store.add_cert(cert) -> self
|
@@ -11980,8 +11870,6 @@ module OpenSSL
|
|
11980
11870
|
# status involved.
|
11981
11871
|
#
|
11982
11872
|
class StoreContext
|
11983
|
-
public
|
11984
|
-
|
11985
11873
|
# <!--
|
11986
11874
|
# rdoc-file=ext/openssl/ossl_x509store.c
|
11987
11875
|
# - stctx.chain -> nil | Array of X509::Certificate
|