OSSL_TRACE_GET_CATEGORY_NUM(3ossl)
π« OSSL_TRACE_GET_CATEGORY_NUM π«
okay bestie, so this is the 3ossl manual page for two lil functions that let you translate back and forth between trace category names and trace category numbers. That's it. That's the whole vibe. Two functions, one header, zero drama β¨
β¨ NAME β¨
OSSL_trace_get_category_num, OSSL_trace_get_category_name β the OpenSSL tracing information functions, aka your little nameβnumber translator gworls π
πΈ SYNOPSIS πΈ
#include <openssl/trace.h>
int OSSL_trace_get_category_num(const char *name);
const char *OSSL_trace_get_category_name(int num);
literally just include the header and you're in π
π¦ DESCRIPTION π¦
OSSL_trace_get_category_num()β bestie hands you anamestring and this function gives you back the category number that corresponds to it. name in, number out, slay π₯OSSL_trace_get_category_name()β the reverse glow-up: you give it anumand it gives you back the category name that corresponds to that number. number in, name out, iconic π
so like, they're mirrors of each other. icon behavior fr fr π«Ά
β RETURN VALUES β
OSSL_trace_get_category_num()β returns the category number if thenameyou passed is a recognised category name. and if it's not recognised? you get-1. not a vibe, but at least it's honest πOSSL_trace_get_category_name()β returns the category name if thenumyou passed is a recognised category number. and if it's not recognised? you getNULL. same energy, different flavor π
ngl, always check your return values before you use them, yeah?-1andNULLare not real categories, no matter how much you want them to be π
π§ HISTORY π§
the OpenSSL Tracing API was added in OpenSSL 3.0 π (the original page has a lil typo β "ino OpenSSL 3.0" β we love her, she's doing her best π). so if you're on something older than 3.0, these functions are simply not gonna be there for you. periodt β¨
π COPYRIGHT π
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>.
that's the legal bit and yes you actually have to read it, bestie π«Ά
π sign-off π
and that's the page!! brought to you by OpenSSL 3.5.0, dated 2026-09-25 β go forth and trace your little heart out, iykyk π¦π π
π¦ where this page comes from
- opensuse-leap 16.0: openssl-3-doc 3.5.0-160000.11.1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms