char *hostnqn;
char *subsysnqn;
char *secret;
- unsigned int hmac;
- unsigned int identity;
+ unsigned char hmac;
+ unsigned char identity;
bool insert;
};
OPT_STR("hostnqn", 'n', &cfg.hostnqn, hostnqn),
OPT_STR("subsysnqn", 'c', &cfg.subsysnqn, subsysnqn),
OPT_STR("secret", 's', &cfg.secret, secret),
- OPT_UINT("hmac", 'm', &cfg.hmac, hmac),
- OPT_UINT("identity", 'I', &cfg.identity, identity),
+ OPT_BYTE("hmac", 'm', &cfg.hmac, hmac),
+ OPT_BYTE("identity", 'I', &cfg.identity, identity),
OPT_FLAG("insert", 'i', &cfg.insert, insert));
err = parse_args(argc, argv, desc, opts);
char *hostnqn;
char *subsysnqn;
char *keydata;
- unsigned int identity;
+ unsigned char identity;
bool insert;
};
OPT_STR("hostnqn", 'n', &cfg.hostnqn, hostnqn),
OPT_STR("subsysnqn", 'c', &cfg.subsysnqn, subsysnqn),
OPT_STR("keydata", 'd', &cfg.keydata, keydata),
- OPT_UINT("identity", 'I', &cfg.identity, identity),
+ OPT_BYTE("identity", 'I', &cfg.identity, identity),
OPT_FLAG("insert", 'i', &cfg.insert, insert));
err = parse_args(argc, argv, desc, opts);