| 1032 | } |
| 1033 | |
| 1034 | static APR_INLINE |
| 1035 | int modssl_CTX_load_verify_locations(SSL_CTX *ctx, |
| 1036 | const char *file, |
| 1037 | const char *path) |
| 1038 | { |
| 1039 | #if OPENSSL_VERSION_NUMBER < 0x30000000L |
| 1040 | if (!SSL_CTX_load_verify_locations(ctx, file, path)) |
| 1041 | return 0; |
| 1042 | #else |
| 1043 | if (file && !SSL_CTX_load_verify_file(ctx, file)) |
| 1044 | return 0; |
| 1045 | if (path && !SSL_CTX_load_verify_dir(ctx, path)) |
| 1046 | return 0; |
| 1047 | #endif |
| 1048 | return 1; |
| 1049 | } |
| 1050 | |
| 1051 | static apr_status_t ssl_init_ctx_verify(server_rec *s, |
| 1052 | apr_pool_t *p, |
no outgoing calls
no test coverage detected