FILE *maybe_f, bool_t unsup,
const char *message, va_list args);
bool_t (*postreadcheck)(struct load_ctx *l, FILE *f);
+ struct cloc *loc;
union {
- struct {
- struct cloc loc;
- } apply;
struct {
struct log_if *log;
} tryload;
FILE *maybe_f, bool_t unsup,
const char *message, va_list args)
{
- vcfgfatal_maybefile(maybe_f,l->u.apply.loc,"rsa-private",message,args);
+ vcfgfatal_maybefile(maybe_f,*l->loc,"rsa-private",message,args);
}
struct rsapriv {
struct load_ctx l[1];
l->verror=verror_tryload;
l->postreadcheck=postreadcheck_tryload;
+ l->loc=&loc;
l->u.tryload.log=log;
st=rsa_loadpriv_core(l,f,loc,False);
static bool_t postreadcheck_apply(struct load_ctx *l, FILE *f)
{
- cfgfile_postreadcheck(l->u.apply.loc,f);
+ cfgfile_postreadcheck(*l->loc,f);
return True;
}
l->verror=verror_cfgfatal;
l->postreadcheck=postreadcheck_apply;
- l->u.apply.loc=loc;
+ l->loc=&loc;
/* Argument is filename pointing to SSH1 private key file */
i=list_elem(args,0);