KNET_HAN...SE_CONFIG(3)

✨ NAME ✨

knet_handle_crypto_use_config β€” bestie, this is the one that tells your handle which crypto config to actually use for TX πŸ’…


🌸 SYNOPSIS 🌸

#include <libknet.h>

int knet_handle_crypto_use_config(
    knet_handle_t  knet_h,
    uint8_t        config_num
);

πŸŽ€ DESCRIPTION πŸŽ€

knet_handle_crypto_use_config πŸ¦‹

  • knet_h β€” pointer to knet_handle_t. yeah bestie, your handle. the main character of this whole function fr fr.
  • config_num β€” 1|2 use configuration 1 or 2, 0 for clear (unencrypted) traffic. so like, pick your fighter: 1, 2, or the no-encryption option πŸ’€ no in-between, no vibes, just those.

πŸ‘‘ RETURN VALUE πŸ‘‘

knet_handle_crypto_use_config returns:

  • 0 β€” on success. slay ✨ we ate.
  • -1 β€” on error and errno is set. not the vibe 😭 go check errno, she's trying to tell you something.

🌈 SEE ALSO 🌈

okay so here's the whole group chat, every single one of them, no one left on read:


Copyright (C) 2010-2026 Red Hat, Inc. All rights reserved.


and that's the whole page bestie 🫢 this came out of the Kronosnet Programmer's Manual, kronosnet flavour, dated 2026-07-20 β€” go forth and encrypt (or don't, 0 is right there) πŸ’–βœ¨

πŸ“¦ where this page comes from