parse_OID(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME β€” parse_OID(9) πŸ’–

okay so bestie, this is from the Kernel API Manual, and parse_OID is literally here to parse an OID from a bytestream. slay. ✨


πŸŽ€ SYNOPSIS πŸŽ€

int parse_OID (const void *data , size_t datasize , enum OID *oid );

🌸 ARGUMENTS 🌸

  • data β€” the binary representation of the header + OID, iconic input vibes πŸ’…
  • datasize β€” the size of that binary representation, gotta know the size bestie
  • oid β€” pointer to oid where the result gets returned 🫢

✨ DESCRIPTION ✨

So parse_OID parses an OID from a bytestream that holds the OID in the format ASN1_OID | length | oid. no cap.

The length indicator must equal to datasize - 2. like, that's the rule.

If the bytestream is too short, -EBADMSG is returned. 😭 that's the whole warning, bestie.

ngl, short bytestream = -EBADMSG return. periodt.

πŸ¦‹ SEE ALSO πŸ¦‹


πŸ’œ and that's the vibe check: source/version is ./lib, date is October 2026. byeee bestie, go parse something cute πŸ«ΆπŸ’…πŸŽ€

πŸ“¦ where this page comes from