cpp-openssl
C/C++ OpenSSL API Skill
Use this skill for C/C++ work that calls the OpenSSL library API (or an OpenSSL-compatible library such as LibreSSL or BoringSSL) directly: TLS server/client setup, handshakes, certificate and key handling, peer verification, the EVP cryptographic interfaces, random generation, the error queue, BIO chains, and the object lifecycle/reference-count rules that make OpenSSL safe or unsafe to use. This is about the C API linked into an application, not the openssl(1) command-line tool.
This skill is standalone for OpenSSL-specific design and review. Do not assume any particular repository layout, TLS wrapper (an async-I/O library's SSL stream, libcurl, a custom BIO loop), build system, or house style. Inspect the local OpenSSL usage first when editing, then apply these rules through the codebase's existing conventions.
Routing
- WORKFLOW SKILL: use for OpenSSL TLS and cryptography design, implementation, review, debugging, hardening, and test planning.
- INVOKES: inspect local OpenSSL usage first (which version, which wrapper owns the handshake/IO, how the error queue is drained); apply the rules below through existing conventions.
- FOR SINGLE OPERATIONS: answer narrow OpenSSL questions directly after identifying the OpenSSL major version, the object whose lifetime/refcount is in question, and whether the data is attacker-controlled.
- Use this skill when OpenSSL is the boundary:
SSL_CTX/SSLconfiguration, certificate/key loading, peer/hostname verification,EVP_*crypto,RAND_*,BIOchains,ERR_*handling, or OpenSSL object lifetime/refcounting. - Out of scope items are listed under DO NOT USE FOR; in routing terms, cede the transport event loop, executor affinity, strands, timers, and socket lifecycle to the async-I/O or networking layer, returning here only for the
SSL_shutdown/SSL_get_errorinteraction.