Skip to content

Commit 0e63f93

Browse files
noburhenium
authored andcommitted
no ID cache in Init functions
Init functions are called only once, cache is useless. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62429 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Sync-with-trunk: r62429
1 parent 1f90516 commit 0e63f93

File tree

9 files changed

+9
-0
lines changed

9 files changed

+9
-0
lines changed

ext/openssl/ossl.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1078,6 +1078,7 @@ static void Init_ossl_locks(void)
10781078
void
10791079
Init_openssl(void)
10801080
{
1081+
#undef rb_intern
10811082
/*
10821083
* Init timezone info
10831084
*/

ext/openssl/ossl_asn1.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1412,6 +1412,7 @@ OSSL_ASN1_IMPL_FACTORY_METHOD(EndOfContent)
14121412
void
14131413
Init_ossl_asn1(void)
14141414
{
1415+
#undef rb_intern
14151416
VALUE ary;
14161417
int i;
14171418

ext/openssl/ossl_pkcs12.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,7 @@ ossl_pkcs12_to_der(VALUE self)
237237
void
238238
Init_ossl_pkcs12(void)
239239
{
240+
#undef rb_intern
240241
#if 0
241242
mOSSL = rb_define_module("OpenSSL");
242243
eOSSLError = rb_define_class_under(mOSSL, "OpenSSLError", rb_eStandardError);

ext/openssl/ossl_pkcs7.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1054,6 +1054,7 @@ ossl_pkcs7ri_get_enc_key(VALUE self)
10541054
void
10551055
Init_ossl_pkcs7(void)
10561056
{
1057+
#undef rb_intern
10571058
#if 0
10581059
mOSSL = rb_define_module("OpenSSL");
10591060
eOSSLError = rb_define_class_under(mOSSL, "OpenSSLError", rb_eStandardError);

ext/openssl/ossl_pkey.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,7 @@ ossl_pkey_verify(VALUE self, VALUE digest, VALUE sig, VALUE data)
389389
void
390390
Init_ossl_pkey(void)
391391
{
392+
#undef rb_intern
392393
#if 0
393394
mOSSL = rb_define_module("OpenSSL");
394395
eOSSLError = rb_define_class_under(mOSSL, "OpenSSLError", rb_eStandardError);

ext/openssl/ossl_pkey_ec.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1676,6 +1676,7 @@ static VALUE ossl_ec_point_mul(int argc, VALUE *argv, VALUE self)
16761676

16771677
void Init_ossl_ec(void)
16781678
{
1679+
#undef rb_intern
16791680
#if 0
16801681
mPKey = rb_define_module_under(mOSSL, "PKey");
16811682
cPKey = rb_define_class_under(mPKey, "PKey", rb_cObject);

ext/openssl/ossl_x509ext.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,7 @@ ossl_x509ext_to_der(VALUE obj)
441441
void
442442
Init_ossl_x509ext(void)
443443
{
444+
#undef rb_intern
444445
#if 0
445446
mOSSL = rb_define_module("OpenSSL");
446447
eOSSLError = rb_define_class_under(mOSSL, "OpenSSLError", rb_eStandardError);

ext/openssl/ossl_x509name.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -462,6 +462,7 @@ ossl_x509name_to_der(VALUE self)
462462
void
463463
Init_ossl_x509name(void)
464464
{
465+
#undef rb_intern
465466
VALUE utf8str, ptrstr, ia5str, hash;
466467

467468
#if 0

ext/openssl/ossl_x509store.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -800,6 +800,7 @@ ossl_x509stctx_set_time(VALUE self, VALUE time)
800800
void
801801
Init_ossl_x509store(void)
802802
{
803+
#undef rb_intern
803804
#if 0
804805
mOSSL = rb_define_module("OpenSSL");
805806
eOSSLError = rb_define_class_under(mOSSL, "OpenSSLError", rb_eStandardError);

0 commit comments

Comments
 (0)