Skip to contentSkip to conversation

tls: export decrypt_skb

PATCH In review Pedro Tammela 2 participants 2 messages Mar 4, 2019

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tls: export decrypt_skb

Export decrypt_skb() to other kernel modules.
This is useful for other ulps that are on top of TLS and need to have access to the skb's plain data.

---
 net/tls/tls_sw.c | 1 +
 1 file changed, 1 insertion(+)
net/tls/tls_sw.c +1 -0
index bf5b54b513bc..596b63d2258a 100644
@@ -1443,6 +1443,7 @@ int decrypt_skb(struct sock *sk, struct sk_buff *skb,
 
 	return decrypt_internal(sk, skb, NULL, sgout, &chunk, &zc);
 }
+EXPORT_SYMBOL_GPL(decrypt_skb);
 
 static bool tls_sw_advance_skb(struct sock *sk, struct sk_buff *skb,
 			       unsigned int len)
Signature · 1 line
2.21.0
maintainer
#1 lore raw

From: Pedro Tammela <[email protected]>
Date: Mon, 4 Mar 2019 18:35:02 -0300

Quoted 5 lines

Export decrypt_skb() to other kernel modules.
This is useful for other ulps that are on top of TLS and need to have access to the skb's plain data.

Not applying this until there is an in-tree user.

Sorry.