Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 272293
b: refs/heads/master
c: b6aa63c
h: refs/heads/master
i:
  272291: fa0d7d1
v: v3
  • Loading branch information
Steffen Klassert authored and Herbert Xu committed Oct 21, 2011
1 parent 3e5184d commit 5eed60d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a38f7907b926e4c6c7d389ad96cc38cec2e5a9e9
refs/heads/master: b6aa63c09ba3b150a1030f9c95c7647361e7910e
5 changes: 5 additions & 0 deletions trunk/crypto/crypto_user.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@ static int crypto_report_one(struct crypto_alg *alg,

NLA_PUT_U32(skb, CRYPTOCFGA_PRIORITY_VAL, alg->cra_priority);

if (alg->cra_type && alg->cra_type->report) {
if (alg->cra_type->report(skb, alg))
goto nla_put_failure;
}

return 0;

nla_put_failure:
Expand Down
2 changes: 2 additions & 0 deletions trunk/include/crypto/algapi.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include <linux/crypto.h>
#include <linux/list.h>
#include <linux/kernel.h>
#include <linux/skbuff.h>

struct module;
struct rtattr;
Expand All @@ -26,6 +27,7 @@ struct crypto_type {
int (*init)(struct crypto_tfm *tfm, u32 type, u32 mask);
int (*init_tfm)(struct crypto_tfm *tfm);
void (*show)(struct seq_file *m, struct crypto_alg *alg);
int (*report)(struct sk_buff *skb, struct crypto_alg *alg);
struct crypto_alg *(*lookup)(const char *name, u32 type, u32 mask);

unsigned int type;
Expand Down

0 comments on commit 5eed60d

Please sign in to comment.