{
    "content": [
        {
            "type": "text",
            "text": "# ssl(7) (man)\n\n**Summary:** ssl - OpenSSL SSL/TLS library\n\n**Synopsis:** See the individual manual pages for details.\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **SYNOPSIS** (2 lines)\n- **DESCRIPTION** (16 lines)\n- **DATA STRUCTURES** (27 lines)\n- **HEADER FILES** (19 lines)\n- **COPYRIGHT** (9 lines)\n\n## Full Content\n\n### NAME\n\nssl - OpenSSL SSL/TLS library\n\n### SYNOPSIS\n\nSee the individual manual pages for details.\n\n### DESCRIPTION\n\nThe OpenSSL ssl library implements several versions of the Secure Sockets Layer, Transport\nLayer Security, and Datagram Transport Layer Security protocols.  This page gives a brief\noverview of the extensive API and data types provided by the library.\n\nAn SSLCTX object is created as a framework to establish TLS/SSL enabled connections (see\nSSLCTXnew(3)).  Various options regarding certificates, algorithms etc. can be set in this\nobject.\n\nWhen a network connection has been created, it can be assigned to an SSL object. After the\nSSL object has been created using SSLnew(3), SSLsetfd(3) or SSLsetbio(3) can be used to\nassociate the network connection with the object.\n\nWhen the TLS/SSL handshake is performed using SSLaccept(3) or SSLconnect(3) respectively.\nSSLreadex(3), SSLread(3), SSLwriteex(3) and SSLwrite(3) are used to read and write data\non the TLS/SSL connection.  SSLshutdown(3) can be used to shut down the TLS/SSL connection.\n\n### DATA STRUCTURES\n\nHere are some of the main data structures in the library.\n\nSSLMETHOD (SSL Method)\nThis is a dispatch structure describing the internal ssl library methods/functions which\nimplement the various protocol versions (SSLv3 TLSv1, ...). It's needed to create an\nSSLCTX.\n\nSSLCIPHER (SSL Cipher)\nThis structure holds the algorithm information for a particular cipher which are a core\npart of the SSL/TLS protocol. The available ciphers are configured on a SSLCTX basis and\nthe actual ones used are then part of the SSLSESSION.\n\nSSLCTX (SSL Context)\nThis is the global context structure which is created by a server or client once per\nprogram life-time and which holds mainly default values for the SSL structures which are\nlater created for the connections.\n\nSSLSESSION (SSL Session)\nThis is a structure containing the current TLS/SSL session details for a connection:\nSSLCIPHERs, client and server certificates, keys, etc.\n\nSSL (SSL Connection)\nThis is the main SSL/TLS structure which is created by a server or client per established\nconnection. This actually is the core structure in the SSL API.  At run-time the\napplication usually deals with this structure which has links to mostly all other\nstructures.\n\n### HEADER FILES\n\nCurrently the OpenSSL ssl library provides the following C header files containing the\nprototypes for the data structures and functions:\n\n<openssl/ssl.h>\nThis is the common header file for the SSL/TLS API.  Include it into your program to make\nthe API of the ssl library available. It internally includes both more private SSL\nheaders and headers from the crypto library.  Whenever you need hard-core details on the\ninternals of the SSL API, look inside this header file.  This file also includes the\nothers listed below.\n\n<openssl/ssl2.h>\nUnused. Present for backwards compatibility only.\n\n<openssl/ssl3.h>\nThis is the sub header file dealing with the SSLv3 protocol only.\n\n<openssl/tls1.h>\nThis is the sub header file dealing with the TLSv1 protocol only.\n\n### COPYRIGHT\n\nCopyright 2000-2018 The OpenSSL Project Authors. All Rights Reserved.\n\nLicensed under the Apache License 2.0 (the \"License\").  You may not use this file except in\ncompliance with the License.  You can obtain a copy in the file LICENSE in the source\ndistribution or at <https://www.openssl.org/source/license.html>.\n\n\n\n3.0.2                                        2026-04-07                                    SSL(7SSL)\n\n"
        }
    ],
    "structuredContent": {
        "command": "ssl",
        "section": "7",
        "mode": "man",
        "summary": "ssl - OpenSSL SSL/TLS library",
        "synopsis": "See the individual manual pages for details.",
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 16,
                "subsections": []
            },
            {
                "name": "DATA STRUCTURES",
                "lines": 27,
                "subsections": []
            },
            {
                "name": "HEADER FILES",
                "lines": 19,
                "subsections": []
            },
            {
                "name": "COPYRIGHT",
                "lines": 9,
                "subsections": []
            }
        ]
    }
}