OSSL_TRACE_GET_CATEGORY_NUM(3ossl)
π OSSL_TRACE_GET_CATEGORY_NUM(3ossl) π
okay bestie, welcome to the OpenSSL manual, page OSSL_TRACE_GET_CATEGORY_NUM, part of the OpenSSL fam. no cap, this one is short and sweet β it's the little translator duo for tracing categories, and it literally just goes both ways: name β number, number β name. that's it. that's the whole vibe. π¦
β¨ NAME β¨
OSSL_trace_get_category_num, OSSL_trace_get_category_name β the OpenSSL tracing information functions. yes, both of them, they come as a set, like matching bestie bracelets. π
πΈ SYNOPSIS πΈ
#include <openssl/trace.h>
int OSSL_trace_get_category_num(const char *name);
const char *OSSL_trace_get_category_name(int num);
π DESCRIPTION π
so here's the tea, and it's genuinely simple:
OSSL_trace_get_category_num()β you hand it aname, it gives you back the category number that goes with it. name in, number out. πOSSL_trace_get_category_name()β the reverse queen. you hand it anum, she hands you back the category name corresponding to it. number in, name out. π₯
β RETURN VALUES β
OSSL_trace_get_category_num()β returns the category number if thenameyou passed is a recognised category name. if it's not recognised? you get-1. rude but fair. πOSSL_trace_get_category_name()β returns the category name if thenumyou passed is a recognised category number. if it's not? you getNULL. π
lowkey important: unrecognised input is not an error you can ignore β-1andNULLare the actual, documented ways these functions tell you "nah, never heard of her". check for them, bestie. π«Ά
π HISTORY π
the OpenSSL Tracing API was added in OpenSSL 3.0. so it's a 3.0+ era icon. π
π 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>.
and that's the whole page, bestie, short and slay β¨ this was OpenSSL manpage OSSL_TRACE_GET_CATEGORY_NUM(3ossl), version 3.5.9, dated 2026-09-29. go forth and translate those categories, you absolute legend. π§π
π¦ where this page comes from
- fedora 43: openssl-devel 1:3.5.9-1.fc43 Β· Apache-2.0
- fedora 43: openssl-devel 1:3.5.9-1.fc43 Β· Apache-2.0
- fedora 44: openssl-devel 1:3.5.9-1.fc44 Β· Apache-2.0
- fedora 44: openssl-devel 1:3.5.9-1.fc44 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms