> I found the issue. In param_copy_gost01() change > int ret = 0; > to > int ret = 1; > > If there is no private key set in eto, param_copy_gost01() will > skip all ret assignments and happily return 0 (= error).
Doh, of course! Sorry for introducing this bug. Miod