@@ -9181,7 +9181,7 @@ static int gen_tls_key(int argc, char **argv, struct command *command, struct pl
9181
9181
const char * secret =
9182
9182
"Optional secret (in hexadecimal characters) to be used for the TLS key." ;
9183
9183
const char * hmac = "HMAC function to use for the retained key (1 = SHA-256, 2 = SHA-384)." ;
9184
- const char * identity = "TLS identity version to use (0 = NVMe TCP 1.0c, 1 = NVMe TCP 2.0" ;
9184
+ const char * version = "TLS identity version to use (0 = NVMe TCP 1.0c, 1 = NVMe TCP 2.0" ;
9185
9185
const char * hostnqn = "Host NQN for the retained key." ;
9186
9186
const char * subsysnqn = "Subsystem NQN for the retained key." ;
9187
9187
const char * keyring = "Keyring for the retained key." ;
@@ -9202,7 +9202,7 @@ static int gen_tls_key(int argc, char **argv, struct command *command, struct pl
9202
9202
char * subsysnqn ;
9203
9203
char * secret ;
9204
9204
unsigned char hmac ;
9205
- unsigned char identity ;
9205
+ unsigned char version ;
9206
9206
bool insert ;
9207
9207
};
9208
9208
@@ -9213,7 +9213,7 @@ static int gen_tls_key(int argc, char **argv, struct command *command, struct pl
9213
9213
.subsysnqn = NULL ,
9214
9214
.secret = NULL ,
9215
9215
.hmac = 1 ,
9216
- .identity = 0 ,
9216
+ .version = 0 ,
9217
9217
.insert = false,
9218
9218
};
9219
9219
@@ -9224,7 +9224,7 @@ static int gen_tls_key(int argc, char **argv, struct command *command, struct pl
9224
9224
OPT_STR ("subsysnqn" , 'c' , & cfg .subsysnqn , subsysnqn ),
9225
9225
OPT_STR ("secret" , 's' , & cfg .secret , secret ),
9226
9226
OPT_BYTE ("hmac" , 'm' , & cfg .hmac , hmac ),
9227
- OPT_BYTE ("identity" , 'I' , & cfg .identity , identity ),
9227
+ OPT_BYTE ("identity" , 'I' , & cfg .version , version ),
9228
9228
OPT_FLAG ("insert" , 'i' , & cfg .insert , insert ));
9229
9229
9230
9230
err = parse_args (argc , argv , desc , opts );
@@ -9234,9 +9234,9 @@ static int gen_tls_key(int argc, char **argv, struct command *command, struct pl
9234
9234
nvme_show_error ("Invalid HMAC identifier %u" , cfg .hmac );
9235
9235
return - EINVAL ;
9236
9236
}
9237
- if (cfg .identity > 1 ) {
9237
+ if (cfg .version > 1 ) {
9238
9238
nvme_show_error ("Invalid TLS identity version %u" ,
9239
- cfg .identity );
9239
+ cfg .version );
9240
9240
return - EINVAL ;
9241
9241
}
9242
9242
if (cfg .insert ) {
@@ -9288,7 +9288,7 @@ static int gen_tls_key(int argc, char **argv, struct command *command, struct pl
9288
9288
if (cfg .insert ) {
9289
9289
tls_key = nvme_insert_tls_key_versioned (cfg .keyring ,
9290
9290
cfg .keytype , cfg .hostnqn ,
9291
- cfg .subsysnqn , cfg .identity ,
9291
+ cfg .subsysnqn , cfg .version ,
9292
9292
cfg .hmac , raw_secret , key_len );
9293
9293
if (tls_key <= 0 ) {
9294
9294
nvme_show_error ("Failed to insert key, error %d" , errno );
0 commit comments