Make VALID_MECH a function.
Make VALID_MECH a function.

Signed-off-by: Joy Latten <d52cec510126fd47fd8d2fded238791e9e5bd0bf@linux.vnet.ibm.com>

fingunter/OpenCryptoki,fingunter/OpenCryptoki,fingunter/OpenCryptoki,fingunter/OpenCryptoki