parent
e1c8f09372
commit
b4c86df6f5
@ -270,8 +270,7 @@ int mosquitto_string_option(struct mosquitto *mosq, enum mosq_opt_t option, cons
|
|||||||
|
|
||||||
switch(option){
|
switch(option){
|
||||||
case MOSQ_OPT_TLS_ENGINE:
|
case MOSQ_OPT_TLS_ENGINE:
|
||||||
#ifdef WITH_TLS
|
#if defined(WITH_TLS) && !defined(OPENSSL_NO_ENGINE)
|
||||||
# if !defined(OPENSSL_NO_ENGINE)
|
|
||||||
eng = ENGINE_by_id(value);
|
eng = ENGINE_by_id(value);
|
||||||
if(!eng){
|
if(!eng){
|
||||||
return MOSQ_ERR_INVAL;
|
return MOSQ_ERR_INVAL;
|
||||||
@ -282,7 +281,6 @@ int mosquitto_string_option(struct mosquitto *mosq, enum mosq_opt_t option, cons
|
|||||||
return MOSQ_ERR_NOMEM;
|
return MOSQ_ERR_NOMEM;
|
||||||
}
|
}
|
||||||
return MOSQ_ERR_SUCCESS;
|
return MOSQ_ERR_SUCCESS;
|
||||||
#endif
|
|
||||||
#else
|
#else
|
||||||
return MOSQ_ERR_NOT_SUPPORTED;
|
return MOSQ_ERR_NOT_SUPPORTED;
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user