src/ssl_sock.c
static int bind_parse_ecdhe(char **args, int cur_arg, struct proxy *px, struct bind_conf *conf, char **err)
{
#if OPENSSL_VERSION_NUMBER < 0x0090800fL
	if (err)
		memprintf(err, "'%s' : library does not support elliptic curve Diffie-Hellman (too old)", args[cur_arg]);
	return ERR_ALERT | ERR_FATAL;
#elif defined(OPENSSL_NO_ECDH)
	if (err)
		memprintf(err, "'%s' : library does not support elliptic curve Diffie-Hellman (disabled via OPENSSL_NO_ECDH)", args[cur_arg]);
	return ERR_ALERT | ERR_FATAL;
#else
	if (!*args[cur_arg + 1]) {
		if (err)
			memprintf(err, "'%s' : missing named curve", args[cur_arg]);
		return ERR_ALERT | ERR_FATAL;
	}

	conf->ecdhe = strdup(args[cur_arg + 1]);

	return 0;
#endif
}
/* parse the "ecdhe" bind keyword keywords */
parse the "ecdhe" bind keyword keywords
parse the " ecdhe " bind keyword keywords
static int bind_parse_ecdhe(char **args, int cur_arg, struct proxy *px, struct bind_conf *conf, char **err)
{
#if OPENSSL_VERSION_NUMBER < 0x0090800fL
	if (err)
		memprintf(err, "'%s' : library does not support elliptic curve Diffie-Hellman (too old)", args[cur_arg]);
	return ERR_ALERT | ERR_FATAL;
#elif defined(OPENSSL_NO_ECDH)
	if (err)
		memprintf(err, "'%s' : library does not support elliptic curve Diffie-Hellman (disabled via OPENSSL_NO_ECDH)", args[cur_arg]);
	return ERR_ALERT | ERR_FATAL;
#else
	if (!*args[cur_arg + 1]) {
		if (err)
			memprintf(err, "'%s' : missing named curve", args[cur_arg]);
		return ERR_ALERT | ERR_FATAL;
	}
	conf->ecdhe = strdup(args[cur_arg + 1]);
	return 0;
#endif
}
static int bind_parse_ecdhe ( char * * args , int cur_arg , struct proxy * px , struct bind_conf * conf , char * * err ) { #if OPENSSL_VERSION_NUMBER < 0x0090800fL if ( err ) memprintf ( err , " " , args [ cur_arg ] ) ; return ERR_ALERT | ERR_FATAL ; #elif defined ( OPENSSL_NO_ECDH ) 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 ; } conf -> ecdhe = strdup ( args [ cur_arg + 1 ] ) ; return 0 ; #endif }
parse the "ecdhe" bind keyword keywords
parse the " ecdhe " bind keyword keywords