@@ -265,10 +265,34 @@ truetrue
265
265
-- - no_error_log
266
266
[error]
267
267
268
+ === TEST 10 : x509. crl doesn't error if revoked is empty (regression)
269
+ -- - http_config eval: $::HttpConfig
270
+ -- - config
271
+ location = /t {
272
+ content_by_lua_block {
273
+ local f = io. open (" t/fixtures/no_revoked.crl" ): read(" *a" )
274
+ local c = myassert(require (" resty.openssl.x509.crl" ). new (f))
275
+
276
+ for k, v in pairs (c) do
277
+ ngx. say (tostring(k))
278
+ end
279
+ -- above should print nothing
280
+
281
+ ngx. say (c: get_last_update())
282
+ }
283
+ }
284
+ --- request
285
+ GET /t
286
+ -- - response_body_like eval
287
+ " 1652832000
288
+ "
289
+ -- - no_error_log
290
+ [error]
291
+
268
292
# START AUTO GENERATED CODE
269
293
270
294
271
- === TEST 10 : x509. crl: get_issuer_name (AUTOGEN)
295
+ === TEST 11 : x509. crl: get_issuer_name (AUTOGEN)
272
296
-- - http_config eval: $::HttpConfig
273
297
-- - config
274
298
location = /t {
@@ -288,7 +312,7 @@ truetrue
288
312
-- - no_error_log
289
313
[error]
290
314
291
- === TEST 11 : x509. crl: set_issuer_name (AUTOGEN)
315
+ === TEST 12 : x509. crl: set_issuer_name (AUTOGEN)
292
316
-- - http_config eval: $::HttpConfig
293
317
-- - config
294
318
location = /t {
@@ -316,7 +340,7 @@ truetrue
316
340
-- - no_error_log
317
341
[error]
318
342
319
- === TEST 12 : x509. crl: get_last_update (AUTOGEN)
343
+ === TEST 13 : x509. crl: get_last_update (AUTOGEN)
320
344
-- - http_config eval: $::HttpConfig
321
345
-- - config
322
346
location = /t {
@@ -335,7 +359,7 @@ truetrue
335
359
-- - no_error_log
336
360
[error]
337
361
338
- === TEST 13 : x509. crl: set_last_update (AUTOGEN)
362
+ === TEST 14 : x509. crl: set_last_update (AUTOGEN)
339
363
-- - http_config eval: $::HttpConfig
340
364
-- - config
341
365
location = /t {
@@ -361,7 +385,7 @@ truetrue
361
385
-- - no_error_log
362
386
[error]
363
387
364
- === TEST 14 : x509. crl: get_next_update (AUTOGEN)
388
+ === TEST 15 : x509. crl: get_next_update (AUTOGEN)
365
389
-- - http_config eval: $::HttpConfig
366
390
-- - config
367
391
location = /t {
@@ -380,7 +404,7 @@ truetrue
380
404
-- - no_error_log
381
405
[error]
382
406
383
- === TEST 15 : x509. crl: set_next_update (AUTOGEN)
407
+ === TEST 16 : x509. crl: set_next_update (AUTOGEN)
384
408
-- - http_config eval: $::HttpConfig
385
409
-- - config
386
410
location = /t {
@@ -406,7 +430,7 @@ truetrue
406
430
-- - no_error_log
407
431
[error]
408
432
409
- === TEST 16 : x509. crl: get_version (AUTOGEN)
433
+ === TEST 17 : x509. crl: get_version (AUTOGEN)
410
434
-- - http_config eval: $::HttpConfig
411
435
-- - config
412
436
location = /t {
@@ -425,7 +449,7 @@ truetrue
425
449
-- - no_error_log
426
450
[error]
427
451
428
- === TEST 17 : x509. crl: set_version (AUTOGEN)
452
+ === TEST 18 : x509. crl: set_version (AUTOGEN)
429
453
-- - http_config eval: $::HttpConfig
430
454
-- - config
431
455
location = /t {
@@ -451,7 +475,7 @@ truetrue
451
475
-- - no_error_log
452
476
[error]
453
477
454
- === TEST 19 : x509. crl: get_get_signature_name (AUTOGEN)
478
+ === TEST 20 : x509. crl: get_get_signature_name (AUTOGEN)
455
479
-- - http_config eval: $::HttpConfig
456
480
-- - config
457
481
location = /t {
0 commit comments