OSSL_TRACE_GET_CATEGORY_NUM(3ossl)

πŸ“¦
version 15.1 Β· 2 versions
, in freebsd 15.1

πŸ’… OSSL_TRACE_GET_CATEGORY_NUM(3ossl) β€” the 3ossl page for two iconic OpenSSL tracing helpers, bestie ✨

okay so this is the 3ossl manual page, and it's literally about two tiny OpenSSL tracing helpers that do name↔number lookups. no cap, they're lowkey main character energy. 🫢


🌸 NAME 🌸

OSSL_trace_get_category_num, OSSL_trace_get_category_name β€” OpenSSL tracing information functions. it's giving "category lookup, but make it OpenSSL" πŸ”₯

πŸ¦‹ SYNOPSIS πŸ¦‹

#include <openssl/trace.h>

int OSSL_trace_get_category_num(const char *name);
const char *OSSL_trace_get_category_name(int num);

✨ DESCRIPTION ✨

OSSL_trace_get_category_num() gives you the category number corresponding to the given name. you hand over the name, it hands back the number, slay. πŸ’…

OSSL_trace_get_category_name() is the reverse glow-up: it gives you the category name corresponding to the given num. number goes in, name comes out, iconic. πŸŽ€

🫢 RETURN VALUES 🫢

  • OSSL_trace_get_category_num() β€” returns the category number if the given name is a recognised category name, otherwise -1. that's the vibe check fail, fr fr. 😭
  • OSSL_trace_get_category_name() β€” returns the category name if the given num is a recognised category number, otherwise NULL. no match, no name, periodt. πŸ’€

πŸ“œ HISTORY πŸ“œ

The OpenSSL Tracing API was added in OpenSSL 3.0. ngl, that ate. πŸ‘‘

Copyright 2019 The OpenSSL Project Authors. All Rights Reserved.

Licensed under the Apache License 2.0 ("the License"). You may not use this file except in compliance with the License. You can obtain a copy in the file LICENSE in the source distribution or at <https://www.openssl.org/source/license.html>.


xoxo, your fav manpage fairy 🧚 β€” this was OpenSSL 3.5.6, dated 2026-04-07, from the 3ossl manual set. iykyk πŸ’–

πŸ“¦ where this page comes from