On 28.09.2013 18:34, Dr Stephen Henson wrote: > How about something like: > > int SSL_CONF_cmd_type(SSL_CONF_CTX *cctx, const char *cmd); > > which can return things like... > > SSL_CONF_TYPE_INVALID: unrecognised name. > SSL_CONF_TYPE_FILE: file name. > SSL_CONF_TYPE_DIR: directory name. > ... others ... > SSL_CONF_TYPE_STR: string with no special meaning.
Sounds good, yes. This would also allow us to do a little more sanity checking in ssl_engine_config.c:ssl_cmd_SSLOpenSSLConfCmd() - e.g. for invalid command names (which are currently not rejected with "httpd -t"... only when httpd is started). Kaspar