src/ssl_sock.c
static int srv_parse_crl_file(char **args, int *cur_arg, struct proxy *px, struct server *newsrv, char **err)
{
#ifndef X509_V_FLAG_CRL_CHECK
	if (err)
		memprintf(err, "'%s' : library does not support CRL verify", args[*cur_arg]);
	return ERR_ALERT | ERR_FATAL;
#else
	if (!*args[*cur_arg + 1]) {
		if (err)
			memprintf(err, "'%s' : missing CRLfile path", args[*cur_arg]);
		return ERR_ALERT | ERR_FATAL;
	}

	if ((*args[*cur_arg + 1] != '/') && global.ca_base)
		memprintf(&newsrv->ssl_ctx.crl_file, "%s/%s", global.ca_base, args[*cur_arg + 1]);
	else
		memprintf(&newsrv->ssl_ctx.crl_file, "%s", args[*cur_arg + 1]);

	return 0;
#endif
}
/* parse the "crl-file" server keyword */
parse the "crl-file" server keyword
parse the " crl - file " server keyword
static int srv_parse_crl_file(char **args, int *cur_arg, struct proxy *px, struct server *newsrv, char **err)
{
#ifndef X509_V_FLAG_CRL_CHECK
	if (err)
		memprintf(err, "'%s' : library does not support CRL verify", args[*cur_arg]);
	return ERR_ALERT | ERR_FATAL;
#else
	if (!*args[*cur_arg + 1]) {
		if (err)
			memprintf(err, "'%s' : missing CRLfile path", args[*cur_arg]);
		return ERR_ALERT | ERR_FATAL;
	}
	if ((*args[*cur_arg + 1] != '/') && global.ca_base)
		memprintf(&newsrv->ssl_ctx.crl_file, "%s/%s", global.ca_base, args[*cur_arg + 1]);
	else
		memprintf(&newsrv->ssl_ctx.crl_file, "%s", args[*cur_arg + 1]);
	return 0;
#endif
}
static int srv_parse_crl_file ( char * * args , int * cur_arg , struct proxy * px , struct server * newsrv , char * * err ) { #ifndef X509_V_FLAG_CRL_CHECK if ( err ) memprintf ( err , " " , args [ * cur_arg ] ) ; return ERR_ALERT | ERR_FATAL ; #else if ( ! * args [ * cur_arg + 1 ] ) { if ( err ) memprintf ( err , " " , args [ * cur_arg ] ) ; return ERR_ALERT | ERR_FATAL ; } if ( ( * args [ * cur_arg + 1 ] != ' ' ) && global . ca_base ) memprintf ( & newsrv -> ssl_ctx . crl_file , " " , global . ca_base , args [ * cur_arg + 1 ] ) ; else memprintf ( & newsrv -> ssl_ctx . crl_file , " " , args [ * cur_arg + 1 ] ) ; return 0 ; #endif }
parse the "crl-file" server keyword
parse the " crl - file " server keyword