TS_RESP_CTX_NEW(3ossl)
π TS_RESP_CTX_NEW π
okay so bestie, welcome to the 3ossl page for the OpenSSL crew's timestamp response context functions π
this is where you get yourself a shiny new TS_RESP_CTX to play with, so let's go
β¨ NAME β¨
TS_RESP_CTX_new_ex, TS_RESP_CTX_new, TS_RESP_CTX_free β the whole girlboss trio for making and yeeting a timestamp response context object π
πΈ 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);
π¦ DESCRIPTION π¦
So like, the whole point: this makes a response context that you can then use for generating responses. That's the vibe β¨
TS_RESP_CTX_new_ex() allocates and initializes a TS_RESP_CTX structure, and it lets you pass in a library context of libctx and a property query of propq. Those two cuties are how you pick which providers supply the algorithms that get fetched later on π
TS_RESP_CTX_new() is literally the same thing but it sets the library context and property query to NULL. Which means the default (NULL) library context is what gets used for any operations that need algorithm fetches. simple as that, no notes π«Ά
TS_RESP_CTX_free() frees the TS_RESP_CTX object ctx. And if the argument is NULL? Nothing happens. Nothing. It just minds its own business π no crash, no drama, we love a safe cleanup function fr fr
π RETURN VALUES π
If the allocation fails, both TS_RESP_CTX_new_ex() and TS_RESP_CTX_new() return NULL. π
Otherwise? They return a pointer to the newly allocated structure. slay β¨π
lowkey important: always check for that NULL, bestie. the allocation failing is not a vibe.
β HISTORY β
TS_RESP_CTX_new_ex() was added in OpenSSL 3.0. it's the new girl in town π
π COPYRIGHT π
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>.
and that's the whole page, bestie π go forth and make your timestamp response contexts, you're gonna ate this
mwah π β this was 3ossl, version 3.5.9, dated 2026-09-29. see u next manpage π¦
π¦ 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