Changeset View
Changeset View
Standalone View
Standalone View
sbin/geom/class/eli/geom_eli.c
Context not available. | |||||
val = gctl_get_intmax(req, "iterations"); | val = gctl_get_intmax(req, "iterations"); | ||||
/* Check if iterations number should and can be changed. */ | /* Check if iterations number should and can be changed. */ | ||||
if (val != -1) { | if (val != -1 && md->md_iterations == -1) { | ||||
md->md_iterations = val; | |||||
} else if (val != -1) { | |||||
if (bitcount32(md->md_keys) != 1) { | if (bitcount32(md->md_keys) != 1) { | ||||
gctl_error(req, "To be able to use '-i' option, only " | gctl_error(req, "To be able to use '-i' option, only " | ||||
"one key can be defined."); | "one key can be defined."); | ||||
Context not available. |