TS_RESP_CTX_NEW(3ossl)

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

πŸ’… TS_RESP_CTX_NEW(3ossl) πŸ’…

okay so bestie, welcome to the TS_RESP_CTX_NEW(3ossl) page β€” it's an OpenSSL manual, and it's literally all about making (and yeeting) the timestamp response context object. three functions, one little family, and honestly? they ate. πŸŽ€


✨ NAME ✨

TS_RESP_CTX_new_ex, TS_RESP_CTX_new, TS_RESP_CTX_free β€” the whole "Timestamp response context object creation" situation πŸ‘‘ (that's the official vibe: Timestamp response context object creation, no cap)


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <openssl/ts.h>

TS_RESP_CTX *TS_RESP_CTX_new_ex(OSSL_LIB_CTX *libctx, const char *propq);
TS_RESP_CTX *TS_RESP_CTX_new(void);
void TS_RESP_CTX_free(TS_RESP_CTX *ctx);

like, that's it. that's the whole cast. πŸ’–


🌸 DESCRIPTION 🌸

So the main character here is a response context β€” you create one, and it's the thing you use for generating responses. That's the pitch. That's the assignment. ✨

  • TS_RESP_CTX_new_ex() β€” this one allocates and initializes a TS_RESP_CTX structure with a library context of libctx and a property query of propq. And why do we care? because the library context and the property query are literally how you pick which providers supply the fetched algorithms. it's giving "choose your fighter" but for providers. πŸ”₯
  • TS_RESP_CTX_new() β€” same energy as TS_RESP_CTX_new_ex(), except it sets the library context and the property query to NULL. Which means the default (NULL) library context gets used for any operations that need algorithm fetches. lowkey the lazy-girl version, and we respect it. πŸ’…
  • TS_RESP_CTX_free() β€” frees the TS_RESP_CTX object ctx. And if the argument is NULL? nothing happens. no drama, no crash, just vibes. 🫢

⭐ RETURN VALUES ⭐

If the allocation fails, TS_RESP_CTX_new_ex() and TS_RESP_CTX_new() return NULL. Otherwise? they hand you back a pointer to the newly allocated structure. so either NULL (😭) or fresh new struct (πŸŽ€). that's the whole return story.


πŸ’€ HISTORY πŸ’€

The function TS_RESP_CTX_new_ex() was added in OpenSSL 3.0. time-stamped, periodt. ⏳


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

bestie please actually read the license, it's not a suggestion, it's giving legally binding πŸ’€

and that's the page!! this iconic little manual page is from OpenSSL 3.5.6, dated 2026-04-07, and it's filed as TS_RESP_CTX_NEW(3ossl) β€” mwah, go free your contexts responsibly πŸ’œβœ¨πŸ¦‹

πŸ“¦ where this page comes from