@@ -1257,24 +1257,24 @@ Init_ossl_ts(void)
12571257 * timestamp server rejects the message imprint algorithm used in the
12581258 * +Request+
12591259 */
1260- sBAD_ALG = rb_intern ("BAD_ALG" );
1260+ sBAD_ALG = rb_intern_const ("BAD_ALG" );
12611261
12621262 /*
12631263 * Possible return value for +Response#failure_info+. Indicates that the
12641264 * timestamp server was not able to process the +Request+ properly.
12651265 */
1266- sBAD_REQUEST = rb_intern ("BAD_REQUEST" );
1266+ sBAD_REQUEST = rb_intern_const ("BAD_REQUEST" );
12671267 /*
12681268 * Possible return value for +Response#failure_info+. Indicates that the
12691269 * timestamp server was not able to parse certain data in the +Request+.
12701270 */
1271- sBAD_DATA_FORMAT = rb_intern ("BAD_DATA_FORMAT" );
1271+ sBAD_DATA_FORMAT = rb_intern_const ("BAD_DATA_FORMAT" );
12721272
1273- sTIME_NOT_AVAILABLE = rb_intern ("TIME_NOT_AVAILABLE" );
1274- sUNACCEPTED_POLICY = rb_intern ("UNACCEPTED_POLICY" );
1275- sUNACCEPTED_EXTENSION = rb_intern ("UNACCEPTED_EXTENSION" );
1276- sADD_INFO_NOT_AVAILABLE = rb_intern ("ADD_INFO_NOT_AVAILABLE" );
1277- sSYSTEM_FAILURE = rb_intern ("SYSTEM_FAILURE" );
1273+ sTIME_NOT_AVAILABLE = rb_intern_const ("TIME_NOT_AVAILABLE" );
1274+ sUNACCEPTED_POLICY = rb_intern_const ("UNACCEPTED_POLICY" );
1275+ sUNACCEPTED_EXTENSION = rb_intern_const ("UNACCEPTED_EXTENSION" );
1276+ sADD_INFO_NOT_AVAILABLE = rb_intern_const ("ADD_INFO_NOT_AVAILABLE" );
1277+ sSYSTEM_FAILURE = rb_intern_const ("SYSTEM_FAILURE" );
12781278
12791279 /* Document-class: OpenSSL::Timestamp
12801280 * Provides classes and methods to request, create and validate
@@ -1513,11 +1513,11 @@ Init_ossl_ts(void)
15131513 *
15141514 */
15151515 cTimestampFactory = rb_define_class_under (mTimestamp , "Factory" , rb_cObject );
1516- rb_attr (cTimestampFactory , rb_intern ("allowed_digests" ), 1 , 1 , 0 );
1517- rb_attr (cTimestampFactory , rb_intern ("default_policy_id" ), 1 , 1 , 0 );
1518- rb_attr (cTimestampFactory , rb_intern ("serial_number" ), 1 , 1 , 0 );
1519- rb_attr (cTimestampFactory , rb_intern ("gen_time" ), 1 , 1 , 0 );
1520- rb_attr (cTimestampFactory , rb_intern ("additional_certs" ), 1 , 1 , 0 );
1516+ rb_attr (cTimestampFactory , rb_intern_const ("allowed_digests" ), 1 , 1 , 0 );
1517+ rb_attr (cTimestampFactory , rb_intern_const ("default_policy_id" ), 1 , 1 , 0 );
1518+ rb_attr (cTimestampFactory , rb_intern_const ("serial_number" ), 1 , 1 , 0 );
1519+ rb_attr (cTimestampFactory , rb_intern_const ("gen_time" ), 1 , 1 , 0 );
1520+ rb_attr (cTimestampFactory , rb_intern_const ("additional_certs" ), 1 , 1 , 0 );
15211521 rb_define_method (cTimestampFactory , "create_timestamp" , ossl_tsfac_create_ts , 3 );
15221522}
15231523
0 commit comments