diff options
author | David Howells <dhowells@redhat.com> | 2009-09-13 21:17:30 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-09-15 05:44:17 -0400 |
commit | 8b815477f382f96deefbe5bd4404fa7b31cf5dcf (patch) | |
tree | 3fe4fd85003fcf7b730c5d2651aab3f11642faae /net/rxrpc/ar-key.c | |
parent | 531afd64d027e3d798c416b2b37b3cfb1de417d9 (diff) |
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>
Diffstat (limited to 'net/rxrpc/ar-key.c')
-rw-r--r-- | net/rxrpc/ar-key.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/rxrpc/ar-key.c b/net/rxrpc/ar-key.c index ad8c7a782da1..b3d10e7ccd7e 100644 --- a/net/rxrpc/ar-key.c +++ b/net/rxrpc/ar-key.c | |||
@@ -122,7 +122,7 @@ static int rxrpc_instantiate(struct key *key, const void *data, size_t datalen) | |||
122 | tsec->ticket[6], tsec->ticket[7]); | 122 | tsec->ticket[6], tsec->ticket[7]); |
123 | 123 | ||
124 | ret = -EPROTONOSUPPORT; | 124 | ret = -EPROTONOSUPPORT; |
125 | if (tsec->security_index != 2) | 125 | if (tsec->security_index != RXRPC_SECURITY_RXKAD) |
126 | goto error; | 126 | goto error; |
127 | 127 | ||
128 | key->type_data.x[0] = tsec->security_index; | 128 | key->type_data.x[0] = tsec->security_index; |
@@ -308,7 +308,7 @@ int rxrpc_get_server_data_key(struct rxrpc_connection *conn, | |||
308 | _debug("key %d", key_serial(key)); | 308 | _debug("key %d", key_serial(key)); |
309 | 309 | ||
310 | data.kver = 1; | 310 | data.kver = 1; |
311 | data.tsec.security_index = 2; | 311 | data.tsec.security_index = RXRPC_SECURITY_RXKAD; |
312 | data.tsec.ticket_len = 0; | 312 | data.tsec.ticket_len = 0; |
313 | data.tsec.expiry = expiry; | 313 | data.tsec.expiry = expiry; |
314 | data.tsec.kvno = 0; | 314 | data.tsec.kvno = 0; |