Skip to content

Commit 1a71cc8

Browse files
authored
bugfix: typo fixes.
1 parent 9d930a7 commit 1a71cc8

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

src/ngx_http_lua_ssl_certby.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ ngx_http_lua_ssl_cert_handler(ngx_ssl_conn_t *ssl_conn, void *data)
217217

218218
if (cctx->done) {
219219
ngx_log_debug1(NGX_LOG_DEBUG_HTTP, c->log, 0,
220-
"lua_certificate_by_lua: cert cb exit code: %d",
220+
"ssl_certificate_by_lua: cert cb exit code: %d",
221221
cctx->exit_code);
222222

223223
dd("lua ssl cert done, finally");
@@ -319,7 +319,7 @@ ngx_http_lua_ssl_cert_handler(ngx_ssl_conn_t *ssl_conn, void *data)
319319
}
320320

321321
ngx_log_debug2(NGX_LOG_DEBUG_HTTP, c->log, 0,
322-
"lua_certificate_by_lua: handler return value: %i, "
322+
"ssl_certificate_by_lua: handler return value: %i, "
323323
"cert cb exit code: %d", rc, cctx->exit_code);
324324

325325
c->log->action = "SSL handshaking";
@@ -405,15 +405,15 @@ ngx_http_lua_ssl_cert_aborted(void *data)
405405
{
406406
ngx_http_lua_ssl_ctx_t *cctx = data;
407407

408-
dd("lua ssl cert done");
408+
dd("lua ssl cert aborted");
409409

410410
if (cctx->done) {
411411
/* completed successfully already */
412412
return;
413413
}
414414

415415
ngx_log_debug0(NGX_LOG_DEBUG_HTTP, cctx->connection->log, 0,
416-
"lua_certificate_by_lua: cert cb aborted");
416+
"ssl_certificate_by_lua: cert cb aborted");
417417

418418
cctx->aborted = 1;
419419
cctx->request->connection->ssl = NULL;

src/ngx_http_lua_ssl_session_fetchby.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ ngx_http_lua_ssl_sess_fetch_aborted(void *data)
416416
{
417417
ngx_http_lua_ssl_ctx_t *cctx = data;
418418

419-
dd("lua ssl sess_fetch done");
419+
dd("lua ssl sess_fetch aborted");
420420

421421
if (cctx->done) {
422422
/* completed successfully already */

t/139-ssl-cert-by.t

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ failed to do SSL handshake: handshake failed
582582

583583
--- error_log eval
584584
[
585-
'lua_certificate_by_lua: handler return value: -1, cert cb exit code: 0',
585+
'ssl_certificate_by_lua: handler return value: -1, cert cb exit code: 0',
586586
qr/(\[info\] .*? SSL_do_handshake\(\) failed .*?cert cb error|routines:OPENSSL_internal:CERT_CB_ERROR)/,
587587
'lua exit with code -1',
588588
]
@@ -723,7 +723,7 @@ failed to do SSL handshake: handshake failed
723723

724724
--- error_log eval
725725
[
726-
'lua_certificate_by_lua: cert cb exit code: 0',
726+
'ssl_certificate_by_lua: cert cb exit code: 0',
727727
qr/(\[info\] .*? SSL_do_handshake\(\) failed .*?cert cb error|routines:OPENSSL_internal:CERT_CB_ERROR)/,
728728
'lua exit with code -1',
729729
]
@@ -794,7 +794,7 @@ failed to do SSL handshake: handshake failed
794794
--- error_log eval
795795
[
796796
'runtime error: ssl_certificate_by_lua(nginx.conf:28):2: bad bad bad',
797-
'lua_certificate_by_lua: handler return value: 500, cert cb exit code: 0',
797+
'ssl_certificate_by_lua: handler return value: 500, cert cb exit code: 0',
798798
qr/(\[info\] .*? SSL_do_handshake\(\) failed .*?cert cb error|routines:OPENSSL_internal:CERT_CB_ERROR)/,
799799
qr/context: ssl_certificate_by_lua\*, client: \d+\.\d+\.\d+\.\d+, server: \d+\.\d+\.\d+\.\d+:\d+/,
800800
]
@@ -866,7 +866,7 @@ failed to do SSL handshake: handshake failed
866866
--- error_log eval
867867
[
868868
'runtime error: ssl_certificate_by_lua(nginx.conf:28):3: bad bad bad',
869-
'lua_certificate_by_lua: cert cb exit code: 0',
869+
'ssl_certificate_by_lua: cert cb exit code: 0',
870870
qr/(\[info\] .*? SSL_do_handshake\(\) failed .*?cert cb error|routines:OPENSSL_internal:CERT_CB_ERROR)/,
871871
]
872872

0 commit comments

Comments
 (0)