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/rxkad.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/rxkad.c')
-rw-r--r-- | net/rxrpc/rxkad.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/rxrpc/rxkad.c b/net/rxrpc/rxkad.c index ef8f91030a15..acec76292c01 100644 --- a/net/rxrpc/rxkad.c +++ b/net/rxrpc/rxkad.c | |||
@@ -42,7 +42,7 @@ struct rxkad_level2_hdr { | |||
42 | __be32 checksum; /* decrypted data checksum */ | 42 | __be32 checksum; /* decrypted data checksum */ |
43 | }; | 43 | }; |
44 | 44 | ||
45 | MODULE_DESCRIPTION("RxRPC network protocol type-2 security (Kerberos)"); | 45 | MODULE_DESCRIPTION("RxRPC network protocol type-2 security (Kerberos 4)"); |
46 | MODULE_AUTHOR("Red Hat, Inc."); | 46 | MODULE_AUTHOR("Red Hat, Inc."); |
47 | MODULE_LICENSE("GPL"); | 47 | MODULE_LICENSE("GPL"); |
48 | 48 | ||
@@ -506,7 +506,7 @@ static int rxkad_verify_packet(const struct rxrpc_call *call, | |||
506 | if (!call->conn->cipher) | 506 | if (!call->conn->cipher) |
507 | return 0; | 507 | return 0; |
508 | 508 | ||
509 | if (sp->hdr.securityIndex != 2) { | 509 | if (sp->hdr.securityIndex != RXRPC_SECURITY_RXKAD) { |
510 | *_abort_code = RXKADINCONSISTENCY; | 510 | *_abort_code = RXKADINCONSISTENCY; |
511 | _leave(" = -EPROTO [not rxkad]"); | 511 | _leave(" = -EPROTO [not rxkad]"); |
512 | return -EPROTO; | 512 | return -EPROTO; |
@@ -1122,7 +1122,7 @@ static void rxkad_clear(struct rxrpc_connection *conn) | |||
1122 | static struct rxrpc_security rxkad = { | 1122 | static struct rxrpc_security rxkad = { |
1123 | .owner = THIS_MODULE, | 1123 | .owner = THIS_MODULE, |
1124 | .name = "rxkad", | 1124 | .name = "rxkad", |
1125 | .security_index = RXKAD_VERSION, | 1125 | .security_index = RXRPC_SECURITY_RXKAD, |
1126 | .init_connection_security = rxkad_init_connection_security, | 1126 | .init_connection_security = rxkad_init_connection_security, |
1127 | .prime_packet_security = rxkad_prime_packet_security, | 1127 | .prime_packet_security = rxkad_prime_packet_security, |
1128 | .secure_packet = rxkad_secure_packet, | 1128 | .secure_packet = rxkad_secure_packet, |