OSSL_TRACE_GET_CATEGORY_NUM(3SSL)
β¨ NAME β¨
OSSL_trace_get_category_num, OSSL_trace_get_category_name β the OpenSSL tracing information functions π
(this is page OSSL_TRACE_GET_CATEGORY_NUM from the 3SSL manual, bestie, so you already know where you are π«Ά)
π¦ SYNOPSIS π¦
#include <openssl/trace.h>
int OSSL_trace_get_category_num(const char *name);
const char *OSSL_trace_get_category_name(int num);
πΈ DESCRIPTION πΈ
okay so these two are literally besties that translate for each other. one speaks name, the other speaks number, and they both know the same category list. no cap.
OSSL_trace_get_category_num()β bestie, you hand it anameand it hands you back the category number that goes with it. it's giving translator energy πOSSL_trace_get_category_name()β other direction, same vibe: you give it anumand it gives you back the category name that num belongs to. obsessed. π
so like, name β‘οΈ num, num β‘οΈ name. that's the whole gig. iconic.
π RETURN VALUES π
OSSL_trace_get_category_num()returns the category number when thenameyou passed is a recognised category name. if it's not recognised? it returns-1. so watch for that, because-1is not a category, bestie, it's a vibe check you failed πOSSL_trace_get_category_name()returns the category name when thenumyou passed is a recognised category number. otherwise it returnsNULL. do not dereference theNULL. i'm serious. don't do it. π
π HISTORY π
the OpenSSL Tracing API was added in OpenSSL 3.0. (and yes, the source literally spells it "ino", iconic typo, we love her anyway π )
π 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, babe β version4.0.3, dated2026-09-29, filed underOSSL_TRACE_GET_CATEGORY_NUM(3SSL). go forth and trace, you absolute main character. periodt πβ¨π
π¦ where this page comes from
- ubuntu stonking: libssl-doc 4.0.3-1ubuntu1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms