hx509_peer(3)

πŸ“¦
version 7.8.0 Β· 3 versions
, in alpine 3.22, alpine 3.23, alpine 3.24, epel 10, epel 9, fedora 43, fedora 44

πŸ’– NAME πŸ’–

hx509_peer β€” hx509 certificate selecting functions 🌈

(and yes bestie, this is page hx509_peer(3) from the Heimdal x509 library, come thru πŸ’…)


✨ SYNOPSIS ✨

🫢 Functions

int hx509_peer_info_alloc (hx509_context context, hx509_peer_info *peer)
void hx509_peer_info_free (hx509_peer_info peer)
int hx509_peer_info_set_cert (hx509_peer_info peer, hx509_cert cert)
int hx509_peer_info_add_cms_alg (hx509_context context, hx509_peer_info
    peer, const AlgorithmIdentifier *val)
int hx509_peer_info_set_cms_algs (hx509_context context, hx509_peer_info
    peer, const AlgorithmIdentifier *val, size_t len)

πŸ¦‹ Detailed Description πŸ¦‹

okay so real talk β€” this section is literally empty in the original. no description, no lore, nothing. it's giving mysterious main character energy 😭 the actual tea is all down in the function docs, so keep scrolling bestie πŸ‘‘


πŸŽ€ Function Documentation πŸŽ€

🌟 hx509_peer_info_add_cms_alg

int hx509_peer_info_add_cms_alg (hx509_context context, hx509_peer_info
    peer, const AlgorithmIdentifier *val)

Add an extra algorithm that the peer supports. like, one more for the road ✨

Parameters

  • context β€” A hx509 context.
  • peer β€” the peer to set the new algorithms for
  • val β€” an AlgorithmsIdentier to add (yes, spelled exactly like that in the source, no cap πŸ’€)

Returns

An hx509 error code, see hx509_get_error_string().


🌟 hx509_peer_info_alloc

int hx509_peer_info_alloc (hx509_context context, hx509_peer_info * peer)

Allocate a new peer info structure an init it to default values. (their typo, not mine, i'm just the messenger 🫢) fresh out the box, defaults pre-loaded, iconic.

Parameters

  • context β€” A hx509 context.
  • peer β€” return an allocated peer, free with hx509_peer_info_free().

Returns

An hx509 error code, see hx509_get_error_string().


🌟 hx509_peer_info_free

void hx509_peer_info_free (hx509_peer_info peer)

Free a peer info structure. it's giving closure, it's giving release the memory, periodt πŸ’…

Parameters

  • peer β€” peer info to be freed.

🌟 hx509_peer_info_set_cert

int hx509_peer_info_set_cert (hx509_peer_info peer, hx509_cert cert)

Set the certificate that remote peer is using. like, this is their cert, we're just noting it down πŸ“

Parameters

  • peer β€” peer info to update
  • cert β€” cerificate of the remote peer. (again: their spelling, i refuse to gatekeep the original πŸ’€)

Returns

An hx509 error code, see hx509_get_error_string().


🌟 hx509_peer_info_set_cms_algs

int hx509_peer_info_set_cms_algs (hx509_context context, hx509_peer_info
    peer, const AlgorithmIdentifier *val, size_t len)

Set the algorithms that the peer supports β€” the whole roster, not just one. full send πŸ”₯

Parameters

  • context β€” A hx509 context.
  • peer β€” the peer to set the new algorithms for
  • val β€” array of supported AlgorithmsIdentiers
  • len β€” length of array val.

Returns

An hx509 error code, see hx509_get_error_string().


πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for Heimdal x509 library from the source code. (so don't come for the prose bestie, a robot wrote it and i just gave it a glow-up πŸ’–)


and that's the whole page!! this was Version 7.8.0, dated Tue Nov 15 2022, and it's the hx509_peer(3) page from the Heimdal x509 library. bye bestie, go read your error strings πŸ¦‹βœ¨πŸŽ€

πŸ“¦ where this page comes from