Skip to content

Commit b4877f8

Browse files
authoredMar 12, 2025··
Merge pull request #869 from midnight-wonderer/docs/initialize_copy
Improve document of `initialize_copy`
2 parents 97911e6 + 17f87d2 commit b4877f8

20 files changed

+26
-0
lines changed
 

‎ext/openssl/ossl_bn.c

+1
Original file line numberDiff line numberDiff line change
@@ -929,6 +929,7 @@ BIGNUM_NUM(num_bytes)
929929
*/
930930
BIGNUM_NUM(num_bits)
931931

932+
/* :nodoc: */
932933
static VALUE
933934
ossl_bn_copy(VALUE self, VALUE other)
934935
{

‎ext/openssl/ossl_cipher.c

+1
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ ossl_cipher_initialize(VALUE self, VALUE str)
130130
return self;
131131
}
132132

133+
/* :nodoc: */
133134
static VALUE
134135
ossl_cipher_copy(VALUE self, VALUE other)
135136
{

‎ext/openssl/ossl_digest.c

+1
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ ossl_digest_initialize(int argc, VALUE *argv, VALUE self)
141141
return self;
142142
}
143143

144+
/* :nodoc: */
144145
static VALUE
145146
ossl_digest_copy(VALUE self, VALUE other)
146147
{

‎ext/openssl/ossl_hmac.c

+1
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ ossl_hmac_initialize(VALUE self, VALUE key, VALUE digest)
113113
return self;
114114
}
115115

116+
/* :nodoc: */
116117
static VALUE
117118
ossl_hmac_copy(VALUE self, VALUE other)
118119
{

‎ext/openssl/ossl_ocsp.c

+5
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ ossl_ocspreq_alloc(VALUE klass)
173173
return obj;
174174
}
175175

176+
/* :nodoc: */
176177
static VALUE
177178
ossl_ocspreq_initialize_copy(VALUE self, VALUE other)
178179
{
@@ -513,6 +514,7 @@ ossl_ocspres_alloc(VALUE klass)
513514
return obj;
514515
}
515516

517+
/* :nodoc: */
516518
static VALUE
517519
ossl_ocspres_initialize_copy(VALUE self, VALUE other)
518520
{
@@ -669,6 +671,7 @@ ossl_ocspbres_alloc(VALUE klass)
669671
return obj;
670672
}
671673

674+
/* :nodoc: */
672675
static VALUE
673676
ossl_ocspbres_initialize_copy(VALUE self, VALUE other)
674677
{
@@ -1157,6 +1160,7 @@ ossl_ocspsres_initialize(VALUE self, VALUE arg)
11571160
return self;
11581161
}
11591162

1163+
/* :nodoc: */
11601164
static VALUE
11611165
ossl_ocspsres_initialize_copy(VALUE self, VALUE other)
11621166
{
@@ -1418,6 +1422,7 @@ ossl_ocspcid_alloc(VALUE klass)
14181422
return obj;
14191423
}
14201424

1425+
/* :nodoc: */
14211426
static VALUE
14221427
ossl_ocspcid_initialize_copy(VALUE self, VALUE other)
14231428
{

‎ext/openssl/ossl_pkcs12.c

+1
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ ossl_pkcs12_s_allocate(VALUE klass)
6060
return obj;
6161
}
6262

63+
/* :nodoc: */
6364
static VALUE
6465
ossl_pkcs12_initialize_copy(VALUE self, VALUE other)
6566
{

‎ext/openssl/ossl_pkcs7.c

+1
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,7 @@ ossl_pkcs7_initialize(int argc, VALUE *argv, VALUE self)
392392
return self;
393393
}
394394

395+
/* :nodoc: */
395396
static VALUE
396397
ossl_pkcs7_copy(VALUE self, VALUE other)
397398
{

‎ext/openssl/ossl_pkey.c

+1
Original file line numberDiff line numberDiff line change
@@ -615,6 +615,7 @@ ossl_pkey_initialize(VALUE self)
615615
}
616616

617617
#ifdef HAVE_EVP_PKEY_DUP
618+
/* :nodoc: */
618619
static VALUE
619620
ossl_pkey_initialize_copy(VALUE self, VALUE other)
620621
{

‎ext/openssl/ossl_pkey_dh.c

+1
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ ossl_dh_initialize(int argc, VALUE *argv, VALUE self)
128128
}
129129

130130
#ifndef HAVE_EVP_PKEY_DUP
131+
/* :nodoc: */
131132
static VALUE
132133
ossl_dh_initialize_copy(VALUE self, VALUE other)
133134
{

‎ext/openssl/ossl_pkey_dsa.c

+1
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ ossl_dsa_initialize(int argc, VALUE *argv, VALUE self)
140140
}
141141

142142
#ifndef HAVE_EVP_PKEY_DUP
143+
/* :nodoc: */
143144
static VALUE
144145
ossl_dsa_initialize_copy(VALUE self, VALUE other)
145146
{

‎ext/openssl/ossl_pkey_ec.c

+3
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ static VALUE ossl_ec_key_initialize(int argc, VALUE *argv, VALUE self)
191191
}
192192

193193
#ifndef HAVE_EVP_PKEY_DUP
194+
/* :nodoc: */
194195
static VALUE
195196
ossl_ec_key_initialize_copy(VALUE self, VALUE other)
196197
{
@@ -706,6 +707,7 @@ static VALUE ossl_ec_group_initialize(int argc, VALUE *argv, VALUE self)
706707
return self;
707708
}
708709

710+
/* :nodoc: */
709711
static VALUE
710712
ossl_ec_group_initialize_copy(VALUE self, VALUE other)
711713
{
@@ -1261,6 +1263,7 @@ static VALUE ossl_ec_point_initialize(int argc, VALUE *argv, VALUE self)
12611263
return self;
12621264
}
12631265

1266+
/* :nodoc: */
12641267
static VALUE
12651268
ossl_ec_point_initialize_copy(VALUE self, VALUE other)
12661269
{

‎ext/openssl/ossl_pkey_rsa.c

+1
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ ossl_rsa_initialize(int argc, VALUE *argv, VALUE self)
136136
}
137137

138138
#ifndef HAVE_EVP_PKEY_DUP
139+
/* :nodoc: */
139140
static VALUE
140141
ossl_rsa_initialize_copy(VALUE self, VALUE other)
141142
{

‎ext/openssl/ossl_ssl_session.c

+1
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ ossl_ssl_session_initialize(VALUE self, VALUE arg1)
6969
return self;
7070
}
7171

72+
/* :nodoc: */
7273
static VALUE
7374
ossl_ssl_session_initialize_copy(VALUE self, VALUE other)
7475
{

‎ext/openssl/ossl_x509attr.c

+1
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ ossl_x509attr_initialize(int argc, VALUE *argv, VALUE self)
123123
return self;
124124
}
125125

126+
/* :nodoc: */
126127
static VALUE
127128
ossl_x509attr_initialize_copy(VALUE self, VALUE other)
128129
{

‎ext/openssl/ossl_x509cert.c

+1
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ ossl_x509_initialize(int argc, VALUE *argv, VALUE self)
140140
return self;
141141
}
142142

143+
/* :nodoc: */
143144
static VALUE
144145
ossl_x509_copy(VALUE self, VALUE other)
145146
{

‎ext/openssl/ossl_x509crl.c

+1
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ ossl_x509crl_initialize(int argc, VALUE *argv, VALUE self)
117117
return self;
118118
}
119119

120+
/* :nodoc: */
120121
static VALUE
121122
ossl_x509crl_copy(VALUE self, VALUE other)
122123
{

‎ext/openssl/ossl_x509ext.c

+1
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,7 @@ ossl_x509ext_initialize(int argc, VALUE *argv, VALUE self)
295295
return self;
296296
}
297297

298+
/* :nodoc: */
298299
static VALUE
299300
ossl_x509ext_initialize_copy(VALUE self, VALUE other)
300301
{

‎ext/openssl/ossl_x509name.c

+1
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ ossl_x509name_initialize(int argc, VALUE *argv, VALUE self)
177177
return self;
178178
}
179179

180+
/* :nodoc: */
180181
static VALUE
181182
ossl_x509name_initialize_copy(VALUE self, VALUE other)
182183
{

‎ext/openssl/ossl_x509req.c

+1
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ ossl_x509req_initialize(int argc, VALUE *argv, VALUE self)
103103
return self;
104104
}
105105

106+
/* :nodoc: */
106107
static VALUE
107108
ossl_x509req_copy(VALUE self, VALUE other)
108109
{

‎ext/openssl/ossl_x509revoked.c

+1
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ ossl_x509revoked_initialize(int argc, VALUE *argv, VALUE self)
105105
return self;
106106
}
107107

108+
/* :nodoc: */
108109
static VALUE
109110
ossl_x509revoked_initialize_copy(VALUE self, VALUE other)
110111
{

0 commit comments

Comments
 (0)
Please sign in to comment.