Ticket #164: jabberd2_sasl_cyrus_compile_without_ssl.diff
| File jabberd2_sasl_cyrus_compile_without_ssl.diff, 1.4 KB (added by markdoliner, 14 months ago) |
|---|
-
sx/sasl_cyrus.c
525 525 526 526 /* get external data from the ssl plugin */ 527 527 ext_id = NULL; 528 #ifdef HAVE_SSL 528 529 for(i = 0; i < s->env->nplugins; i++) 529 530 if(s->env->plugins[i]->magic == SX_SSL_MAGIC && s->plugin_data[s->env->plugins[i]->index] != NULL) 530 531 ext_id = ((_sx_ssl_conn_t) s->plugin_data[s->env->plugins[i]->index])->external_id; … … 535 536 if(ret == SASL_OK) 536 537 ret = sasl_setprop(sasl, SASL_SSF_EXTERNAL, &s->ssf); 537 538 } 539 #endif /* HAVE_SSL */ 538 540 539 541 /* security properties */ 540 542 sec_props = ctx->sec_props; … … 1222 1224 1223 1225 /* get external data from the ssl plugin */ 1224 1226 ext_id = NULL; 1227 #ifdef HAVE_SSL 1225 1228 for(i = 0; i < s->env->nplugins; i++) 1226 1229 if(s->env->plugins[i]->magic == SX_SSL_MAGIC && s->plugin_data[s->env->plugins[i]->index] != NULL) 1227 1230 ext_id = ((_sx_ssl_conn_t) s->plugin_data[s->env->plugins[i]->index])->external_id; … … 1239 1242 ret = sasl_setprop(sd->sasl, SASL_AUTH_EXTERNAL, ext_id); 1240 1243 if(ret == SASL_OK) ret = sasl_setprop(sd->sasl, SASL_SSF_EXTERNAL, &s->ssf); 1241 1244 } 1245 #endif /* HAVE_SSL */ 1242 1246 1243 1247 /* setup security properties */ 1244 1248 sec_props = ctx->sec_props;
