Skip to content

Commit 6c922ea

Browse files
committed
SUNRPC: Remove CONFIG_RPCSEC_GSS_KRB5_CRYPTOSYSTEM
This code is now always on, so the ifdef can be removed. Reviewed-by: Jeff Layton <[email protected]> Signed-off-by: Chuck Lever <[email protected]>
1 parent da33d63 commit 6c922ea

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

net/sunrpc/Kconfig

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,18 +34,13 @@ config RPCSEC_GSS_KRB5
3434

3535
If unsure, say Y.
3636

37-
config RPCSEC_GSS_KRB5_CRYPTOSYSTEM
38-
bool
39-
depends on RPCSEC_GSS_KRB5
40-
4137
config RPCSEC_GSS_KRB5_ENCTYPES_AES_SHA1
4238
bool "Enable Kerberos enctypes based on AES and SHA-1"
4339
depends on RPCSEC_GSS_KRB5
4440
depends on CRYPTO_CBC && CRYPTO_CTS
4541
depends on CRYPTO_HMAC && CRYPTO_SHA1
4642
depends on CRYPTO_AES
4743
default y
48-
select RPCSEC_GSS_KRB5_CRYPTOSYSTEM
4944
help
5045
Choose Y to enable the use of Kerberos 5 encryption types
5146
that utilize Advanced Encryption Standard (AES) ciphers and
@@ -58,7 +53,6 @@ config RPCSEC_GSS_KRB5_ENCTYPES_CAMELLIA
5853
depends on CRYPTO_CBC && CRYPTO_CTS && CRYPTO_CAMELLIA
5954
depends on CRYPTO_CMAC
6055
default n
61-
select RPCSEC_GSS_KRB5_CRYPTOSYSTEM
6256
help
6357
Choose Y to enable the use of Kerberos 5 encryption types
6458
that utilize Camellia ciphers (RFC 3713) and CMAC digests
@@ -72,7 +66,6 @@ config RPCSEC_GSS_KRB5_ENCTYPES_AES_SHA2
7266
depends on CRYPTO_HMAC && CRYPTO_SHA256 && CRYPTO_SHA512
7367
depends on CRYPTO_AES
7468
default n
75-
select RPCSEC_GSS_KRB5_CRYPTOSYSTEM
7669
help
7770
Choose Y to enable the use of Kerberos 5 encryption types
7871
that utilize Advanced Encryption Standard (AES) ciphers and

net/sunrpc/auth_gss/gss_krb5_mech.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,7 @@
2929
#endif
3030

3131
static struct gss_api_mech gss_kerberos_mech;
32-
33-
#if defined(CONFIG_RPCSEC_GSS_KRB5_CRYPTOSYSTEM)
3432
static int gss_krb5_import_ctx_v2(struct krb5_ctx *ctx, gfp_t gfp_mask);
35-
#endif
3633

3734
static const struct gss_krb5_enctype supported_gss_krb5_enctypes[] = {
3835
#if defined(CONFIG_RPCSEC_GSS_KRB5_ENCTYPES_AES_SHA1)
@@ -273,8 +270,6 @@ const struct gss_krb5_enctype *gss_krb5_lookup_enctype(u32 etype)
273270
}
274271
EXPORT_SYMBOL_IF_KUNIT(gss_krb5_lookup_enctype);
275272

276-
#if defined(CONFIG_RPCSEC_GSS_KRB5_CRYPTOSYSTEM)
277-
278273
static struct crypto_sync_skcipher *
279274
gss_krb5_alloc_cipher_v2(const char *cname, const struct xdr_netobj *key)
280275
{
@@ -403,8 +398,6 @@ gss_krb5_import_ctx_v2(struct krb5_ctx *ctx, gfp_t gfp_mask)
403398
goto out;
404399
}
405400

406-
#endif
407-
408401
static int
409402
gss_import_v2_context(const void *p, const void *end, struct krb5_ctx *ctx,
410403
gfp_t gfp_mask)

0 commit comments

Comments
 (0)