diff options
Diffstat (limited to 'include/net/sctp/auth.h')
-rw-r--r-- | include/net/sctp/auth.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/net/sctp/auth.h b/include/net/sctp/auth.h index 10c8010552ff..4945954a16af 100644 --- a/include/net/sctp/auth.h +++ b/include/net/sctp/auth.h | |||
@@ -43,6 +43,7 @@ | |||
43 | struct sctp_endpoint; | 43 | struct sctp_endpoint; |
44 | struct sctp_association; | 44 | struct sctp_association; |
45 | struct sctp_authkey; | 45 | struct sctp_authkey; |
46 | struct sctp_hmacalgo; | ||
46 | 47 | ||
47 | /* | 48 | /* |
48 | * Define a generic struct that will hold all the info | 49 | * Define a generic struct that will hold all the info |
@@ -109,4 +110,19 @@ int sctp_auth_recv_cid(sctp_cid_t chunk, const struct sctp_association *asoc); | |||
109 | void sctp_auth_calculate_hmac(const struct sctp_association *asoc, | 110 | void sctp_auth_calculate_hmac(const struct sctp_association *asoc, |
110 | struct sk_buff *skb, | 111 | struct sk_buff *skb, |
111 | struct sctp_auth_chunk *auth, gfp_t gfp); | 112 | struct sctp_auth_chunk *auth, gfp_t gfp); |
113 | |||
114 | /* API Helpers */ | ||
115 | int sctp_auth_ep_add_chunkid(struct sctp_endpoint *ep, __u8 chunk_id); | ||
116 | int sctp_auth_ep_set_hmacs(struct sctp_endpoint *ep, | ||
117 | struct sctp_hmacalgo *hmacs); | ||
118 | int sctp_auth_set_key(struct sctp_endpoint *ep, | ||
119 | struct sctp_association *asoc, | ||
120 | struct sctp_authkey *auth_key); | ||
121 | int sctp_auth_set_active_key(struct sctp_endpoint *ep, | ||
122 | struct sctp_association *asoc, | ||
123 | __u16 key_id); | ||
124 | int sctp_auth_del_key_id(struct sctp_endpoint *ep, | ||
125 | struct sctp_association *asoc, | ||
126 | __u16 key_id); | ||
127 | |||
112 | #endif | 128 | #endif |