diff options
| author | Andrea Bastoni <bastoni@cs.unc.edu> | 2010-05-30 19:16:45 -0400 |
|---|---|---|
| committer | Andrea Bastoni <bastoni@cs.unc.edu> | 2010-05-30 19:16:45 -0400 |
| commit | ada47b5fe13d89735805b566185f4885f5a3f750 (patch) | |
| tree | 644b88f8a71896307d71438e9b3af49126ffb22b /crypto/proc.c | |
| parent | 43e98717ad40a4ae64545b5ba047c7b86aa44f4f (diff) | |
| parent | 3280f21d43ee541f97f8cda5792150d2dbec20d5 (diff) | |
Merge branch 'wip-2.6.34' into old-private-masterarchived-private-master
Diffstat (limited to 'crypto/proc.c')
| -rw-r--r-- | crypto/proc.c | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/crypto/proc.c b/crypto/proc.c index 5dc07e442fca..58fef67d4f4d 100644 --- a/crypto/proc.c +++ b/crypto/proc.c | |||
| @@ -25,28 +25,22 @@ | |||
| 25 | #ifdef CONFIG_CRYPTO_FIPS | 25 | #ifdef CONFIG_CRYPTO_FIPS |
| 26 | static struct ctl_table crypto_sysctl_table[] = { | 26 | static struct ctl_table crypto_sysctl_table[] = { |
| 27 | { | 27 | { |
| 28 | .ctl_name = CTL_UNNUMBERED, | ||
| 29 | .procname = "fips_enabled", | 28 | .procname = "fips_enabled", |
| 30 | .data = &fips_enabled, | 29 | .data = &fips_enabled, |
| 31 | .maxlen = sizeof(int), | 30 | .maxlen = sizeof(int), |
| 32 | .mode = 0444, | 31 | .mode = 0444, |
| 33 | .proc_handler = &proc_dointvec | 32 | .proc_handler = proc_dointvec |
| 34 | }, | ||
| 35 | { | ||
| 36 | .ctl_name = 0, | ||
| 37 | }, | 33 | }, |
| 34 | {} | ||
| 38 | }; | 35 | }; |
| 39 | 36 | ||
| 40 | static struct ctl_table crypto_dir_table[] = { | 37 | static struct ctl_table crypto_dir_table[] = { |
| 41 | { | 38 | { |
| 42 | .ctl_name = CTL_UNNUMBERED, | ||
| 43 | .procname = "crypto", | 39 | .procname = "crypto", |
| 44 | .mode = 0555, | 40 | .mode = 0555, |
| 45 | .child = crypto_sysctl_table | 41 | .child = crypto_sysctl_table |
| 46 | }, | 42 | }, |
| 47 | { | 43 | {} |
| 48 | .ctl_name = 0, | ||
| 49 | }, | ||
| 50 | }; | 44 | }; |
| 51 | 45 | ||
| 52 | static struct ctl_table_header *crypto_sysctls; | 46 | static struct ctl_table_header *crypto_sysctls; |
| @@ -115,13 +109,6 @@ static int c_show(struct seq_file *m, void *p) | |||
| 115 | seq_printf(m, "max keysize : %u\n", | 109 | seq_printf(m, "max keysize : %u\n", |
| 116 | alg->cra_cipher.cia_max_keysize); | 110 | alg->cra_cipher.cia_max_keysize); |
| 117 | break; | 111 | break; |
| 118 | |||
| 119 | case CRYPTO_ALG_TYPE_DIGEST: | ||
| 120 | seq_printf(m, "type : digest\n"); | ||
| 121 | seq_printf(m, "blocksize : %u\n", alg->cra_blocksize); | ||
| 122 | seq_printf(m, "digestsize : %u\n", | ||
| 123 | alg->cra_digest.dia_digestsize); | ||
| 124 | break; | ||
| 125 | case CRYPTO_ALG_TYPE_COMPRESS: | 112 | case CRYPTO_ALG_TYPE_COMPRESS: |
| 126 | seq_printf(m, "type : compression\n"); | 113 | seq_printf(m, "type : compression\n"); |
| 127 | break; | 114 | break; |
