OSSL_CMP_MSG_HTTP_PERFORM(3ossl)

πŸ“¦ version 3.5.0, in opensuse-leap 16.0

πŸ’… OSSL_CMP_MSG_HTTP_PERFORM πŸ’…

okay so bestie, welcome to the 3ossl edition of the OpenSSL manual β€” this one's all about OSSL_CMP_MSG_http_perform, and it's literally the glow-up your CMP client needed. sit down, grab a strawberry drink πŸ“, and let's get into it.


✨ NAME ✨

OSSL_CMP_MSG_http_perform β€” the client-side HTTP(S) transfer of a CMP request-response pair. yes, it sends the request AND brings you back the answer. main character energy fr fr. πŸ‘‘


🌸 SYNOPSIS 🌸

#include <openssl/cmp.h>

OSSL_CMP_MSG *OSSL_CMP_MSG_http_perform(OSSL_CMP_CTX *ctx,
                                        const OSSL_CMP_MSG *req);

like, that's it. two args, one glorious message back. πŸŽ€


πŸ¦‹ DESCRIPTION πŸ¦‹

OSSL_CMP_MSG_http_perform() sends the given PKIMessage req to the CMP server specified in ctx and returns the result obtained from it. no cap, it just… does the thing. πŸ’…

okay so here's the vibe check on how it does the thing, because there are two whole paths:

  • if OSSL_CMP_CTX_set_transfer_cb_arg(3) has been used to set the transfer callback argument, then the provided pointer bios is taken as a two-element BIO array to use for the exchange with the server, exactly as described for the bio and rbio parameters of OSSL_HTTP_open(3). for instance, the two BIO pointers may be equal and refer to a TLS connection β€” such as in BRSKI-AE where a pre-established TLS channel is reused for CMP. iconic behavior honestly. 🧚
  • otherwise, the server specified via OSSL_CMP_CTX_set1_server(3) and optionally OSSL_CMP_CTX_set_serverPort(3) is contacted, where the default port is 80 for HTTP and 443 for HTTPS. the HTTP path (aka "CMP alias" in this context) to use is by default "/", otherwise the string specified via OSSL_CMP_CTX_set1_serverPath(3). on success, the function returns the server's response PKIMessage. slay. ✨

and it's not just out here freelancing β€” it's plugged into all your settings:

πŸ’€ important lil caveat: proxying plain HTTP is supported directly, while using a proxy for HTTPS connections requires a suitable callback function such as OSSL_HTTP_proxy_connect(3). so don't come for this function when your HTTPS proxy needs a callback β€” that's a you problem, bestie. 🫢

πŸŽ€ NOTES πŸŽ€

that's the receipts, iykyk. πŸ“š


⭐ RETURN VALUES ⭐

OSSL_CMP_MSG_http_perform() returns the received CMP response message on success, else NULL. that's it. either you ate or you didn't. πŸ”₯


🌈 SEE ALSO 🌈

go read those too, bestie, they're all part of the same friend group. πŸ’œ


πŸ¦‹ HISTORY πŸ¦‹

  • the OpenSSL CMP support was added in OpenSSL 3.0.
  • the OSSL_CMP_MSG_http_perform() use of transfer_cb_arg was added in OpenSSL 3.5.

so if you're on something older, that second feature is giving "not invited to the party". 😭


Copyright 2007-2025 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!! πŸ₯³ written from OpenSSL 3.5.0, dated 2026-09-25, manual page OSSL_CMP_MSG_HTTP_PERFORM(3ossl) β€” mwah, go forth and CMP responsibly πŸ’–πŸŒΈπŸ«Ά

πŸ“¦ where this page comes from