OSSL_PARAM_PRINT_TO_BIO(3ossl)

✨ OSSL_PARAM_PRINT_TO_BIO ✨

okay bestie, gather round, because we're about to talk about OSSL_PARAM_print_to_bio from the 3ossl manual β€” aka your little interrogation buddy for OSSL_PARAM stuff πŸ’… no cap, it's giving "let me peek at what's in this param array" energy and honestly? iconic.


🌸 SYNOPSIS 🌸

#include <openssl/params.h>

int OSSL_PARAM_print_to_bio(const OSSL_PARAM *p, BIO *bio,
                            int print_values);

πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the tea, bestie πŸ“ β€” OSSL_PARAM_print_to_bio() takes that array of OSSL_PARAM values you passed in as p, formats every single parameter inside it, and prints them out to the BIO you hand it. ✨

and the way it prints the key... and then optionally the value too? obsessed. literally the main character move.

now, p has rules, and we respect them πŸ‘‘ β€” it must be a non-null array of OSSL_PARAM values, and it has to be terminated with a value that contains a null key member. that's the little "we're done here" signal, iykyk. no terminator, no vibe.

then there's print_values, which is your control parameter πŸ’œ β€” it's the lil switch that says "yes queen, print the key values too, in addition to just the key names." so:

  • print_values set β†’ key names and values get printed πŸ’–
  • print_values not set β†’ just the key names, keep it mysterious πŸ™ˆ

⭐ RETURN VALUES ⭐

OSSL_PARAM_print_to_bio() is a simple girl in that way:

  • returns 1 on success πŸŽ€
  • returns 0 on failure πŸ’€

that's it. that's the whole range. no in-between, no situationship.


πŸ”₯ HISTORY πŸ”₯

OSSL_PARAM_print_to_bio() was added in OpenSSL 3.5 β€” so it's a newer addition, freshly on the scene, and we love that for it 🌈


Copyright 2024 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>.


fr fr, read the license, bestie. it's not optional and it's not a vibe check you can skip 🫢

mwah πŸ’‹ that's a wrap on the 3ossl manual page, from the 3.5.9 era, dated 2026-09-29. stay slaying, stay terminating your arrays with a null key, and stay hydrated 🧚✨

πŸ“¦ where this page comes from