Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 120599
b: refs/heads/master
c: 67cd080
h: refs/heads/master
i:
  120597: c055041
  120595: 729e9f3
  120591: a3e8b1c
v: v3
  • Loading branch information
Herbert Xu committed Dec 25, 2008
1 parent 9fe7d5a commit 74f3503
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: dec8b78606ebd5f309c38f2fb10196ce996dd18d
refs/heads/master: 67cd080c5070b4f17520c1385f7684206f4987b3
20 changes: 13 additions & 7 deletions trunk/crypto/proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,17 @@ static int c_show(struct seq_file *m, void *p)
seq_printf(m, "selftest : %s\n",
(alg->cra_flags & CRYPTO_ALG_TESTED) ?
"passed" : "unknown");

if (alg->cra_flags & CRYPTO_ALG_LARVAL) {
seq_printf(m, "type : larval\n");
seq_printf(m, "flags : 0x%x\n", alg->cra_flags);
goto out;
}

if (alg->cra_type && alg->cra_type->show) {
alg->cra_type->show(m, alg);
goto out;
}

switch (alg->cra_flags & (CRYPTO_ALG_TYPE_MASK | CRYPTO_ALG_LARVAL)) {
case CRYPTO_ALG_TYPE_CIPHER:
Expand All @@ -115,16 +126,11 @@ static int c_show(struct seq_file *m, void *p)
seq_printf(m, "type : compression\n");
break;
default:
if (alg->cra_flags & CRYPTO_ALG_LARVAL) {
seq_printf(m, "type : larval\n");
seq_printf(m, "flags : 0x%x\n", alg->cra_flags);
} else if (alg->cra_type && alg->cra_type->show)
alg->cra_type->show(m, alg);
else
seq_printf(m, "type : unknown\n");
seq_printf(m, "type : unknown\n");
break;
}

out:
seq_putc(m, '\n');
return 0;
}
Expand Down

0 comments on commit 74f3503

Please sign in to comment.