* Receive data on a hook encrypt. */
| 1246 | * Receive data on a hook encrypt. |
| 1247 | */ |
| 1248 | static int |
| 1249 | ng_ppp_rcvdata_encrypt(hook_p hook, item_p item) |
| 1250 | { |
| 1251 | const node_p node = NG_HOOK_NODE(hook); |
| 1252 | const priv_p priv = NG_NODE_PRIVATE(node); |
| 1253 | |
| 1254 | if (!priv->conf.enableEncryption) { |
| 1255 | NG_FREE_ITEM(item); |
| 1256 | return (ENXIO); |
| 1257 | } |
| 1258 | return (ng_ppp_mp_xmit(node, item, PROT_CRYPTD)); |
| 1259 | } |
| 1260 | |
| 1261 | static int |
| 1262 | ng_ppp_crypt_recv(node_p node, item_p item, uint16_t proto, uint16_t linkNum) |
nothing calls this directly
no test coverage detected