mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 15:27:29 +00:00
RxRPC: Declare the security index constants symbolically
Declare the security index constants symbolically rather than just referring to them numerically. Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
531afd64d0
commit
8b815477f3
3 changed files with 12 additions and 5 deletions
|
@ -122,7 +122,7 @@ static int rxrpc_instantiate(struct key *key, const void *data, size_t datalen)
|
|||
tsec->ticket[6], tsec->ticket[7]);
|
||||
|
||||
ret = -EPROTONOSUPPORT;
|
||||
if (tsec->security_index != 2)
|
||||
if (tsec->security_index != RXRPC_SECURITY_RXKAD)
|
||||
goto error;
|
||||
|
||||
key->type_data.x[0] = tsec->security_index;
|
||||
|
@ -308,7 +308,7 @@ int rxrpc_get_server_data_key(struct rxrpc_connection *conn,
|
|||
_debug("key %d", key_serial(key));
|
||||
|
||||
data.kver = 1;
|
||||
data.tsec.security_index = 2;
|
||||
data.tsec.security_index = RXRPC_SECURITY_RXKAD;
|
||||
data.tsec.ticket_len = 0;
|
||||
data.tsec.expiry = expiry;
|
||||
data.tsec.kvno = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue