@@ -1247,24 +1247,24 @@ Init_ossl_ts(void)
1247
1247
* timestamp server rejects the message imprint algorithm used in the
1248
1248
* +Request+
1249
1249
*/
1250
- sBAD_ALG = rb_intern ("BAD_ALG" );
1250
+ sBAD_ALG = rb_intern_const ("BAD_ALG" );
1251
1251
1252
1252
/*
1253
1253
* Possible return value for +Response#failure_info+. Indicates that the
1254
1254
* timestamp server was not able to process the +Request+ properly.
1255
1255
*/
1256
- sBAD_REQUEST = rb_intern ("BAD_REQUEST" );
1256
+ sBAD_REQUEST = rb_intern_const ("BAD_REQUEST" );
1257
1257
/*
1258
1258
* Possible return value for +Response#failure_info+. Indicates that the
1259
1259
* timestamp server was not able to parse certain data in the +Request+.
1260
1260
*/
1261
- sBAD_DATA_FORMAT = rb_intern ("BAD_DATA_FORMAT" );
1261
+ sBAD_DATA_FORMAT = rb_intern_const ("BAD_DATA_FORMAT" );
1262
1262
1263
- sTIME_NOT_AVAILABLE = rb_intern ("TIME_NOT_AVAILABLE" );
1264
- sUNACCEPTED_POLICY = rb_intern ("UNACCEPTED_POLICY" );
1265
- sUNACCEPTED_EXTENSION = rb_intern ("UNACCEPTED_EXTENSION" );
1266
- sADD_INFO_NOT_AVAILABLE = rb_intern ("ADD_INFO_NOT_AVAILABLE" );
1267
- sSYSTEM_FAILURE = rb_intern ("SYSTEM_FAILURE" );
1263
+ sTIME_NOT_AVAILABLE = rb_intern_const ("TIME_NOT_AVAILABLE" );
1264
+ sUNACCEPTED_POLICY = rb_intern_const ("UNACCEPTED_POLICY" );
1265
+ sUNACCEPTED_EXTENSION = rb_intern_const ("UNACCEPTED_EXTENSION" );
1266
+ sADD_INFO_NOT_AVAILABLE = rb_intern_const ("ADD_INFO_NOT_AVAILABLE" );
1267
+ sSYSTEM_FAILURE = rb_intern_const ("SYSTEM_FAILURE" );
1268
1268
1269
1269
/* Document-class: OpenSSL::Timestamp
1270
1270
* Provides classes and methods to request, create and validate
@@ -1503,11 +1503,11 @@ Init_ossl_ts(void)
1503
1503
*
1504
1504
*/
1505
1505
cTimestampFactory = rb_define_class_under (mTimestamp , "Factory" , rb_cObject );
1506
- rb_attr (cTimestampFactory , rb_intern ("allowed_digests" ), 1 , 1 , 0 );
1507
- rb_attr (cTimestampFactory , rb_intern ("default_policy_id" ), 1 , 1 , 0 );
1508
- rb_attr (cTimestampFactory , rb_intern ("serial_number" ), 1 , 1 , 0 );
1509
- rb_attr (cTimestampFactory , rb_intern ("gen_time" ), 1 , 1 , 0 );
1510
- rb_attr (cTimestampFactory , rb_intern ("additional_certs" ), 1 , 1 , 0 );
1506
+ rb_attr (cTimestampFactory , rb_intern_const ("allowed_digests" ), 1 , 1 , 0 );
1507
+ rb_attr (cTimestampFactory , rb_intern_const ("default_policy_id" ), 1 , 1 , 0 );
1508
+ rb_attr (cTimestampFactory , rb_intern_const ("serial_number" ), 1 , 1 , 0 );
1509
+ rb_attr (cTimestampFactory , rb_intern_const ("gen_time" ), 1 , 1 , 0 );
1510
+ rb_attr (cTimestampFactory , rb_intern_const ("additional_certs" ), 1 , 1 , 0 );
1511
1511
rb_define_method (cTimestampFactory , "create_timestamp" , ossl_tsfac_create_ts , 3 );
1512
1512
}
1513
1513
0 commit comments