version 1.164, 2016/11/02 15:18:42 |
version 1.165, 2016/11/03 15:52:10 |
|
|
tls_peer_cert_hash(tls_ctx)); |
tls_peer_cert_hash(tls_ctx)); |
ocsp_url = tls_peer_ocsp_url(tls_ctx); |
ocsp_url = tls_peer_ocsp_url(tls_ctx); |
fprintf(stderr, "OCSP URL: %s\n", ocsp_url == NULL ? "" : ocsp_url); |
fprintf(stderr, "OCSP URL: %s\n", ocsp_url == NULL ? "" : ocsp_url); |
fprintf(stderr, "OCSP Stapling:"); |
|
switch (tls_peer_ocsp_response_status(tls_ctx)) { |
switch (tls_peer_ocsp_response_status(tls_ctx)) { |
case TLS_OCSP_RESPONSE_SUCCESSFUL: |
case TLS_OCSP_RESPONSE_SUCCESSFUL: |
fprintf(stderr, " %s\n", |
fprintf(stderr, "OCSP Stapling: %s\n", |
tls_peer_ocsp_result(tls_ctx) == NULL ? "" : |
tls_peer_ocsp_result(tls_ctx) == NULL ? "" : |
tls_peer_ocsp_result(tls_ctx)); |
tls_peer_ocsp_result(tls_ctx)); |
fprintf(stderr, |
fprintf(stderr, |
|
|
t != -1 ? ctime(&t) : "\n"); |
t != -1 ? ctime(&t) : "\n"); |
break; |
break; |
case -1: |
case -1: |
fprintf(stderr, "\n"); |
|
break; |
break; |
default: |
default: |
fprintf(stderr, " failure - response_status %d (%s)\n", |
fprintf(stderr, "OCSP Stapling: failure - response_status %d (%s)\n", |
tls_peer_ocsp_response_status(tls_ctx), |
tls_peer_ocsp_response_status(tls_ctx), |
tls_peer_ocsp_result(tls_ctx) == NULL ? "" : |
tls_peer_ocsp_result(tls_ctx) == NULL ? "" : |
tls_peer_ocsp_result(tls_ctx)); |
tls_peer_ocsp_result(tls_ctx)); |